rnitta
4f7c299de7
update language attribute to configurable
2019-05-30 11:53:49 +09: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
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
8bb5426441
Fix keyboard chapter navigation for file
urls. ( #915 )
2019-05-08 00:29:46 +02:00
Eric Huss
a674c9eff1
Fix "next" navigation on index.html. ( #916 )
2019-05-08 00:27:48 +02:00
lzutao
581187098c
Deny 2018 edition idioms globally ( #911 )
2019-05-06 22:50:34 +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
b30b58b565
Merge pull request #889 from s3bk/master
...
new "Book" theme
2019-05-04 17:45:37 +02:00
Dylan DPC
9712347b9c
Merge pull request #796 from badboy/dont-trim-external-js-path
...
Don't strip relative path of additional javascript files
2019-04-26 09:01:39 +02:00
Sebastian Köln
9b6f5a9840
add Book theme (Liberation fonts need to be in /fonts/ on the server)
2019-03-20 15:21:36 +01:00
Steve Klabnik
2ddbb37f49
Fix the bug
2019-01-15 14:10:02 -05:00
Bas Bossink
742dbbc917
Run rustfmt.
2018-12-04 00:11:41 +01:00
Bas Bossink
991a725c26
Solve the simplest clippy warnings and run rustfmt
2018-12-04 00:10:09 +01:00
Desmond
8c86031384
Fix invalid url in renderer documentation
2018-11-21 08:59:53 +08:00
Michael Bryan
42b87e0fbc
Merge pull request #804 from Bassetts/default-theme-option
...
Default theme option
2018-10-30 21:18:48 +08:00
Michael Bryan
b4538da9c3
Merge pull request #802 from Bassetts/git-button
...
Implement a git repository button
2018-10-23 19:16:45 +08:00
Michael Bryan
89ea60e7a5
Made __non_exhaustive fields #[serde(skip)]
2018-10-20 11:21:24 +08:00
Jason Liquorish
5bfdf9fcc8
Added git-repository-icon option
...
Updated documentation and added tests.
2018-10-15 19:48:54 +01:00
Jason Liquorish
d2565af000
Add helper to format theme name for theme changer
2018-10-13 14:44:10 +01:00
Jason Liquorish
599e47f1f1
Initial implementation of a git repository button
2018-10-13 12:17:33 +01:00
Jason Liquorish
0c31ab2953
Initial implementation of default theme option
2018-10-12 19:57:59 +01:00
Jan-Erik Rediger
f654c42426
Don't strip relative path of additional javascript files
...
Previously, additional JavaScript files inside a directory were
correctly copied (with their parent created), but the link to it was
stripped of that parent.
There's no need for that (and it was not done for CSS)
2018-09-19 20:36:32 +02:00
Michael Bryan
5dce539928
Notify preprocessors of the mdbook version and add __non_exhaustive elements
2018-09-16 14:27:37 +08:00
Michael Bryan
206a00915b
Export the mdbook version from the crate root
2018-09-16 14:22:50 +08:00
Matt Ickstadt
3688f73052
rustfmt
...
using rustfmt 0.99.2-nightly
2018-08-21 10:58:44 -05:00
Ning Sun
4cc3a1333b
(feat) update to handlebars 1.0
2018-08-05 15:08:47 +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
b2eb1ace08
Fix relative paths in index.html
2018-08-02 12:43:40 -05:00
Andrew Chin
abfc3009fc
Add a "noplaypen" class for rust code samples.
...
This class will supress the "play" button in the html backend (which you
can also do with the "ignore" class), but it will still let the code be
tested via `mdbook test` (which is not possible with the "ignore" class).
This is useful for code examples that don't really do much (and so the
user doesn't gain much from running them), but as an author you still
want to test them to guard against syntax errors and typos and the like.
2018-07-26 17:55:14 -04:00
Matt Ickstadt
ac38f05bb6
Change template to use new CSS
2018-07-26 15:28:05 -05:00
Matt Ickstadt
fd9d27e082
rustfmt
2018-07-25 12:20:48 -05:00
Matt Ickstadt
5dd0496a4f
Update dependencies
...
`crossbeam` and `time` are removed since they're no longer used.
2018-07-24 16:40:34 -05:00
Matt Ickstadt
5835da2432
Run rustfmt
2018-07-23 12:47:04 -05:00
Matt Ickstadt
384582aeba
Cleanup add_doc
2018-07-23 12:08:04 -05:00
Matt Ickstadt
e1a46d213e
Use JSON search index with JS fallback
...
This allows the search index to be loaded asynchronously, and should
use fewer resources as it doesn't have to execute the JS.
JS loading is kept as a fallback for CORS issues with file:// URIs in Chrome.
2018-07-23 12:08:04 -05:00
Matt Ickstadt
62c8311301
Don't copy search js when disabled
2018-07-23 12:08:04 -05:00
Matt Ickstadt
b8011de3e8
Warn when search index is >10MB
2018-07-23 12:08:04 -05:00
Matt Ickstadt
019e74041d
Use integer doc_refs to shrink the search index
...
This change reduced the searchindex.js of book_example from 508KB to 317KB.
2018-07-23 12:08:04 -05:00
Matt Ickstadt
8cd7061ff2
Add search.enable config field
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
Mathieu David
27b29fdaf2
Merge pull request #696 from mattico/fix-theme-dir
...
Fix default theme dir selection
2018-05-16 21:58:41 +02:00
Matt Ickstadt
154e0fb308
Rustfmt
2018-05-16 12:08:23 -05:00
Matt Ickstadt
0de177a344
Add a warning for possible theme directories which will no longer be used
2018-05-16 12:06:55 -05:00
Matt Ickstadt
d7759fbf4d
Remove underscore from FontAwesome directory
2018-05-15 12:34:44 -05:00
Matt Ickstadt
f84e670edd
Add a .nojekyll file
...
to allow users to have other files with leading underscore names.
2018-05-15 12:34:44 -05:00
Matt Ickstadt
9a9c625319
Fix default theme dir selection
2018-05-14 14:52:29 -05:00
Tim Ryan
b9ca108fca
Support reproducible builds by forcing window.search to use stable key ordering. ( #692 )
2018-05-14 18:22:21 +08:00
Michael Bryan
b5ea84c60d
Remove unnecessary travis jobs ( #664 )
...
* Removed all the unnecessary CI jobs
* Updated dependencies
* Removed a deprecation warning
2018-04-07 15:47:08 +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