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

Options for hiding/adding a link #393

Merged
merged 2 commits into from
Mar 6, 2022
Merged

Options for hiding/adding a link #393

merged 2 commits into from
Mar 6, 2022

Conversation

shuding
Copy link
Owner

@shuding shuding commented Mar 6, 2022

Closes #341.

Add a link to the navbar/sidebar:

  "nextra_link": {
    "title": "Nextra ↗",
    "href": "https://github.com/shuding/nextra",
    "type": "page",
    "newWindow": true
  },

Hide a page/directory in navbar/sidebar:

  "error-handling": {
    "title": "Error Handling",
    "hidden": true
  },

@shuding shuding added this to the 2.0 milestone Mar 6, 2022
@vercel
Copy link

vercel bot commented Mar 6, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

nextra – ./

🔍 Inspect: https://vercel.com/vercel/nextra/8nB1uBuBUYjvJ4uhf71z8Cy3aa8b
✅ Preview: Canceled

nextra-theme-docs-dev – ./examples/swr-site

🔍 Inspect: https://vercel.com/vercel/nextra-theme-docs-dev/2w9cNkhZFDVwDmFDdxfUjLwFjmSJ
✅ Preview: https://nextra-theme-docs-dev-git-shu-4747.vercel.sh

@shuding shuding merged commit c21010b into core Mar 6, 2022
@shuding shuding deleted the shu/4747 branch March 6, 2022 00:03
@joshxyzhimself
Copy link

Looks like "hidden": true doesn't work, but the following worked:

{
  "example-page": {
    "display": "hidden"
  }
}

Related:

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