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

Contextual sidebar #1190

Open
mbostock opened this issue Apr 2, 2024 · 0 comments
Open

Contextual sidebar #1190

mbostock opened this issue Apr 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mbostock
Copy link
Member

mbostock commented Apr 2, 2024

For more complicated sites, we should have a contextual sidebar like VitePress does. One possibility is a function that is invoked for the current page and returns the sidebar. Another is that the sidebar is an object whose keys are path prefixes, e.g.

https://github.com/vuejs/vitepress/blob/229c168a36e7b09309ce42a69399cbc73b5be296/docs/.vitepress/config/en.ts#L14-L17

Ref. https://vitepress.dev/reference/default-theme-sidebar#multiple-sidebars

@mbostock mbostock added the enhancement New feature or request label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant