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
Copy file name to clipboardExpand all lines: docs/examples/index.qmd
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,13 @@
2
2
| ----- | ------ | ------ |
3
3
|[pkgdown]|[github][pkgdown-code]| Index page with a title and short description for functions listed in each section. Each function gets its own documentation page. |
4
4
|[single-page]|[github][sp-code]| Index page has function documentation embedded on it. |
5
+
|[shiny]|[github][shiny-code]| The shiny docs translated to quartodoc, using a custom renderer. |
Copy file name to clipboardExpand all lines: docs/get-started/sidebar.qmd
+27-3Lines changed: 27 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,31 @@
2
2
title: Sidebar navigation
3
3
---
4
4
5
-
Currently, adding API reference pages to the left-hand sidebar requires manually
6
-
listing each page in `_quarto.yml`. See the [quarto sidebar docs](https://quarto.org/docs/websites/website-navigation.html#side-navigation) for details.
5
+
quartodoc can generate a sidebar on the lefthand side of the page, with a list of your functions.
7
6
8
-
Generating sidebar entries is being tracked in [this quartodoc issue](https://github.com/machow/quartodoc/issues/20).
7
+
In order to create a sidebar for your docs, add the following options to your `_quarto.yml`:
8
+
9
+
```yaml
10
+
# tell quarto to read the sidebar file
11
+
metadata-files:
12
+
- _sidebar.yml
13
+
14
+
15
+
# tell quartodoc to generate the sidebar file
16
+
quartodoc:
17
+
sidebar: "_sidebar.yml"
18
+
# other options ...
19
+
```
20
+
21
+
Note that running `python -m quartodoc build` will now produce a file called `_sidebar.yml`,
22
+
with a [quarto sidebar configuration](https://quarto.org/docs/websites/website-navigation.html#side-navigation).
23
+
The quarto [`metadata-files` option](https://quarto.org/docs/projects/quarto-projects.html#metadata-includes) ensures
24
+
it's included with the configuration in `_quarto.yml`.
25
+
26
+
Here is what the sidebar for the [quartodoc reference page](/api) looks like:
0 commit comments