You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If instead of a list of pages, the `pages` attribute is a folder path **inside the contents dir**, all the markdown files in that folder will be added as pages, in order.
142
+
143
+
```python {hl_lines="4"}
144
+
docs = Docs(__file__, pages=[
145
+
{
146
+
"title": "Components",
147
+
"pages": "components/"
148
+
},
149
+
# ...
150
+
])
151
+
```
152
+
153
+
139
154
### Sections that start closed
140
155
141
156
A section is by default "open," meaning it shows all of its pages and subsections. However, sometimes a section with many pages can create too much visual noise. You can specify that a section should be rendered "closed" by default by using the `"closed": True` property:
Copy file name to clipboardExpand all lines: docs/content/quickstart/setup.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,11 +80,15 @@ Open [http://127.0.0.1:8000/](http://127.0.0.1:8000/) in your browser, and you'l
80
80
81
81
The generated home page is different from the rest: it's a welcome/marketing page. Clicking on the "Documentation" link takes you to the first page of your actual documentation.
<p>Easily manage documentation for multiple versions and languages, right out of the box. No plugins or complicated setup needed.</p>
55
+
<h3>Works on all devices and with light/dark modes</h3>
56
+
<p>WriteADoc automatically adapts to perfectly fit the available screen, no matter the type or size of the viewing device and whether you're an early bird or a night owl.</p>
<h3>Works on all devices and with light/dark modes</h3>
66
-
<p>WriteADoc automatically adapts to perfectly fit the available screen, no matter the type or size of the viewing device and whether you're an early bird or a night owl.</p>
66
+
<h3>Multi-language & multi-version capable</h3>
67
+
<p>Easily manage documentation for multiple versions and languages, right out of the box. No plugins or complicated setup needed.</p>
0 commit comments