mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-17 17:32:50 +08:00
(doc) Dynamically generate sections
Rather than hard-coding them. Then, as the number of sections increase, no additional changes will be required here.
This commit is contained in:
parent
5149557560
commit
971f9032ba
12
docs/input/appendix/index.cshtml
Normal file
12
docs/input/appendix/index.cshtml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Title: Appendix
|
||||||
|
Order: 10
|
||||||
|
---
|
||||||
|
|
||||||
|
<h1>Sections</h1>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
@foreach (IDocument child in OutputPages.GetChildrenOf(Document))
|
||||||
|
{
|
||||||
|
<li>@Html.DocumentLink(child)</li>
|
||||||
|
}
|
||||||
|
</ul>
|
@ -1,10 +0,0 @@
|
|||||||
Title: Appendix
|
|
||||||
Order: 10
|
|
||||||
---
|
|
||||||
|
|
||||||
# Sections
|
|
||||||
|
|
||||||
* [Styles](xref:styles)
|
|
||||||
* [Colors](xref:colors)
|
|
||||||
* [Borders](xref:borders)
|
|
||||||
* [Emojis](xref:emojis)
|
|
Loading…
x
Reference in New Issue
Block a user