Carol (Nichols || Goulding)
f9f9785839
When this test fails, print out why to assist in debugging
2019-08-12 09:50:54 -04:00
Eric Huss
6199e4df79
Bump elasticlunr.
2019-07-12 09:53:11 -07:00
Eric Huss
228e99ba11
Fix even more print page links. ( #963 )
2019-07-01 17:52:25 +02:00
Carol (Nichols || Goulding)
b83c55f7ef
Switch to the standard library's fs::read_to_string
2019-06-19 22:49:18 -04:00
Eric Huss
07830f7f11
Merge pull request #891 from integer32llc/include-before-test
...
Write preprocessed content to file before testing with rustdoc
2019-06-12 15:01:58 -07:00
Eric Huss
2497e77bf1
Support strikethrough and tasklists. ( #952 )
2019-06-12 17:02:03 +02:00
rnitta
a655d5d241
Header elements wrap links ( #948 )
...
* swap hierarchy of header for that of link
* fix comment
2019-06-03 14:31:15 +02:00
lzutao
53ba0d6655
Remove 'static lifetime from static vars ( #947 )
2019-05-31 18:01:02 +02:00
Lzu Tao
672cf456eb
Remove unnecessary ::<crate>
...
Find and replace with `git grep -E '\W::[a-z]'` command.
2019-05-30 23:12:33 +07:00
lzutao
8542f7f29d
Transition to 2018 edition ( #933 )
...
* Transition to 2018 edition
* Update Travis CI badge in README
* Remove non-idiomatic `extern crate` lines
2019-05-25 20:50:41 +02:00
Bas Bossink
e3ec751a3f
Issue 703 ( #929 )
...
* Replace all occurances of altenate backend with alternative backed
Rename test for consistency of the terminology.
* Use better sed command
2019-05-19 22:16:10 +02:00
Allen
df12cc55c8
Revert "Merge pull request #889 from s3bk/master" ( #917 )
...
* Revert "Merge pull request #889 from s3bk/master"
This reverts commit b30b58b565
, reversing
changes made to c6220fba83
.
* format tests :P
2019-05-09 20:18:28 +02:00
Eric Huss
cb4a3e0711
Fix more print.html links. ( #871 )
2019-05-08 23:50:59 +02:00
Bas Bossink
506996808b
Fix issue 832 ( #841 )
...
* Add if around stub summary creation
Check if an existing SUMMARY.md is present to prevent overwriting it
with the stub SUMMARY.md.
[#832 ]
* Add test for existing SUMMARY.md
2019-05-08 21:13:20 +02:00
Philipp Hansch
5163c5ab75
Don't let robots index the print.html ( #844 )
2019-05-08 00:32:43 +02:00
Eric Huss
8bb5426441
Fix keyboard chapter navigation for file
urls. ( #915 )
2019-05-08 00:29:46 +02:00
lzutao
ab7802a9a9
Fix most of clippy warnings ( #914 )
...
* Fix clippy: cast_lossless
* Fix clippy: match_ref_pats
* Fix clippy: extra_unused_lifetimes
* Fix clippy: needless_lifetimes
* Fix clippy: new_without_default
* Fix clippy: or_fun_call
* Fix clippy: should_implement_trait
* Fix clippy: redundant_closure
* Fix clippy: const_static_lifetime
* Fix clippy: redundant_pattern_matching
* Fix clippy: unused_io_amount
* Fix clippy: string_lit_as_bytes
* Fix clippy: needless_update
* Fix clippy: blacklisted_name
* Fix clippy: collapsible_if
* Fix clippy: match_wild_err_arm
* Fix clippy: single_match
* Fix clippy: useless_vec
* Fix clippy: single_char_pattern
* Fix clippy: float_cmp
* Fix clippy: approx_constant
2019-05-06 20:20:58 +02:00
Lzu Tao
0aa3a9045a
cargo fmt
2019-05-05 22:00:24 +07:00
Dylan DPC
652eab6e7e
Update custom_preprocessors.rs
2019-05-03 20:32:56 +02:00
Dylan DPC
5726a8afd6
Update build_process.rs
2019-05-03 20:00:43 +02:00
Carol (Nichols || Goulding)
4abac12c04
Fix deprecation warnings for trim left/right matches
2019-03-23 08:47:10 -04:00
Carol (Nichols || Goulding)
d7c7d91005
Write preprocessed content to file before testing with rustdoc
...
Fixes #855 .
2019-03-23 08:35:44 -04:00
Steve Klabnik
a481735fa2
failing test
2019-01-15 14:08:53 -05:00
Bas Bossink
3598e905aa
Make failing_alternate_backend test more platform specific
...
Use the suggestion from @Michael-F-Bryan to make the passing_ and
failing_alternate_backend test more reliable across platforms.
2018-12-05 22:26:53 +01:00
Bas Bossink
742dbbc917
Run rustfmt.
2018-12-04 00:11:41 +01:00
Michael Bryan
132f4fd358
Fixed a bug where the tests use the wrong dummy book
2018-09-16 23:33:58 +08:00
Michael Bryan
1d72cea972
The example preprocessor works
2018-09-16 23:28:01 +08:00
Michael Bryan
1aa1194d79
We can shell out to the preprocessor
2018-09-16 23:23:03 +08:00
Michael Bryan
304234c122
The example can now tell mdbook if renderers are supported
2018-09-16 23:00:19 +08:00
Michael Bryan
729c94a7e4
Started working on a custom preprocessor
2018-09-16 22:49:52 +08:00
Michael Bryan
09667c9956
Configurable preprocessor ( #658 )
...
* The preprocessor trait now returns a modified book instead of editing in place
* A preprocessor is told which render it's running for
* Made sure preprocessors get their renderer's name
* Users can now manually specify whether a preprocessor should run for a renderer
* You can normally use default preprocessors by default
* Got my logic around the wrong way
* Fixed the `build.use-default-preprocessors` flag
2018-09-10 18:55:58 +08:00
Matt Ickstadt
1d69ccae48
Run rustfmt
...
using 0.8.2-stable included in rustc 1.28.0
2018-08-02 20:22:49 -05:00
Matt Ickstadt
1d1d4d7c30
Update tests to handle added dummy_book chapter
2018-07-25 12:45:20 -05:00
Matt Ickstadt
0e1787c617
Don't run index preprocessor on mdbook test
2018-07-25 12:19:01 -05:00
Matt Ickstadt
e5563182fc
Add readme to cause test to fail
...
The test for `mdbook test` fails due to the index preprocessor which only runs on README files.
2018-07-25 12:14:27 -05:00
Matt Ickstadt
5835da2432
Run rustfmt
2018-07-23 12:47:04 -05:00
Matt Ickstadt
e94078cc9c
Fix tests
2018-07-23 12:08:04 -05:00
cetra3
bdb37ec117
Use relative links and translate internal references ( #603 )
...
* Relative links for 0.1.8
* Compat for IE11 search
2018-07-11 21:33:44 +08:00
Andrew Gauger
2a55ff62f3
Recursively apply preprocessor ( #682 )
2018-05-20 18:36:19 +08:00
Matt Ickstadt
9a9c625319
Fix default theme dir selection
2018-05-14 14:52:29 -05:00
Weihang Lo
69599646e7
Add index preprocessor ( #685 )
...
* Add index preprocessor
README.md is a de facto index file in markdown-based documentation.
Hence, we respect to README.md and convert it into index.html.
* Fix warning for unused variables
* Update tests for config
* Match file stem case-insensitively for IndexPreprocessor
* Add tests for IndexPreprocessor
* Update book example to fit index preprocessor
2018-05-04 19:41:28 +08:00
Bastien Orivel
55f7ed1c37
Replace tempdir by tempfile ( #650 )
...
The former has been deprecated in favor of the latter
2018-03-27 07:47:37 +08:00
Matt Ickstadt
5fb3675151
Update elasticlunr-rs ( #646 )
...
* Update dependencies
* Use config structs from elasticlunr-rs
* Update searchindex fixture
2018-03-20 20:22:35 +08:00
Matt Ickstadt
b2ad669c61
Search with Elasticlunr, updated ( #604 )
...
* Add search with elasticlunr.js
This commit adds search functionality to mdBook, based on work done by @phaiax. The in-browser search code uses elasticlunr.js to execute the search, using an index generated at book build time by elasticlunr-rs.
* Add generator comment
Someone on Reddit was wondering how the rust book was generated and said they checked the source. Thought I'd put this here. Might be a good idea to have a little footer "made with mdBook", but this'll do for now.
* Remove search/editor file override behavior
* Use for loop for book iterator
* Improve HTML regex
* Fix search CORS in file URIs
* Use ammonia to sanitize HTML
* Filter html5ever log messages
2018-03-07 21:02:06 +08:00
Michael Bryan
bda23f0183
Missing backends are no longer fatal
2018-01-25 01:15:29 +08:00
Michael Bryan
c89245b45b
Recursively apply replace_all() when running the links preprocessor ( #564 )
...
* Looks like we forgot to recursively apply replace_all() in #532
* Removed some print statements
* Made sure we ignore the rendered dummy_book
2018-01-22 06:44:28 +08:00
Michael Bryan
232a923676
Added a windows-specific tee
equivalent ( #561 )
...
* Added a windows-specific `tee` equivalent
* Changed how the windows "tee" command gets quoted
* Temporarily disabled the backends_receive_render_context_via_stdin test
2018-01-20 21:46:44 +08:00
Jaime Valdemoros
80a20eb730
Use Arc instead of lazy_static for dummy preprocessor
2018-01-17 19:02:25 +00:00
Jaime Valdemoros
4177288b11
Add test to make sure pre-processors are being run
2018-01-16 22:39:11 +00:00
Michael Bryan
9ab54412ea
Made it so the CmdRenderer writes directly to the child's stdin ( #544 )
2018-01-14 19:14:27 +08:00