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

[v3] applying display: "hidden" breaks _meta in the subdir #2909

Closed
hezean opened this issue May 29, 2024 · 2 comments
Closed

[v3] applying display: "hidden" breaks _meta in the subdir #2909

hezean opened this issue May 29, 2024 · 2 comments

Comments

@hezean
Copy link

hezean commented May 29, 2024

When using nextra and the docs theme of version 3.0.0-alpha.24, setting the display mode of a subdir to "hidden" seems to make the _meta file in that folder not work.

Say I set all pages in the sample dir to be with the article typesetting, as shown like:

Screenshot 2024-05-30 at 02 03 48

After setting the _meta file of its parent dir to:

export default {
  sample: {
    display: "hidden",
  }
}

the page comes like:

Screenshot 2024-05-30 at 02 04 09

Here's the code for a minimal reproducible example: nextra3-meta-not-applied.zip

@marcklingen
Copy link
Contributor

marcklingen commented Sep 29, 2024

Same applies to us. This route is hidden but linked to via our custom switcher on top of the sidebar. The sidebar is not rendered at all as the parent meta hides this page.

https://langfuse.com/guides

Edit: Fixed this for us via css override (desktop menu only)

Global overrides.css (source)

/* Hide guides from main menu */
.nextra-nav-container>nav>div>a[href="/guides"] {
    display: none !important;
}

_meta.tsx

export default {
  ...
  guides: {
    type: "page",
    title: "Guides",
  },
  ...
}

@dimaMachina
Copy link
Collaborator

this was fixed by #3331 in stable v3

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

No branches or pull requests

3 participants