Skip to content

Commit a44bdaa

Browse files
authored
Combining syntax cheat sheet and full syntax reference pages (#2426)
1 parent 9336559 commit a44bdaa

19 files changed

+164
-146
lines changed

docs/_markbind/layouts/userGuide.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
* References :expanded:
4040
* [CLI Commands]({{baseUrl}}/userGuide/cliCommands.html)
4141
* [Reader-Facing Features]({{baseUrl}}/userGuide/readerFacingFeatures.html)
42-
* [Full Syntax Reference]({{baseUrl}}/userGuide/fullSyntaxReference.html)
43-
* [Syntax Cheat Sheet]({{baseUrl}}/userGuide/syntaxCheatSheet.html)
42+
* [Syntax Reference]({{baseUrl}}/userGuide/syntaxReference.html)
4443
* [`site.json` File]({{baseUrl}}/userGuide/siteJsonFile.html)
4544
* [`.gitignore` File]({{baseUrl}}/userGuide/gitignoreFile.html)
4645
* [Tips & Tricks]({{baseUrl}}/userGuide/tipsAndTricks.html)

docs/site.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"src": [
1414
"index.md",
1515
"userGuide/index.md",
16-
"userGuide/fullSyntaxReference.md",
17-
"userGuide/syntaxCheatSheet.md",
16+
"userGuide/syntaxReference.md",
1817
"userGuide/readerFacingFeatures.md",
1918
"devGuide/index.md"
2019
],

docs/ug-site.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"src": [
1313
"index.md",
1414
"userGuide/index.md",
15-
"userGuide/fullSyntaxReference.md",
16-
"userGuide/syntaxCheatSheet.md",
15+
"userGuide/syntaxReference.md",
1716
"userGuide/readerFacingFeatures.md"
1817
],
1918
"searchable": "no"

docs/userGuide/components/imagesAndDiagrams.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ The image components here provide **convenient syntax & styling abstractions** o
2222
Diagrams, in the form of **inline PlantUML components** are also supported.
2323
</div>
2424

25-
{% from "userGuide/fullSyntaxReference.md" import syntax_topics as topics %}
25+
{% from "userGuide/syntax/fullSyntaxSet.njk" import syntax_topics as topics %}
2626

2727
{% macro show_topic(filename) %}
2828
<include src="../syntax/{{ filename }}.md" />
2929
<hr>
3030
{% endmacro %}
3131

3232
{% for k,v in topics %}
33-
{% if 'images-diagrams' in v[1] %}
33+
{% if 'images-diagrams' in v[2] %}
3434
{{ show_topic(k) }}
3535
{% endif %}
3636
{% endfor %}

docs/userGuide/components/navigation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
The components in this page are used for scaffolding **site and page navigation**.
2222
</div>
2323

24-
{% from "userGuide/fullSyntaxReference.md" import syntax_topics as topics %}
24+
{% from "userGuide/syntax/fullSyntaxSet.njk" import syntax_topics as topics %}
2525

2626
{% macro show_topic(filename) %}
2727
<include src="../syntax/{{ filename }}.md" />
2828
<hr>
2929
{% endmacro %}
3030

3131
{% for k,v in topics %}
32-
{% if 'navigation' in v[1] %}
32+
{% if 'navigation' in v[2] %}
3333
{{ show_topic(k) }}
3434
{% endif %}
3535
{% endfor %}

docs/userGuide/components/others.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
This page lists some other components that may be useful in creating education websites. For now, there are only question and quiz components.
2222
</div>
2323

24-
{% from "userGuide/fullSyntaxReference.md" import syntax_topics as topics %}
24+
{% from "userGuide/syntax/fullSyntaxSet.njk" import syntax_topics as topics %}
2525

2626
{% macro show_topic(filename) %}
2727
<include src="../syntax/{{ filename }}.md" />
2828
<hr>
2929
{% endmacro %}
3030

3131
{% for k,v in topics %}
32-
{% if 'others' in v[1] %}
32+
{% if 'others' in v[2] %}
3333
{{ show_topic(k) }}
3434
{% endif %}
3535
{% endfor %}

docs/userGuide/components/popups.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
The components in this page can be used to easily create **various forms of pop-ups** that are activated on some user action (e.g., hovering over some text). This may be useful for showing additional information related to some specific area or span of content.
2222
</div>
2323

24-
{% from "userGuide/fullSyntaxReference.md" import syntax_topics as topics %}
24+
{% from "userGuide/syntax/fullSyntaxSet.njk" import syntax_topics as topics %}
2525

2626
{% macro show_topic(filename) %}
2727
<include src="../syntax/{{ filename }}.md" />
2828
<hr>
2929
{% endmacro %}
3030

3131
{% for k,v in topics %}
32-
{% if 'popups' in v[1] %}
32+
{% if 'popups' in v[2] %}
3333
{{ show_topic(k) }}
3434
{% endif %}
3535
{% endfor %}

docs/userGuide/components/presentation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ More specifically, you should use either:
3030
For more information, please refer to this [section]({{baseUrl}}/userGuide/usingHtmlJavaScriptCss.html#markdown-in-html).
3131
</box>
3232

33-
{% from "userGuide/fullSyntaxReference.md" import syntax_topics as topics %}
33+
{% from "userGuide/syntax/fullSyntaxSet.njk" import syntax_topics as topics %}
3434

3535
{% macro show_topic(filename) %}
3636
<include src="../syntax/{{ filename }}.md" />
3737
<hr>
3838
{% endmacro %}
3939

4040
{% for k,v in topics %}
41-
{% if 'presentation' in v[1] %}
41+
{% if 'presentation' in v[2] %}
4242
{{ show_topic(k) }}
4343
{% endif %}
4444
{% endfor %}

docs/userGuide/formattingContents.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020

2121
</div>
2222

23-
{% from "userGuide/fullSyntaxReference.md" import syntax_topics as topics %}
23+
{% from "userGuide/syntax/fullSyntaxSet.njk" import syntax_topics as topics %}
2424

2525
{% macro show_topic(filename) %}
2626
<include src="./syntax/{{ filename }}.md" />
2727
<hr>
2828
{% endmacro %}
2929

3030
{% for k,v in topics %}
31-
{% if 'basic' in v[1] %}
31+
{% if 'basic' in v[2] %}
3232
{{ show_topic(k) }}
3333
{% endif %}
3434
{% endfor %}

docs/userGuide/fullSyntaxReference.md

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)