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

Ability to uplevel a section #205

Closed
xeruf opened this issue Aug 16, 2022 · 4 comments
Closed

Ability to uplevel a section #205

xeruf opened this issue Aug 16, 2022 · 4 comments

Comments

@xeruf
Copy link

xeruf commented Aug 16, 2022

Due to the structure of my book (which should stay) I have something like this:
image

I could omit the name of the parent section, but then it still looks awkward:
image

I really want something like this - keeping the url and folder structure, just omitting one level in the navigation menu:
image

@mikebarkmin
Copy link
Member

mikebarkmin commented Aug 18, 2022

Thanks for the suggestion. I have created a new property for sections virtual in this commit 8f48c74. I have documented the property here: https://hyperbook.openpatch.org/configuration/section

I hope this helps :)

@xeruf
Copy link
Author

xeruf commented Aug 19, 2022

Fantastic, works perfectly :)

@xeruf
Copy link
Author

xeruf commented Aug 19, 2022

Now I have a more sophisticated feature idea on top of this, idk if that can work though:
I have the path /spiele/penguins/xml, of which /spiele/index.md is virtual. This is because we want to have permanent links to all games, but only display the current game in the navigation.

When linking from other pages it would be fantastic if I could specify a season-independent link (/spiele/xml) and it would automatically resolve it to the first currently visible sub-page (/spiele/penguins/xml) through the virtualisation.

@mikebarkmin
Copy link
Member

I get it and I think that it is a wonderful idea. But we need a new issue for that ;)

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