Skip to content

Allow nested subtree entries without a file, glob, or url - #120

Open
BetterAndBetterII wants to merge 1 commit into
executablebooks:mainfrom
BetterAndBetterII:fix/nested-subtree-entries
Open

Allow nested subtree entries without a file, glob, or url#120
BetterAndBetterII wants to merge 1 commit into
executablebooks:mainfrom
BetterAndBetterII:fix/nested-subtree-entries

Conversation

@BetterAndBetterII

Copy link
Copy Markdown

_parse_doc_item required every entries item to have file, glob, or url. A nested subtrees item (first or later in a subtree) raised MalformedError.

Those nested toctrees are now parsed onto the parent document, and inner file entries are still collected. Caption-only wrappers with no file items are omitted so YAML round-trip stays valid.

Fixes #89

An entries item that is itself subtrees (no file/glob/url) raised
MalformedError. Parse those nested toctrees onto the parent document.

Fixes executablebooks#89
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.

HTML build fails when subtree starts with subtree

1 participant