Eric Huss
fb0af12433
Bump MSRV to 1.60
...
Needed for new feature syntax
2022-12-14 07:20:09 -08:00
Eric Huss
b5f858da4e
Update dependencies
...
Fairly large update of semver compatible deps:
Updating aho-corasick v0.7.18 -> v0.7.20
Updating ammonia v3.1.2 -> v3.3.0
Adding android_system_properties v0.1.5
Removing ansi_term v0.12.1
Updating anyhow v1.0.43 -> v1.0.66
Updating assert_cmd v1.0.7 -> v1.0.8
Updating autocfg v1.0.1 -> v1.1.0
Updating base64 v0.13.0 -> v0.13.1
Updating bit-set v0.5.2 -> v0.5.3
Removing block-buffer v0.7.3
Removing block-buffer v0.9.0
Adding block-buffer v0.10.3
Removing block-padding v0.1.5
Adding bumpalo v3.11.1
Removing byte-tools v0.3.1
Updating bytes v1.0.1 -> v1.3.0
Adding cc v1.0.77
Updating chrono v0.4.19 -> v0.4.23
Updating clap v3.0.10 -> v3.2.23
Updating clap_complete v3.0.4 -> v3.2.5
Adding clap_lex v0.2.4
Adding codespan-reporting v0.11.1
Adding core-foundation-sys v0.8.3
Updating cpufeatures v0.1.5 -> v0.2.5
Adding crypto-common v0.1.6
Updating ctor v0.1.20 -> v0.1.26
Adding cxx v1.0.83
Adding cxx-build v1.0.83
Adding cxxbridge-flags v1.0.83
Adding cxxbridge-macro v1.0.83
Updating diff v0.1.12 -> v0.1.13
Removing digest v0.8.1
Removing digest v0.9.0
Adding digest v0.10.6
Updating either v1.6.1 -> v1.8.0
Updating elasticlunr-rs v3.0.0 -> v3.0.1
Updating env_logger v0.9.0 -> v0.9.3
Removing fake-simd v0.1.2
Adding fastrand v1.8.0
Updating filetime v0.2.15 -> v0.2.19
Updating form_urlencoded v1.0.1 -> v1.1.0
Updating futf v0.1.4 -> v0.1.5
Updating futures-channel v0.3.21 -> v0.3.25
Updating futures-core v0.3.21 -> v0.3.25
Updating futures-macro v0.3.16 -> v0.3.25
Updating futures-sink v0.3.21 -> v0.3.25
Updating futures-task v0.3.16 -> v0.3.25
Updating futures-util v0.3.16 -> v0.3.25
Removing generic-array v0.12.4
Removing generic-array v0.14.4
Adding generic-array v0.14.6
Updating getrandom v0.2.3 -> v0.2.8
Updating h2 v0.3.4 -> v0.3.15
Updating handlebars v4.1.2 -> v4.3.5
Updating hashbrown v0.11.2 -> v0.12.3
Updating headers v0.3.4 -> v0.3.8
Removing html5ever v0.25.1
Adding html5ever v0.25.2
Adding html5ever v0.26.0
Updating http v0.2.4 -> v0.2.8
Updating http-body v0.4.3 -> v0.4.5
Updating httparse v1.5.1 -> v1.8.0
Updating httpdate v1.0.1 -> v1.0.2
Updating hyper v0.14.11 -> v0.14.23
Adding iana-time-zone v0.1.53
Adding iana-time-zone-haiku v0.1.1
Updating idna v0.2.3 -> v0.3.0
Updating indexmap v1.7.0 -> v1.9.2
Adding instant v0.1.12
Updating itertools v0.10.1 -> v0.10.5
Updating itoa v0.4.8 -> v1.0.4
Adding js-sys v0.3.60
Updating libc v0.2.100 -> v0.2.138
Adding link-cplusplus v1.0.7
Adding lock_api v0.4.9
Updating log v0.4.14 -> v0.4.17
Adding markup5ever v0.11.0
Removing matches v0.1.9
Updating memchr v2.4.1 -> v2.5.0
Updating mime_guess v2.0.3 -> v2.0.4
Updating mio v0.7.13 -> v0.8.5
Removing miow v0.3.7
Updating net2 v0.2.37 -> v0.2.38
Removing ntapi v0.3.6
Updating num-integer v0.1.44 -> v0.1.45
Updating num-traits v0.2.14 -> v0.2.15
Updating num_cpus v1.13.0 -> v1.14.0
Updating once_cell v1.15.0 -> v1.16.0
Removing opaque-debug v0.2.3
Removing opaque-debug v0.3.0
Updating os_str_bytes v6.0.0 -> v6.4.1
Updating output_vt100 v0.1.2 -> v0.1.3
Adding parking_lot v0.12.1
Adding parking_lot_core v0.9.5
Updating percent-encoding v2.1.0 -> v2.2.0
Updating pest v2.1.3 -> v2.5.1
Updating pest_derive v2.1.0 -> v2.5.1
Updating pest_generator v2.1.3 -> v2.5.1
Updating pest_meta v2.1.3 -> v2.5.1
Adding phf v0.10.1
Adding phf_codegen v0.10.0
Adding phf_generator v0.10.0
Adding phf_shared v0.10.0
Updating pin-project v1.0.8 -> v1.0.12
Updating pin-project-internal v1.0.8 -> v1.0.12
Updating pin-project-lite v0.2.7 -> v0.2.9
Updating ppv-lite86 v0.2.10 -> v0.2.17
Updating predicates v2.0.1 -> v2.1.4
Updating predicates-core v1.0.2 -> v1.0.5
Updating predicates-tree v1.0.2 -> v1.0.7
Updating pretty_assertions v1.2.1 -> v1.3.0
Removing proc-macro-hack v0.5.19
Removing proc-macro-nested v0.1.7
Updating proc-macro2 v1.0.28 -> v1.0.47
Updating pulldown-cmark v0.9.1 -> v0.9.2
Removing quick-error v2.0.1
Updating quote v1.0.9 -> v1.0.21
Updating rand v0.8.4 -> v0.8.5
Updating rand_core v0.6.3 -> v0.6.4
Removing rand_hc v0.3.1
Updating redox_syscall v0.2.10 -> v0.2.16
Updating regex v1.5.5 -> v1.7.0
Updating regex-syntax v0.6.25 -> v0.6.28
Adding rustls-pemfile v0.2.1
Updating ryu v1.0.5 -> v1.0.11
Updating scoped-tls v1.0.0 -> v1.0.1
Adding scopeguard v1.1.0
Adding scratch v1.0.2
Updating semver v1.0.4 -> v1.0.14
Updating serde v1.0.129 -> v1.0.150
Updating serde_derive v1.0.129 -> v1.0.150
Updating serde_json v1.0.66 -> v1.0.89
Updating serde_urlencoded v0.7.0 -> v0.7.1
Removing sha-1 v0.8.2
Removing sha-1 v0.9.7
Adding sha-1 v0.10.1
Adding sha1 v0.10.5
Updating shlex v1.0.0 -> v1.1.0
Updating siphasher v0.3.6 -> v0.3.10
Updating slab v0.4.4 -> v0.4.7
Adding smallvec v1.10.0
Updating socket2 v0.4.1 -> v0.4.7
Updating string_cache v0.8.1 -> v0.8.4
Updating string_cache_codegen v0.5.1 -> v0.5.2
Updating syn v1.0.75 -> v1.0.105
Updating tempfile v3.2.0 -> v3.3.0
Updating tendril v0.4.2 -> v0.4.3
Updating termcolor v1.1.2 -> v1.1.3
Adding termtree v0.4.0
Updating textwrap v0.14.2 -> v0.16.0
Updating thiserror v1.0.31 -> v1.0.37
Updating thiserror-impl v1.0.31 -> v1.0.37
Updating time v0.1.43 -> v0.1.45
Updating tinyvec v1.3.1 -> v1.6.0
Updating tokio v1.16.1 -> v1.23.0
Updating tokio-macros v1.8.0 -> v1.8.2
Updating tokio-stream v0.1.7 -> v0.1.11
Updating tokio-tungstenite v0.15.0 -> v0.17.2
Updating tokio-util v0.6.7 -> v0.7.4
Updating toml v0.5.8 -> v0.5.10
Updating tower-service v0.3.1 -> v0.3.2
Updating tracing v0.1.26 -> v0.1.37
Updating tracing-core v0.1.19 -> v0.1.30
Removing treeline v0.1.0
Updating tungstenite v0.14.0 -> v0.17.3
Updating typenum v1.13.0 -> v1.16.0
Updating ucd-trie v0.1.3 -> v0.1.5
Updating unicode-bidi v0.3.6 -> v0.3.8
Adding unicode-ident v1.0.5
Updating unicode-normalization v0.1.19 -> v0.1.22
Adding unicode-width v0.1.10
Removing unicode-xid v0.2.2
Updating url v2.2.2 -> v2.3.1
Updating version_check v0.9.3 -> v0.9.4
Updating warp v0.3.2 -> v0.3.3
Removing wasi v0.10.2+wasi-snapshot-preview1
Adding wasi v0.10.0+wasi-snapshot-preview1
Adding wasi v0.11.0+wasi-snapshot-preview1
Adding wasm-bindgen v0.2.83
Adding wasm-bindgen-backend v0.2.83
Adding wasm-bindgen-macro v0.2.83
Adding wasm-bindgen-macro-support v0.2.83
Adding wasm-bindgen-shared v0.2.83
Adding windows-sys v0.42.0
Adding windows_aarch64_gnullvm v0.42.0
Adding windows_aarch64_msvc v0.42.0
Adding windows_i686_gnu v0.42.0
Adding windows_i686_msvc v0.42.0
Adding windows_x86_64_gnu v0.42.0
Adding windows_x86_64_gnullvm v0.42.0
Adding windows_x86_64_msvc v0.42.0
Updating xml5ever v0.16.1 -> v0.16.2
Adding yansi v0.5.1
2022-12-14 07:03:48 -08:00
Eric Huss
59bd5db556
Merge pull request #1950 from yoyomo/issue-1949
...
#1949 update for hidden only on clipboard
2022-12-14 06:57:02 -08:00
armandocumate
cf1557e454
update for hidden only on clipboard
2022-12-14 06:54:45 -08:00
Dylan DPC
36e1f01091
Merge pull request #1946 from LePichu/master
...
fix: random `Array` ref in `src/theme/book.js`
2022-12-06 13:26:45 +05:30
LePichu
e3c484af01
fix: random ref in
2022-12-06 12:05:11 +05:30
Dylan DPC
4deb5c7cee
Merge pull request #1941 from klensy/msrv
...
fix msrv in docs
2022-11-29 23:40:01 +05:30
klensy
21fb329d56
fix msrv in docs
2022-11-29 20:33:03 +03:00
Eric Huss
678b469835
Merge pull request #1938 from ehuss/bump-version
...
Update to 0.4.22
2022-11-28 10:16:18 -08:00
Eric Huss
ded48ddac7
Update to 0.4.22
2022-11-28 09:54:39 -08:00
Eric Huss
8a02fc755f
Fix broken doc link
2022-11-28 09:53:47 -08:00
Dylan DPC
4844f72b96
Merge pull request #1935 from ehuss/theme-dropdown-rendering-changes
...
Show the currently selected theme
2022-11-22 13:32:12 +05:30
Eric Huss
f32bd6f945
Show the currently selected theme.
2022-11-21 15:27:39 -08:00
Eric Huss
f64fcbc07d
Fix clipping in theme popup
2022-11-21 14:00:18 -08:00
Eric Huss
c34c3bf730
Merge pull request #1929 from Benjins/patch-2
...
Update docs link in Cargo.toml to HTTPS version
2022-11-18 18:05:37 -08:00
Benji Smith
de4c551363
Update docs link in Cargo.toml to HTTPS version
...
Currently, the documentation link is specified in Cargo.toml as:
documentation = "http://rust-lang.github.io/mdBook/index.html "
which propagates to crates.io and if users click on the docs link there they get the non-TLS version. Not likely to cause major issues, but still best practice to use the HTTPS version since it's there
2022-11-18 20:53:08 -05:00
Eric Huss
d45f02d38c
Merge pull request #1924 from averms-forks/html-conformance
...
Better HTML5 conformance
2022-11-13 13:29:18 -08:00
Eric Huss
666975a1ef
Merge pull request #1884 from willcrichton/master
...
Add support for watching additional directories
2022-11-13 12:53:19 -08:00
Will Crichton
144a1e4009
Add documentation for extra-watch-dirs
2022-11-12 14:28:43 -08:00
Will Crichton
8b486dfc71
Fix compilation failure
2022-11-12 14:23:05 -08:00
Aman Verma
db092a404e
State canonical URL using <link> not <meta>.
...
The Google SEO docs describe using the link element to specify the canonical
page in a redirect. They don't mention anything about <meta>.
2022-11-12 14:54:28 -06:00
Aman Verma
edda3d1b51
Fix formatting of content attr in <meta http-equiv=refresh>
...
According to the HTML specification[1], there needs to be a space after the
semicolon and the URL must be unquoted.
[1]: https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-http-equiv-refresh
2022-11-12 14:47:21 -06:00
Aman Verma
27a11e7b35
Don't generate obsolete charset attrs in <script>.
...
According to the HTML specification[1], the charset attribute is obsolete in
script elements.
[1]: https://html.spec.whatwg.org/multipage/obsolete.html#HTMLScriptElement-partial
2022-11-12 14:45:09 -06:00
Aman Verma
cfd4c93d88
Don't generate redundant <meta http-equiv=content-type>.
...
Quoting from the HTML specification[1]:
A document must not contain both a meta element with an http-equiv attribute
in the Encoding declaration state and a meta element with the charset
attribute present.
So we remove the <meta> with the http-equiv attribute from our template.
[1]: https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-http-equiv-content-type
2022-11-12 14:27:52 -06:00
Will Crichton
b1ca805d2a
Fix tests
2022-11-07 14:08:31 -08:00
Will Crichton
852a882fab
Improve error handling of extra-watch-dirs watching, fix not watching whitelisted files outside book root
2022-11-07 12:20:59 -08:00
Will Crichton
fb0cbc90e3
Add support for watching additional directories
2022-10-28 11:47:33 -07:00
Dylan DPC
3a24f10d7c
Merge pull request #1911 from yoyomo/fix-copying-invisible-text
...
fix copying invisible text
2022-10-15 11:37:46 +05:30
armandocumate
3fc036e01a
fi xcopying invisible text
2022-10-14 16:53:59 -07:00
Eric Huss
056a46cc97
Merge pull request #1862 from gifnksm/add-musl-binary
...
Deploy {x86_64,aarch64}-unknown-linux-musl binary
2022-10-13 17:17:53 -07:00
Eric Huss
f8df8ed72d
Merge pull request #1906 from brettchalupa/kbd-styles-1813
...
Add styles for <kbd> elements
2022-10-09 13:52:52 -07:00
Brett Chalupa
79c159d123
Add styles for <kbd> elements
...
Allows for special styles to call them out since they're different than
normal text and different than code. They can make use of styles they
inherit for font style and weight.
Notes on changes:
- Added new CSS variables for reused elements
- The font-* rules are separate for each aspect so that they can inherit
bold/italic/etc
Closes https://github.com/rust-lang/mdBook/issues/1813
2022-10-06 16:02:29 -04:00
Dylan DPC
a8c37ceace
Merge pull request #1900 from kianmeng/fix-typos
...
Fix typos
2022-09-29 21:00:10 +05:30
Kian-Meng Ang
cb01f11ad1
Fix typos
...
Found via `codespell -S ./src/theme -L crate,nam,varius,phasis`
2022-09-29 22:41:12 +08:00
Noritada Kobayashi
7aaa84853d
Add test code to show preprocessor developers what the interface data looks like ( #1897 )
...
This test code will show preprocessor developers what the input data
looks like and how to test the preprocessing results.
2022-09-24 14:32:41 -07:00
David
75857fbf73
feat: use once_cell instead of lazy_static ( #1894 )
2022-09-22 15:05:39 -07:00
Eric Huss
c8db0c8ec6
Merge pull request #1889 from mgeisler/simplify-and-then
...
Simplify the use of `Option::and_then`
2022-09-12 09:16:21 -07:00
Martin Geisler
3958260353
Simplify the use of Option::and_then
...
I found a few places where `Option::and_then` could be simplified (in
my opinion) with `?` or with `match`.
2022-09-11 00:46:26 +02:00
Eric Huss
8cdb8d0367
Merge pull request #1887 from mgeisler/edition-2021
...
Require Rust 2021 edition
2022-09-09 13:14:33 -07:00
Dylan DPC
66bf85b14f
Require Rust 2021 edition
...
This allows us to clean up and simplify the code.
2022-09-09 16:00:35 +02:00
Dylan DPC
1a0892745e
Merge pull request #1881 from GuillaumeGomez/unneeded-attribute
...
Remove unneeded `type` attribute for `<script>`
2022-08-30 10:53:11 +05:30
Guillaume Gomez
76b0493fb0
Remove unneeded type attribute for <script>
2022-08-29 21:07:50 +02:00
Chris Lovett
74eb4059d6
add a --chapter option to mdbook test. ( #1741 )
...
Sometimes when working on large books it is handy to be able to run mdbook on a single chapter of a book.
2022-08-25 19:13:51 -07:00
Dylan DPC
13f53eb64f
Merge pull request #1876 from joepio/patch-1
...
Explain how to use `site-url` with asset URLs
2022-08-23 14:33:02 +05:30
Joep Meindertsma
b3941526cb
Explain how to use site-url
...
Make sure people use the right kind of asset-urls. This issue only shows up when deploying, not using `mdbook serve`.
2022-08-23 10:33:25 +02:00
Eric Huss
fff067b2a8
Merge pull request #1836 from mgeisler/trim-trailing-whitespace
...
Avoid empty last line in editable code blocks
2022-08-10 19:55:06 -07:00
Martin Geisler
217546c2a0
Trim trailing whitespace in Rust code blocks
...
Before, a code block would always end with a final newline. The
newline was added unconditionally by `hide_lines`.
When the code block is syntax highlighted by highlight.js, this is not
a problem, no empty line is added for a final trailing `\n` character.
However, when the code block is editable and thus handled by the ACE
editor, a trailing newline _is_ significant. I believe this issue is
most closely described by https://github.com/ajaxorg/ace/issues/2083
in the upstream repository.
The effect of the way ACE handles newlines is that a code block like
<pre>
Some code
</pre>
will create an editor with _two_ lines, not just one.
By trimming trailing whitespace, we ensure that we don’t accidentally
create more lines in the ACE editor than necessary.
2022-08-10 03:11:08 +02:00
Eric Huss
40c06f5e77
Merge pull request #1863 from ehuss/bump-version
...
Update to 0.4.21
2022-07-22 11:06:12 -07:00
Eric Huss
bb09caa9a3
Update to 0.4.21
2022-07-22 10:54:53 -07:00
gifnksm
4ebefeb43a
Deploy {x86_64,aarch64}-unknown-linux-musl binary
2022-07-23 00:37:18 +09:00