Flying-Toast
b0ae14a2c7
Automatically use a dark theme according to 'prefers-color-scheme'
2019-09-25 19:11:28 -04:00
Michael Bryan
bb412edf53
Made sure the tests pass
2019-07-21 04:32:28 +08:00
Michael Bryan
e56c41a1c2
The HTML renderer now cleans its own build directory
2019-07-21 02:37:09 +08:00
Eric Huss
228e99ba11
Fix even more print page links. ( #963 )
2019-07-01 17:52:25 +02:00
Eric Huss
bb3398bdbb
Merge pull request #941 from rnitta/configurable-language
...
Change language attribute of the book to configurable
2019-06-24 08:56:22 -07: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
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
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
991a725c26
Solve the simplest clippy warnings and run rustfmt
2018-12-04 00:10:09 +01:00
Michael Bryan
42b87e0fbc
Merge pull request #804 from Bassetts/default-theme-option
...
Default theme option
2018-10-30 21:18:48 +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
Matt Ickstadt
3688f73052
rustfmt
...
using rustfmt 0.99.2-nightly
2018-08-21 10:58:44 -05: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
62c8311301
Don't copy search js when disabled
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
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
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
Steve Klabnik
3ba71c570c
Handle input path with regards to custom css ( #598 )
...
* Handle input path with regards to custom css
Before, when someone like the Reference set their extra css as
"theme/reference.css" in their book.toml, this path would be treated as
relative to the invocation of mdbook, and not respect the input path. This
PR modifies these relative paths to do so.
Fixes the build of https://github.com/rust-lang/rust/pull/47753 which
blocks updating rustc to mdbook 0.1
* don't use file-name
the style name is theme/reference.css, this results in a Err(StripPrefixError(())), which means that we push only the file_name, losing the theme bit
2018-01-30 12:29:09 +08:00
Michael Bryan
ffb90bb9e2
Made sure we create the themes directory ( #586 )
2018-01-26 14:38:53 +08:00
Michael Bryan
5379a0bdf8
Made the logging a lot quieter by default ( #569 )
2018-01-23 01:28:37 +08:00
Sorin Davidoi
0bc3544c81
refactor: Remove store.js (use localStorage) ( #550 )
2018-01-22 07:04:16 +08:00
Sorin Davidoi
3d1a311638
refactor: Remove jQuery file ( #562 )
2018-01-20 15:56:32 +08:00
Jaime Valdemoros
cad76a9f6c
Factor out replace_all preprocessor
2018-01-16 22:39:11 +00:00
vabc3
e825357848
Add option to disable section label in html ( #533 )
2018-01-08 00:31:46 +08:00