Jonas Fassbender
0c6439faad
Enhanced wording for editable code blocks docs
2025-03-03 17:21:34 +01:00
Eric Huss
19146c403e
Merge pull request #2557 from ehuss/fix-playground-edition
...
Fix playground edition detection
2025-02-26 14:02:34 +00:00
Eric Huss
66ded2302f
Fix playground edition detection
2025-02-26 05:50:25 -08:00
Eric Huss
98abb22be1
Merge pull request #1368 from notriddle/hash-files
...
feat(html): cache bust static files by adding hashes to file names
2025-02-20 18:32:17 +00:00
Eric Huss
ab304e7d38
More code simplification
2025-02-20 10:25:14 -08:00
Eric Huss
fbc21592af
Some clippy cleanup
2025-02-20 10:23:47 -08:00
Eric Huss
e7b69114ed
Remove some code duplication
2025-02-20 10:19:04 -08:00
Michael Howell
8a9ecd212d
Fix, and test, the no-js toc sidebar with hashed resources
...
To make this work, I need to break the circular dependency and
stop hashing toc.html itself.
2025-02-20 10:27:18 -07:00
Eric Huss
ec157cd1cd
Use full patch description for hex
2025-02-20 08:54:01 -08:00
Eric Huss
d3bcb359fa
Update sha2 to latest
2025-02-20 08:52:58 -08:00
Eric Huss
2a4e5583ab
Rewrite test to use tempfile
...
We don't want to be writing to arbitrary directories, and this
seems to make the test a little simpler.
2025-02-20 08:48:16 -08:00
Eric Huss
3978612611
Update some comments and formatting
2025-02-20 08:47:03 -08:00
Eric Huss
4941acdb87
Merge pull request #2551 from ehuss/bump-version
...
Update to 0.4.45
2025-02-17 18:26:17 +00:00
Eric Huss
7e3d2f96ab
Update to 0.4.45
2025-02-17 10:18:04 -08:00
Eric Huss
ddba36b24c
Merge pull request #2524 from WaffleLapkin/first-last-of-type-footnote
...
nicer style rules for margin around footnote defs
2025-02-17 18:12:15 +00:00
Eric Huss
35cf96a064
Merge pull request #2550 from ehuss/fix-expected-source-path
...
Fix issue with None source_path
2025-02-17 17:52:50 +00:00
Eric Huss
5777a0edc4
Fix issue with None source_path
...
This fixes an issue where mdbook would panic if a non-draft chapter has
a None source_path when generating the search index. The code was
assuming that only draft chapters would have that behavior. However, API
users can inject synthetic chapters that have no path on disk.
This updates it to fall back to the path, or skip if neither is set.
2025-02-17 09:41:52 -08:00
Eric Huss
53c3a92285
Add test for a chapter with no source path
2025-02-17 08:20:16 -08:00
Michael Howell
82db7f5b93
Add a bit more to the configuration docs
2025-02-13 14:22:54 -07:00
Michael Howell
879449447f
feat(html): cache bust static files by adding hashes to file names
...
Closes rust-lang#1254
2025-02-13 10:39:22 -07:00
Eric Huss
132ca0dca3
Merge pull request #2548 from tamird/patch-1
...
README.md: update workflow status badge
2025-02-13 16:25:11 +00:00
Tamir Duberstein
56c2b9ba3a
README.md: update workflow status badge
...
The previous badge was broken.
Link: https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/monitoring-workflows/adding-a-workflow-status-badge
2025-02-13 11:01:08 -05:00
Eric Huss
542b6feed1
Merge pull request #2545 from ehuss/rustdoc-missing-error
...
Add context when `rustdoc` command is not found
2025-02-03 19:10:48 +00:00
Eric Huss
2af44a396f
Add context when rustdoc command is not found
2025-02-03 11:02:53 -08:00
Eric Huss
40d91fff29
Merge pull request #2540 from ehuss/bump-version
...
Update to 0.4.44
2025-01-28 17:58:16 +00:00
Eric Huss
59eab7cfc2
Update to 0.4.44
2025-01-28 09:50:04 -08:00
Eric Huss
1b524ff356
Merge pull request #2539 from ehuss/update-notify
...
Update notify to 8.0.0
2025-01-28 17:41:05 +00:00
Eric Huss
9b873e9d97
Bump rust-version to 1.77
2025-01-28 09:35:11 -08:00
Eric Huss
b6d6cb2711
Update notify to 8.0.0
2025-01-28 09:32:17 -08:00
Eric Huss
c8095160d0
Merge pull request #2538 from ehuss/update-dependencies
...
Update dependencies
2025-01-28 17:19:41 +00:00
Eric Huss
ae6db3a87e
Update dependencies
...
Updating anstyle-wincon v3.0.6 -> v3.0.7
Updating anyhow v1.0.93 -> v1.0.95
Updating bitflags v2.6.0 -> v2.8.0
Updating bstr v1.10.0 -> v1.11.3
Updating bytes v1.8.0 -> v1.9.0
Updating cc v1.1.36 -> v1.2.10
Updating chrono v0.4.38 -> v0.4.39
Updating clap v4.5.20 -> v4.5.27
Updating clap_builder v4.5.20 -> v4.5.27
Updating clap_complete v4.5.37 -> v4.5.43
Updating clap_lex v0.7.2 -> v0.7.4
Updating cpufeatures v0.2.14 -> v0.2.17
Updating crossbeam-channel v0.5.13 -> v0.5.14
Updating crossbeam-deque v0.8.5 -> v0.8.6
Updating crossbeam-utils v0.8.20 -> v0.8.21
Adding darling v0.20.10
Adding darling_core v0.20.10
Adding darling_macro v0.20.10
Updating data-encoding v2.6.0 -> v2.7.0
Adding derive_builder v0.20.2
Adding derive_builder_core v0.20.2
Adding derive_builder_macro v0.20.2
Updating env_filter v0.1.2 -> v0.1.3
Updating env_logger v0.11.5 -> v0.11.6
Updating errno v0.3.9 -> v0.3.10
Updating fastrand v2.1.1 -> v2.3.0
Updating float-cmp v0.9.0 -> v0.10.0
Updating handlebars v6.2.0 -> v6.3.0
Updating hashbrown v0.15.1 -> v0.15.2
Removing hermit-abi v0.3.9
Updating http v1.1.0 -> v1.2.0
Updating httparse v1.9.5 -> v1.10.0
Updating hyper v0.14.31 -> v0.14.32
Adding ident_case v1.0.1
Updating indexmap v2.6.0 -> v2.7.1
Updating itoa v1.0.11 -> v1.0.14
Updating js-sys v0.3.72 -> v0.3.77
Updating libc v0.2.161 -> v0.2.169
Updating linux-raw-sys v0.4.14 -> v0.4.15
Updating litemap v0.7.3 -> v0.7.4
Updating log v0.4.22 -> v0.4.25
Updating miniz_oxide v0.8.0 -> v0.8.3
Updating mio v1.0.2 -> v1.0.3
Updating object v0.36.5 -> v0.36.7
Updating pathdiff v0.2.2 -> v0.2.3
Updating pest v2.7.14 -> v2.7.15
Updating pest_derive v2.7.14 -> v2.7.15
Updating pest_generator v2.7.14 -> v2.7.15
Updating pest_meta v2.7.14 -> v2.7.15
Updating phf v0.11.2 -> v0.11.3
Updating phf_codegen v0.11.2 -> v0.11.3
Updating phf_generator v0.11.2 -> v0.11.3
Updating phf_shared v0.11.2 -> v0.11.3
Updating pin-project v1.1.7 -> v1.1.8
Updating pin-project-internal v1.1.7 -> v1.1.8
Updating pin-project-lite v0.2.15 -> v0.2.16
Updating predicates v3.1.2 -> v3.1.3
Updating predicates-core v1.0.8 -> v1.0.9
Updating predicates-tree v1.0.11 -> v1.0.12
Updating proc-macro2 v1.0.89 -> v1.0.93
Updating quote v1.0.37 -> v1.0.38
Updating redox_syscall v0.5.7 -> v0.5.8
Updating regex-automata v0.4.8 -> v0.4.9
Updating rustix v0.38.39 -> v0.38.44
Adding rustversion v1.0.19
Updating ryu v1.0.18 -> v1.0.19
Updating semver v1.0.23 -> v1.0.25
Updating serde v1.0.214 -> v1.0.217
Updating serde_derive v1.0.214 -> v1.0.217
Updating serde_json v1.0.132 -> v1.0.137
Adding siphasher v1.0.1
Updating socket2 v0.5.7 -> v0.5.8
Updating syn v2.0.87 -> v2.0.96
Updating tempfile v3.13.0 -> v3.15.0
Updating terminal_size v0.4.0 -> v0.4.1
Updating termtree v0.4.1 -> v0.5.1
Removing thiserror v1.0.68
Adding thiserror v1.0.69
Adding thiserror v2.0.11
Removing thiserror-impl v1.0.68
Adding thiserror-impl v1.0.69
Adding thiserror-impl v2.0.11
Updating tokio v1.41.0 -> v1.43.0
Updating tokio-macros v2.4.0 -> v2.5.0
Updating tokio-util v0.7.12 -> v0.7.13
Updating tracing v0.1.40 -> v0.1.41
Updating tracing-core v0.1.32 -> v0.1.33
Updating unicase v2.8.0 -> v2.8.1
Updating unicode-ident v1.0.13 -> v1.0.16
Updating url v2.5.3 -> v2.5.4
Updating wasm-bindgen v0.2.95 -> v0.2.100
Updating wasm-bindgen-backend v0.2.95 -> v0.2.100
Updating wasm-bindgen-macro v0.2.95 -> v0.2.100
Updating wasm-bindgen-macro-support v0.2.95 -> v0.2.100
Updating wasm-bindgen-shared v0.2.95 -> v0.2.100
Updating yoke v0.7.4 -> v0.7.5
Updating yoke-derive v0.7.4 -> v0.7.5
Updating zerofrom v0.1.4 -> v0.1.5
Updating zerofrom-derive v0.1.4 -> v0.1.5
2025-01-28 09:11:17 -08:00
Eric Huss
18f57f5bd9
Merge pull request #2533 from ehuss/search-chapter-settings
...
Add output.html.search.chapter
2025-01-28 14:43:02 +00:00
Eric Huss
09a37284b0
Add output.html.search.chapter
...
This config setting provides the ability to disable search indexing on a
per-chapter (or sub-path) basis.
This is structured to possibly add additional settings, such as perhaps
a score multiplier or other settings.
2025-01-27 19:45:50 -08:00
Eric Huss
dff5ac64e5
Merge pull request #2458 from dcampbell24/display-for-clean
...
Display what is removed from mdbook clean.
2025-01-25 21:54:30 +00:00
Eric Huss
0ee565a5ff
Merge pull request #2530 from max-heller/rust-hidelines
...
fix: make line hiding in Rust code blocks consistent with `rustdoc`
2025-01-25 21:50:47 +00:00
Eric Huss
9e4854f349
Merge pull request #2532 from notriddle/sync-toggle
...
Prevent the real sidebar position from becoming unsynced from the JS
2025-01-25 21:17:31 +00:00
Michael Howell
74d48f5ad2
Prevent the real sidebar position from becoming unsynced from the JS
...
This way, whatever behavior the browser might use for checkboxes
will apply to the CSS class, localStorage, and the visible state.
2025-01-23 10:18:21 -07:00
Eric Huss
0b51a74c16
Merge pull request #2531 from GuillaumeGomez/regression-test-2529
...
Add GUI regression test for #2529
2025-01-23 14:33:22 +00:00
Guillaume Gomez
ce63cc31f4
Add GUI regression test for #2529
2025-01-23 14:01:38 +01:00
Guillaume Gomez
d6720fc671
Update browser-ui-test version to 0.19.0
2025-01-23 13:58:35 +01:00
Waffle Lapkin
64cca1399b
nicer style rules for margin around footnote defs
...
previous implementation used `:not(.fd) + .fd` and `.fd + :not(.fd)`.
the latter selector caused many problems:
- it doesn't select footnote defs which are last children
(this can be easily triggered in a blockquote)
- it changes the margin of the next sibling, rather than the footnote def
itself, which can also *shrink* margin for elements with big margins
(this happens to headings)
- because it applies to the next sibling it is also quite hard to
override in user styles, since it may apply to any element
this commit replaces the latter selector with `:not(:has(+ .fd))`,
which fixes all of the mentioned problems.
2025-01-21 01:21:53 +01:00
Eric Huss
629c2ad2fd
Merge pull request #2529 from GuillaumeGomez/fix-sidebar-display
...
Fix display of sidebar when JS is disabled
2025-01-20 17:42:49 +00:00
Max Heller
d325e821cd
fix: make line hiding in Rust code blocks consistent with rustdoc
...
Requires a space following a `#` for a line to be hidden.
2025-01-20 11:43:39 -05:00
Guillaume Gomez
ac3a7faa54
Fix display of sidebar when JS is disabled
2025-01-20 17:29:07 +01:00
Eric Huss
35ed24cd18
Merge pull request #2523 from marcoieni/ubuntu-22
...
ci: move ubuntu-20 jobs to ubuntu-22
2025-01-15 14:37:44 +00:00
MarcoIeni
81d42f1c6e
ci: move ubuntu-20 jobs to ubuntu-22
2025-01-15 10:21:10 +01:00
Eric Huss
618a2fa78b
Merge pull request #2476 from GuillaumeGomez/gui-tests
...
Add base for GUI tests
2025-01-06 22:46:26 +00:00
Eric Huss
0bf6751eed
Merge pull request #2517 from notriddle/master
...
Ignore fragment when figuring out sidebar items
2025-01-02 20:25:15 +00:00
Michael Howell
f92eac4acd
Ignore fragment when figuring out sidebar items
2025-01-02 10:34:03 -07:00
Guillaume Gomez
69ef52fd13
Disable sandbox when running GUI tests
2024-12-19 20:01:25 +01:00