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

Introduce new type parameter to navigation item #2629

Open
zecar opened this issue May 2, 2024 · 0 comments
Open

Introduce new type parameter to navigation item #2629

zecar opened this issue May 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@zecar
Copy link

zecar commented May 2, 2024

Is your feature request related to a problem? Please describe

I am displaying a custom navigation for a multi-level course structure and i have no way of knowing if a route is to a folder or to a .md file

Describe the solution you'd like

ideally, the navigation item would have a type property with values like article | file or folder | directory in order to be able to customize the navigation

Describe alternatives you've considered

right now i'm using the logic of "if route has no children, it must be an article" but that is not correct because it could be an empty folder

@zecar zecar added the enhancement New feature or request label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant