evidence icon indicating copy to clipboard operation
evidence copied to clipboard

Sidebar-sorting & Layout Options

Open mcrascal opened this issue 2 years ago • 5 comments

Adds four frontmatter options to control the sidebar:

  1. sidebar_position - lower number shows up first, within their parent directory
  2. title - sidebar label matches title, helpful for acronyms (UI, MRR etc.)
  3. 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.
  4. sidebar_badge adds 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

mcrascal avatar Feb 25 '24 20:02 mcrascal

🦋 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

changeset-bot[bot] avatar Feb 25 '24 20:02 changeset-bot[bot]

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

vercel[bot] avatar Feb 25 '24 20:02 vercel[bot]

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Feb 25 '24 20:02 netlify[bot]

closes #416

mcrascal avatar Feb 25 '24 22:02 mcrascal

@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.

mcrascal avatar Feb 26 '24 20:02 mcrascal

Seems like this needs some work still?

archiewood avatar Feb 28 '24 16:02 archiewood