evidence icon indicating copy to clipboard operation
evidence copied to clipboard

feat: add show/hide/never sidebar toggle in frontmatter

Open AyushAgrawal-A2 opened this issue 1 year ago • 5 comments

Description

closes #1468

Changes:

  • Added support for sidebar toggle - "show" / "hide" / "never"
  • Added PropLisiting in docs
  • Enabled frontmatter for home page
  • Added test cases in example-project
    • /sidebar/show image

    • /sidebar/hide image

    • /sidebar/never image

Checklist

  • [x] For UI or styling changes, I have added a screenshot or gif showing before & after
  • [x] I have added a changeset
  • [x] I have added to the docs where applicable
  • [ ] I have added to the VS Code extension where applicable

AyushAgrawal-A2 avatar Apr 21 '24 19:04 AyushAgrawal-A2

🦋 Changeset detected

Latest commit: 261d94952d792b55ef4401dd1404142db72ee765

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@evidence-dev/core-components Minor
my-evidence-project Minor
@evidence-dev/components Minor
@evidence-dev/evidence Major
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 Apr 21 '24 19:04 changeset-bot[bot]

Deploy Preview for evidence-development-workspace ready!

Name Link
Latest commit 261d94952d792b55ef4401dd1404142db72ee765
Latest deploy log https://app.netlify.com/sites/evidence-development-workspace/deploys/662663f5b9552f00084a9cf7
Deploy Preview https://deploy-preview-1927--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 Apr 21 '24 19:04 netlify[bot]

Deploy Preview for next-docs-evidence ready!

Name Link
Latest commit 261d94952d792b55ef4401dd1404142db72ee765
Latest deploy log https://app.netlify.com/sites/next-docs-evidence/deploys/662663f5715c7b00080d6f0b
Deploy Preview https://deploy-preview-1927--next-docs-evidence.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 Apr 21 '24 19:04 netlify[bot]

Looks great -- in the hide configuration, I think we'd want to bring the left edge of the header in such that the sidebar button is aligned with the left edge of the content.

mcrascal avatar Apr 22 '24 11:04 mcrascal

Looks great -- in the hide configuration, I think we'd want to bring the left edge of the header in such that the sidebar button is aligned with the left edge of the content.

@mcrascal Done

image

AyushAgrawal-A2 avatar Apr 22 '24 13:04 AyushAgrawal-A2