-
Notifications
You must be signed in to change notification settings - Fork 1.8k
add a --chapter option to mdbook test. #1741
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
Changes from 4 commits
f0189cd
4d78119
bf6d452
71e490d
6e3d275
99a8c0d
f1c07b0
ed0ee85
96245d2
7c55869
0926c52
05ed667
601b6df
20cca38
5ec488c
9172005
c1004f7
e979012
d383ae0
4ead38f
1747094
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,11 +67,11 @@ | |
| var theme = localStorage.getItem('mdbook-theme'); | ||
| var sidebar = localStorage.getItem('mdbook-sidebar'); | ||
| if (theme.startsWith('"') && theme.endsWith('"')) { | ||
| if (theme && theme.startsWith('"') && theme.endsWith('"')) { | ||
| localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1)); | ||
| } | ||
| if (sidebar.startsWith('"') && sidebar.endsWith('"')) { | ||
| if (sidebar && sidebar.startsWith('"') && sidebar.endsWith('"')) { | ||
|
||
| localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1)); | ||
| } | ||
| } catch (e) { } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed