This repository has been archived by the owner on Jul 8, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Oh well. This probably needs to be a global configuration option. In my case, I want to use top level sections for parts in a multivolume book, and subsections for chapters in the individual volumes. Currently, the weights need to be globally unique and monotone across all sections and subsections for navigation to work as expected.
In my case, I prefer local weights within each book (among the subsections) and local weights for all menu entries.
This patch implements that.
First, it uses PrevInSection and NextInSection to link subsections together. If you use index pages for the sections (as enabled in #42), and give them the weight 0, they are linked into the flow at the beginning. Of course, all subsections should be in a book-specific directory.
The homepage footer has been removed. It didn't work properly anyway, using publication date to find the next link. Using subsections for the home page is not very useful, so there is no special support for that (I am not even sure how that would look like).
Unfortunately, this removes footers from the non-nested sections case entirely, and that's not proper. So, I think there should be a global configuration option to control this.
What do you think?