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

Make / page in docs mode visible in Menu #392

Open
ZeroHans4 opened this issue May 17, 2024 · 1 comment
Open

Make / page in docs mode visible in Menu #392

ZeroHans4 opened this issue May 17, 2024 · 1 comment

Comments

@ZeroHans4
Copy link

Feature Description

I would like when in docs mode to have the / page as a clickable item in the sidebar.

For example, docs.test.com it should be active.

Problem/Solution
I can't find a way to make it possible. Because even when manually adding it

`title: Documentation Overview
cascade:
type: docs

menu:
sidebar:

weight: 1
exclude: false

URL: /

`

It is still below all the folders and pages.

Alternatives Considered

I have created an /overview.md page and then use Cloudflare to redirect all requests from / to /overview
But this is not cool at all

I also tried modifying the files via the layouts/partials, but there are so many dependencies I would need to apply many more files to get it working there.

Additional Context

If there is any way to do this, please let me know.

@imfing
Copy link
Owner

imfing commented May 29, 2024

This is not supported out-of-the-box yet. I have a PR in progress to make the sidebar more configurable.

Meanwhile, you may override the sidebar template to achieve this.

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

2 participants