Skip to content

Commit 5a40790

Browse files
committed
docs: fix sidebar preview and collapse
1 parent 334bdc1 commit 5a40790

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/get-started/sidebar.qmd

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,16 @@ with a [Quarto sidebar configuration](https://quarto.org/docs/websites/website-n
2323
The Quarto [`metadata-files` option](https://quarto.org/docs/projects/quarto-projects.html#metadata-includes) ensures
2424
it's included with the configuration in `_quarto.yml`.
2525

26+
::: { .callout-note}
2627
Here is what the sidebar for the [quartodoc reference page](/api) looks like:
2728

28-
<div class="sourceCode">
29-
<pre class="sourceCode yaml"><code class="sourceCode yaml">{{< include /api/_sidebar.yml >}}
30-
</code></pre>
31-
</div>
29+
<details>
30+
```yaml
31+
{{< include /api/_sidebar.yml >}}
32+
```
33+
</details>
34+
35+
:::
3236

3337
## Customizing the sidebar
3438

0 commit comments

Comments
 (0)