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

Ignore draft chapters #14

Merged
merged 1 commit into from
Sep 2, 2021
Merged

Ignore draft chapters #14

merged 1 commit into from
Sep 2, 2021

Conversation

naeu
Copy link
Contributor

@naeu naeu commented Sep 2, 2021

mdbook-graphviz panics when there are draft chapters and the path is empty.

2021-09-02 01:22:06 [INFO] (mdbook::book): Book building has started
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/preprocessor.rs:44:54
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This change ignores chapters where the path is None.

Copy link
Owner

@dylanowen dylanowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, thanks for the quick fix 👍

@dylanowen dylanowen merged commit 0bd1879 into dylanowen:master Sep 2, 2021
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.

2 participants