Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore table of contents on documentation landing pages #5949

Open
ryanlovett opened this issue Aug 12, 2024 · 0 comments
Open

Restore table of contents on documentation landing pages #5949

ryanlovett opened this issue Aug 12, 2024 · 0 comments
Assignees

Comments

@ryanlovett
Copy link
Collaborator

Summary

The old .rst site had landing pages for major sections containing a sub table of contents for those sections. Quarto does not support this natively, but it may be possible to move the main TOC from _quarto.yml to a separate YAML file, and then reference that in _quarto.yml and in an EJS template that populates the sub TOCs.

I imagine a landing page could have:

title: "Some Landing Page"
listing:
  - id: toc
    template: assets/toc.ejs
    contents: _toc.yml

## Table of Contents

This section's pages:

::: {#toc}
:::

I'm not sure how to reference a section within the main _toc.yml from this listing and template, but I haven't looked into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants