Matthew Woodcraft
d65ce55453
When creating the search index, omit words longer than 80 characters
...
This avoids creating deeply nested objects in searchindex.json
2022-05-22 14:00:20 +01:00
Eric Huss
37d756ae75
Adjust overlap of code buttons with code blocks.
2022-05-16 19:27:46 -07:00
Eric Huss
f8782666ba
Merge pull request #1714 from joshrotenberg/draft-no-index
...
Check for the index.html file before trying to opener::open it
2022-05-16 08:04:38 -07:00
josh rotenberg
c74c682939
call find_chapter when opening browser
2022-05-11 13:14:38 -07:00
josh rotenberg
8b49600673
call first_chapter
2022-05-10 11:19:23 -07:00
josh rotenberg
29c729fd23
call first_chapter
2022-05-10 11:17:20 -07:00
josh rotenberg
5d65967448
add first_chapter function
2022-05-10 11:16:22 -07:00
Eric Huss
bf258eeb9b
Merge pull request #1801 from klensy/static-regex
...
init regexes via lazy_static
2022-05-06 12:05:10 -07:00
klensy
af6237015a
init regexes via lazy_static, don't recompute it
2022-05-06 10:05:52 +03:00
Eric Huss
a462fb63c3
Merge pull request #1798 from klensy/serde_derive
...
Use serde's `derive` feature instead of directly importing serde_derive
2022-05-05 12:55:01 -07:00
klensy
f3332fb0da
Use serde's derive
feature instead of directly importing serde_derive
2022-05-05 09:33:51 +03:00
Eric Huss
5bea83114b
Merge pull request #1791 from clarkfw/master
...
bail! in render() if specified theme directory does not exist
2022-05-02 11:08:57 -07:00
Clark
fe8bb38ec1
add a test: Ensure building fails if [output.html].theme
points to a non-existent directory
2022-04-28 13:13:58 +08:00
Clark
a60571321a
bail! in render() if specified theme directory does not exist
2022-04-26 20:20:44 +08:00
Eric Huss
e1c2e1a753
Merge pull request #1788 from max-sixty/patch-1
...
Fix typo in changelog
2022-04-15 12:26:42 -07:00
Maximilian Roos
800dbf2929
Fix typo in changelog
2022-04-15 12:09:31 -07:00
Eric Huss
1880447dce
Merge pull request #1787 from ehuss/bump-version
...
Update to 0.4.18
2022-04-15 11:33:56 -07:00
Eric Huss
268dbb099f
Update to 0.4.18
2022-04-15 11:24:45 -07:00
Eric Huss
ae275ad1b1
Merge pull request #1785 from ehuss/summary-escape
...
Don't try to render summary links as markdown.
2022-04-15 11:20:17 -07:00
Eric Huss
ceff050bb4
Don't try to render summary links as markdown.
2022-04-14 20:35:39 -07:00
josh rotenberg
8357811d96
Merge branch 'draft-no-index' of https://github.com/joshrotenberg/mdBook into draft-no-index
2022-04-04 18:59:47 -07:00
josh rotenberg
860a17d85a
Merge branch 'rust-lang:master' into draft-no-index
2022-04-04 18:59:39 -07:00
Eric Huss
ba324cddb6
Merge pull request #1778 from sgoudham/fix-typo
...
User Guide: Fix typo 'mbdook' to 'mdbook'
2022-04-01 14:36:51 -07:00
Eric Huss
a5dcd78393
Merge pull request #1777 from trofi/ignore-RUST_LOG
...
tests/cli: ignore user's RUST_LOG= environment variable in tests
2022-04-01 14:00:44 -07:00
sgoudham
8e1195322a
Fix typo 'mbdook' to 'mdbook'
2022-04-01 13:13:58 +01:00
Sergei Trofimovich
2a2b51c8ab
tests/cli: ignore user's RUST_LOG= environment variable in tests
...
nixpkgs build system sets `RUST_LOG=` (empty value) by default.
This switches `mdBook` into warnings+ mode (instead of info+).
This causes the following tests to fail:
$ RUST_LOG= cargo test --test cli_tests
...
cli::test::mdbook_cli_can_correctly_test_a_passing_book
cli::test::mdbook_cli_detects_book_with_failing_tests
cli::build::mdbook_cli_dummy_book_generates_index_html
The change drops RUST_LOG= entry.
2022-04-01 08:15:18 +01:00
Eric Huss
eb5ec2a314
Merge pull request #1776 from ehuss/bump-version
...
Update to 0.4.17
2022-03-30 10:22:28 -07:00
Eric Huss
445529a68f
Update to 0.4.17
2022-03-30 09:33:56 -07:00
Eric Huss
981b79b3b3
Merge pull request #1775 from ehuss/fix-print-config
...
Fix html print config default.
2022-03-30 09:31:16 -07:00
Eric Huss
78bcda02cb
Fix html print config default.
2022-03-30 07:58:27 -07:00
Eric Huss
cdfa5ad990
Add missing entries for 0.4.16
2022-03-29 17:50:08 -07:00
Eric Huss
720f502e9d
Merge pull request #1773 from ehuss/bump-version
...
Update to 0.4.16
2022-03-29 17:45:05 -07:00
Eric Huss
adf6129769
Update to 0.4.16
2022-03-29 17:33:01 -07:00
Eric Huss
a5fddfa468
Merge pull request #1749 from tommilligan/unique-search-anchors
...
search: fix anchor ids for duplicate headers
2022-03-28 12:44:20 -07:00
Eric Huss
7c37dd5e85
Merge pull request #1731 from epage/clap3
...
Port mdBook to clap3
2022-03-28 12:34:17 -07:00
Ed Page
857ca19fe4
refactor: Move from deprecated arg_from_usage
2022-03-28 13:06:50 -05:00
Ed Page
a19d91ef37
refactor: Move from deprecated multiple
2022-03-28 13:06:50 -05:00
Ed Page
ac8526688a
refactor: Move from deprecated empty_values
2022-03-28 13:06:50 -05:00
Ed Page
1e1c99bbdb
refactor: Move from deprecated GlobalVersion
2022-03-28 13:06:50 -05:00
Ed Page
0c89293029
refactor: Move from deprecated ColoredHelp
2022-03-28 13:06:50 -05:00
Ed Page
39eb78c88b
refactor: Move from deprecated SubCommand
2022-03-28 13:06:50 -05:00
Ed Page
372842aac6
refactor: Move from deprecated Arg::with_name
2022-03-28 13:06:50 -05:00
Ed Page
7934e06668
chore: Upgrade to clap3
2022-03-28 13:06:50 -05:00
Ed Page
44f982f8e5
chore: Upgrade MSRV
2022-03-28 13:06:44 -05:00
Eric Huss
1f04a62648
Merge pull request #1693 from rsapkf/404-title
...
Add proper title to 404 page
2022-03-27 17:26:45 -07:00
Eric Huss
675c8c3f4e
Add book title to 404 page title.
2022-03-27 17:17:20 -07:00
rsapkf
97cb77bbdd
Add proper title to 404 page
2022-03-27 17:01:11 -07:00
Eric Huss
46345b8e49
Fix comment typo
2022-03-27 16:39:12 -07:00
Eric Huss
566451e9a7
Merge pull request #1771 from FWYongxing/master
...
livereload uses host, port and HTTP(S) protocol of current page
2022-03-27 16:33:32 -07:00
Eric Huss
15626294b0
Merge pull request #1744 from ilslv/1743-fix-title-consuming-events
...
Fix `SummaryParser::parse_title()` consuming events (#1743 )
2022-03-27 14:38:00 -07:00