Sidebar-sorting & Layout Options
Adds four frontmatter options to control the sidebar:
-
sidebar_position- lower number shows up first, within their parent directory -
title- sidebar label matches title, helpful for acronyms (UI, MRR etc.) -
sidebar_link- controls whether or not the page has a link in the sidebar. If the page is the index of a directory and this option is false, the title of the directory is still shown. -
sidebar_badgeadds a green badge next to the title in the sidebar (want this for docs).
Treatment of directories:
Setting the sidebar_position of the index page in a directory moves the directory relative to other directories. In combination with sidebar_link: false, you can use this to move directories that don't have a home page.
Also adds new layout options, per #1638
🦋 Changeset detected
Latest commit: d20edf4279980d0f608cc32f8e716fc0452a09f0
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 4 packages
| Name | Type |
|---|---|
| @evidence-dev/core-components | Patch |
| @evidence-dev/evidence | Patch |
| @evidence-dev/components | Patch |
| evidence-test-environment | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 6, 2024 6:37pm |
Deploy Preview for evidence-development-workspace ready!
| Name | Link |
|---|---|
| Latest commit | d20edf4279980d0f608cc32f8e716fc0452a09f0 |
| Latest deploy log | https://app.netlify.com/sites/evidence-development-workspace/deploys/65e8b7ec3d1add0008176ef7 |
| Deploy Preview | https://deploy-preview-1637--evidence-development-workspace.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
closes #416
@ItsMeBrianD
Quite a lot to look through here; seems like it makes sense
Ah my bad, this was previously two PRs. The sidebar API stuff, and the layout refactor.
I'm going to open one more PR against this, then changeset and docs for the whole thing. Don't bother reviewing in detail yet.
Seems like this needs some work still?