Skip to content

Commit f3ffb6b

Browse files
author
Ivan
committed
web(playground): add Folding Headings section to nomadnet guide
- Added +> / -> and #!fold syntax to the playground seed. - Updated Table of Contents with the new section.
1 parent e6a2f5a commit f3ffb6b

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

web/static/data/nomadnet_guide.mu

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ With micron you can easily create structured documents and pages with formatting
3131
`F79d`_`[Fields & Requests`#fields-requests]`_`f
3232
`F79d`_`[Comments`#comments]`_`f
3333
`F79d`_`[Partials`#partials]`_`f
34+
`F79d`_`[Folding Headings`#folding-headings]`_`f
3435
`F79d`_`[Literals`#literals]`_`f
3536
`F79d`_`[Closing Remarks`#closing-remarks]`_`f
3637

@@ -191,6 +192,25 @@ Wait! It's worth noting that we can also create sections without headings. They
191192
``
192193

193194

195+
>>Folding Headings
196+
197+
You can make any heading collapsible by prefixing the line with \`+> for an expanded section or \`-> for a collapsed one. Use \`#!fold glyph_open [glyph_closed] to customise the disclosure glyph.
198+
199+
Here is an example:
200+
201+
`Faaa
202+
`=
203+
+> Open by default
204+
This content is visible.
205+
206+
-> Collapsed by default
207+
This content is hidden until expanded.
208+
209+
#!fold v >
210+
`=
211+
``
212+
213+
194214
>Colors
195215

196216
Foreground colors can be specified with the \`F tag, followed by three hexadecimal characters. To return to the default foreground color, use the \`f tag. Background color is specified in the same way, but by using the \`B and \`b tags.
@@ -551,6 +571,7 @@ With micron you can easily create structured documents and pages with formatting
551571
`F79d`_`[Fields & Requests`#fields-requests]`_`f
552572
`F79d`_`[Comments`#comments]`_`f
553573
`F79d`_`[Partials`#partials]`_`f
574+
`F79d`_`[Folding Headings`#folding-headings]`_`f
554575
`F79d`_`[Literals`#literals]`_`f
555576
`F79d`_`[Closing Remarks`#closing-remarks]`_`f
556577

@@ -711,6 +732,25 @@ Wait! It's worth noting that we can also create sections without headings. They
711732
``
712733

713734

735+
>>Folding Headings
736+
737+
You can make any heading collapsible by prefixing the line with \`+> for an expanded section or \`-> for a collapsed one. Use \`#!fold glyph_open [glyph_closed] to customise the disclosure glyph.
738+
739+
Here is an example:
740+
741+
`Faaa
742+
`=
743+
+> Open by default
744+
This content is visible.
745+
746+
-> Collapsed by default
747+
This content is hidden until expanded.
748+
749+
#!fold v >
750+
`=
751+
``
752+
753+
714754
>Colors
715755

716756
Foreground colors can be specified with the \`F tag, followed by three hexadecimal characters. To return to the default foreground color, use the \`f tag. Background color is specified in the same way, but by using the \`B and \`b tags.

0 commit comments

Comments
 (0)