Skip to content

Commit

Permalink
fixed issues in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Oct 17, 2024
1 parent 3a7782c commit 8242a47
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions doc/Tutor/Markup/InlineMarkup/Image/Image.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ which produces this:

<img src="/assets/Tutor/Markup/InlineMarkup/Image/dandelion.jpg" width="100px"/>


(((TODO: uncomment the next link after bootstrapping
<!-- Finally, have a look at the Library:module:Content library module and the listing feature to generate
images using Rascal code at Tutor compile time. -->)))
Finally, have a look at the Library:module:Content library module and the listing feature to generate
images using Rascal code at Tutor compile time.

#### Benefits

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ We can create a reference to the `InlineMarkup` concept in the current course in
* `((Markup-InlineMarkup))` (using its parent concept name and concept name) gives ((Markup-InlineMarkup)).
* `[see inline markup]((Tutor:Markup-InlineMarkup))` gives [see inline markup]((Tutor:Markup-InlineMarkup))

(((TODO: uncomment the reference
<!-- Here is a reference to another course:
* `[Prelude collection]\(\(Library:Prelude\)\)` gives [Prelude collection]\(\(Library:Prelude\)\). -->)))
Here is a reference to another course:
* `[Prelude collection]\(\(Library:Prelude\)\)` gives [Prelude collection]\(\(Library:Prelude\)\).

#### Benefits

Expand Down
1 change: 1 addition & 0 deletions src/lang/rascal/tutor/apidoc/ExtractInfo.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ rel[str, DocTag] getTagContents(Tags tags){
list[DocTag] sortedDocTags(rel[str, DocTag] tags)
= [ *tags["doc"],
*tags["synopsis"],
*tags["deprecated"],
*tags["syntax"],
*tags["types"],
*tags["details"],
Expand Down
3 changes: 2 additions & 1 deletion src/lang/rascal/tutor/apidoc/GenerateMarkdown.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ list[Output] declInfo2Doc(str parent, d:moduleInfo(), list[str] overloads, PathC
list[Output] declInfo2Doc(str parent, d:functionInfo(), list[str] overloads, PathConfig pcfg, CommandExecutor exec, Index ind, list[str] dtls, bool demo) =
[
out("## function <d.name> {<moduleFragment(d.moduleName)>-<d.name>}"),
*[Output::empty(), out(synopsis.content) | synopsis:docTag(label="synopsis") <- d.docs],
empty(),
*[out(defLine) | str defLine <- split("\n", d.synopsis)],
empty(),
out("```rascal"),
*([ *[out(defLine) | str defLine <- split("\n", ov)], empty() | ov <- overloads][..-1]),
Expand Down

0 comments on commit 8242a47

Please sign in to comment.