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

Improved sections menu #340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

raspopov
Copy link
Contributor

@raspopov raspopov commented May 6, 2021

Improved sections menu and added a new site parameters: BookCollapseSection and BookCollapseSectionLevel.

Now BookCollapseSection parameter (by default false) can be defined in site configuration and thus effectively enable all sections as collapsible. Moreover front matter BookCollapseSection parameter can be redefined as false to disable specific section.

A new BookCollapseSectionLevel site parameter can be used for auto-expand up to specified nest level (by default 0 - no expand).

Also fixed issue when sections without subsections was mistakenly collapsible.

Parameters compatibility is not broken (no changes required for any existing sites).

Signed-off-by: raspopov raspopov@cherubicsoft.com

…ection (was front matter only, global now) and BookCollapseSectionLevel (used for auto-expand up to specified nest level).

Signed-off-by: raspopov <raspopov@cherubicsoft.com>
@alex-shpak
Copy link
Owner

Hi!
I could see global param for BookCollapseSection, tho BookCollapseSectionLevel is too much for my taste, I think it is not hard to add metadata to page to un-collpase them 🤔

@raspopov
Copy link
Contributor Author

My site has an almost a hundred of collapsed pages (expanded options group pages and its nested collapsed option pages).

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

Successfully merging this pull request may close these issues.

None yet

2 participants