hextra icon indicating copy to clipboard operation
hextra copied to clipboard

Make / page in docs mode visible in Menu

Open ZeroHans4 opened this issue 1 year ago • 1 comments

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.

ZeroHans4 avatar May 17 '24 13:05 ZeroHans4

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.

imfing avatar May 29 '24 22:05 imfing