Skip to content

Adding a sub nav to the docs section to reduce the amount of content in the main nav #1031

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

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

jderochervlk
Copy link
Collaborator

@jderochervlk jderochervlk commented May 6, 2025

This will also let us move things out of the doc sidebar and create subnav links for: Getting Started, Guides, Api, Syntax Lookup, and anything else we want to split up to reduce the amount of things in the sidebar. This should also help increase visibility into different sections and provide a better path for newcomers.

An example of what I am attempting:
image

Desktop

image

Tablet

image

Mobile

image

Wide desktop

image

Copy link

vercel bot commented May 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rescript-lang.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2025 4:55pm

Copy link

cloudflare-workers-and-pages bot commented May 6, 2025

Deploying rescript-lang-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9bc434e
Status: ✅  Deploy successful!
Preview URL: https://aaf4cff4.rescript-lang.pages.dev
Branch Preview URL: https://vlk-doc-nav.rescript-lang.pages.dev

View logs

@jderochervlk jderochervlk marked this pull request as ready for review May 6, 2025 15:49
@fhammerschmidt
Copy link
Member

As mentioned on Discord: this is almost done but the mobile "sidebar" overlay now misses the close button.

Copy link
Member

@fhammerschmidt fhammerschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great now!

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

Successfully merging this pull request may close these issues.

2 participants