3162 Commits

Author SHA1 Message Date
Eric Huss
1e04de75e1 Merge pull request #3084 from tonywu6/master
Fix: Remove `?highlight=` from URL when highlights are dismissed via clicking
2026-05-13 14:15:33 +00:00
tonywu6
b4e674877f Update crates/mdbook-html/front-end/searcher/searcher.js
Co-authored-by: Eric Huss <eric@huss.org>
2026-05-06 22:56:25 +08:00
Eric Huss
9190b5d093 Merge pull request #3087 from ehuss/limit-global-keypress
Fix global keypresses triggering when other elements are in focus
2026-05-04 19:03:57 +00:00
Eric Huss
4fb647c760 Fix global keypress handling with shadow DOM elements
This fixes an issue where global keypresses were being caught when they
shouldn't when there is a shadow DOM element with focus. This can happen
if the user has included their own extensions. Arguably the extension
should do a stopPropagation, but they don't always do that. I think this
is relatively safe way to approach this.

Fixes https://github.com/rust-lang/mdBook/issues/2507
2026-05-04 11:51:32 -07:00
Eric Huss
c5c31bb9f5 Fix global keypress handler with the ACE editor
This fixes an issue where pressing `?` inside the ACE editor was opening
the help popup. The solution here is to ensure that the global keypress
handler works the same as the one used in the search handler.

Fortunately other keypresses like left and right were working OK because
ACE was doing something like stopPropagation (I'm not sure exactly).

Fixes https://github.com/rust-lang/mdBook/issues/3064
2026-05-04 11:48:41 -07:00
Tony Wu
3a16879dda Fix: Remove ?highlight= from URL when highlights are dismissed via clicking (#1841) 2026-05-01 10:55:51 +08:00
Eric Huss
9ea86e740b Merge pull request #3083 from rust-lang/update-dependencies
Update cargo dependencies
2026-05-01 01:43:16 +00:00
Eric Huss
ae1a4310e7 Merge pull request #3082 from rust-lang/renovate/actions-setup-node-6.x
Update actions/setup-node action to v6.4.0
2026-05-01 01:42:54 +00:00
github-actions[bot]
d2f954cb51 Update cargo dependencies
```
name          old req compatible latest new req
====          ======= ========== ====== =======
clap_complete 4.6.2   4.6.3      4.6.3  4.6.3
```
2026-05-01 00:59:54 +00:00
renovate[bot]
8412c5a87c Update actions/setup-node action to v6.4.0 2026-05-01 00:28:51 +00:00
Eric Huss
4adc4b08ba Add a test for global keypress with ACE editor focused
This is a regression test for
https://github.com/rust-lang/mdBook/issues/3064.
2026-04-27 15:32:09 -07:00
Eric Huss
22f3035df0 Add a test for global keypress with shadow-dom elements
This is a regression test for
https://github.com/rust-lang/mdBook/issues/2507.
2026-04-27 15:31:04 -07:00
Eric Huss
973a240f97 Merge pull request #3077 from rust-lang/update-dependencies
Update cargo dependencies
2026-04-23 16:57:31 +00:00
github-actions[bot]
1cf231e42f Update cargo dependencies
```
name               old req compatible latest new req
====               ======= ========== ====== =======
axum               0.8.8   0.8.9      0.8.9  0.8.9
clap               4.5.60  4.6.1      4.6.1  4.6.1
clap_complete      4.5.66  4.6.2      4.6.2  4.6.2
indexmap           2.13.0  2.14.0     2.14.0 2.14.0
pulldown-cmark     0.13.1  0.13.3     0.13.3 0.13.3
semver             1.0.27  1.0.28     1.0.28 1.0.28
snapbox            1.0.0   1.2.1      1.2.1  1.2.1
tempfile           3.26.0  3.27.0     3.27.0 3.27.0
tokio              1.49.0  1.52.1     1.52.1 1.52.1
toml               1.0.3   1.1.2      1.1.2  1.1.2
tracing-subscriber 0.3.22  0.3.23     0.3.23 0.3.23
```
2026-04-23 16:51:51 +00:00
Eric Huss
c62ee45268 Merge pull request #3063 from Turbo87/pin-github-actions
CI: Pin GitHub Actions to commit SHAs
2026-04-23 16:31:03 +00:00
Eric Huss
5949ac09ab Merge pull request #3073 from tuyen-at-work/patch-3
Fix download URL format for mdBook in CI guide
2026-04-23 16:01:52 +00:00
Eric Huss
c5529d1cb1 Merge pull request #3058 from rust-lang/renovate/sha2-0.x
chore(deps): update rust crate sha2 to 0.11.0
2026-04-23 16:00:49 +00:00
Tuyen Pham
cc6932e325 Fix download URL format for mdBook in CI guide 2026-04-23 08:56:14 -07:00
renovate[bot]
4c0aa34d1e chore(deps): update rust crate sha2 to 0.11.0 2026-04-23 08:53:06 -07:00
Eric Huss
0e4a54836f Merge pull request #3075 from GuillaumeGomez/update-gui-test
Update `browser-ui-test` version to `0.23.5`
2026-04-23 15:05:54 +00:00
Guillaume Gomez
43de45d134 Update browser-ui-test version to 0.23.4 2026-04-23 14:46:31 +02:00
Eric Huss
df53063fea Merge pull request #3057 from rust-lang/renovate/html5ever-0.x
chore(deps): update rust crate html5ever to 0.39.0
2026-04-21 02:33:02 +00:00
renovate[bot]
a4db4a833d chore(deps): update rust crate html5ever to 0.39.0 2026-04-20 19:26:02 -07:00
Eric Huss
da012e5589 Merge pull request #3070 from Rohan5commit/docs/fix-in-between-comment-20260413
Fix typo in searcher.js comment
2026-04-21 02:15:53 +00:00
Codex
ed5830144c docs: fix typo in searcher comment 2026-04-20 19:10:36 -07:00
Eric Huss
2bad8058fc Merge pull request #3074 from ehuss/fix-flaky-gui
Fix flaky gui tests
2026-04-21 01:56:02 +00:00
Eric Huss
dc2fbde515 Harden move-between-pages and sidebar-scroll tests
These tests have been randomly failing on CI. I'm not entirely certain
why there is a race for these conditions. I'm not sure how
browser-ui-test waits when the document reloads on navigation.

There's also some javascript triggers that happen after the page loads,
and I don't remember if that runs before DOMContentLoaded.
2026-04-20 17:16:16 -07:00
Eric Huss
c4efaffc1d Try to make heading-nav-collapsed test more reliable
This test seems to be a little flaky. This tries to make it more
reliable by using `wait-for-` commands instead of `assert-`. My guess is
that clicking on an element doesn't necessarily wait for all the
javascript code to finish and the DOM to be done updating.
2026-04-20 17:07:56 -07:00
Tobias Bieniek
2ab29ef789 CI: Pin GitHub Actions to commit SHAs
This pins all third-party actions to immutable commit SHAs, with the
resolved version tag in a trailing comment. This prevents upstream
tags from silently changing under us.

- actions/checkout → v6.0.2 (bumped from v5 to reduce `artipacked`
  severity: v6 no longer stores credentials in `.git/config`)
- actions/setup-node → v6.3.0
- rust-lang/crates-io-auth-action → v1.0.4

See https://docs.zizmor.sh/audits/#unpinned-uses
2026-04-10 14:35:42 +02:00
Eric Huss
05fbc5d3d0 Merge pull request #3052 from jhult/fix/gui-sidebar-scroll-failure
fix(gui): use class selectors for sidebar-scrollbox in GUI tests
2026-03-23 22:00:22 +00:00
Jonathan Hult
edf704aa4d fix(gui): use class selectors for sidebar-scrollbox in GUI tests
Fixes CI failure in sidebar-scroll.goml where mdbook-sidebar-scrollbox custom element not found (timing issue in headless Linux Chrome). The class is always present in generated HTML (<mdbook-sidebar-scrollbox class="sidebar-scrollbox">).
2026-03-16 14:17:54 -05:00
Eric Huss
30e0e1d102 Merge pull request #3048 from rust-lang/renovate/cargo-semver-checks-0.x
chore(deps): update cargo-semver-checks to v0.47.0
2026-03-09 15:34:21 +00:00
renovate[bot]
04e3e2a2fa chore(deps): update cargo-semver-checks to v0.47.0 2026-03-08 16:46:53 +00:00
Eric Huss
891e203410 Merge pull request #3042 from rust-lang/update-dependencies
Update cargo dependencies
2026-03-01 22:53:51 +00:00
Eric Huss
05badb1e2d Update cargo dependencies
```
name           old req compatible latest  new req
====           ======= ========== ======  =======
anyhow         1.0.100 1.0.102    1.0.102 1.0.102
clap           4.5.56  4.5.60     4.5.60  4.5.60
clap_complete  4.5.65  4.5.66     4.5.66  4.5.66
futures-util   0.3.31  0.3.32     0.3.32  0.3.32
memchr         2.7.6   2.8.0      2.8.0   2.8.0
pulldown-cmark 0.13.0  0.13.1     0.13.1  0.13.1
regex          1.12.2  1.12.3     1.12.3  1.12.3
tempfile       3.24.0  3.26.0     3.26.0  3.26.0
toml           1.0.0   1.0.3      1.0.3   1.0.3
```
2026-03-01 14:46:03 -08:00
Eric Huss
31e5c1e6d5 Merge pull request #3045 from rust-lang/renovate/toml-1.x
chore(deps): update rust crate toml to v1
2026-03-01 22:13:27 +00:00
Eric Huss
db74eec5b2 Merge pull request #3043 from rust-lang/renovate/eslint-10.x
chore(deps): update dependency eslint to v10
2026-03-01 21:41:11 +00:00
Eric Huss
59ec865810 Merge pull request #3044 from rust-lang/renovate/snapbox-1.x
chore(deps): update rust crate snapbox to v1
2026-03-01 21:39:41 +00:00
renovate[bot]
f0d9591bb9 chore(deps): update rust crate toml to v1 2026-03-01 00:46:18 +00:00
renovate[bot]
1b61b0b941 chore(deps): update rust crate snapbox to v1 2026-03-01 00:46:11 +00:00
renovate[bot]
44a3420551 chore(deps): update dependency eslint to v10 2026-03-01 00:45:13 +00:00
Eric Huss
33f76c0a30 Merge pull request #3037 from cobyfrombrooklyn-bot/fix-issue-3023
Fix #3023: Improve error message for invalid Font Awesome icons
2026-02-27 14:13:02 +00:00
cobyfrombrooklyn-bot
d171e698fa Improve error message for invalid Font Awesome icons
When an invalid Font Awesome icon name is used (e.g. in git-repository-icon),
the error message now includes the icon name, the type that was searched,
valid prefix options (fas/fab/far), and a link to the FontAwesome icon gallery.

Before: Missing font github
After:  Unknown Font Awesome icon `github` for type `regular`. Hint: check
        the icon name and prefix (fas (solid), fab (brands), or far (regular))
        at https://fontawesome.com/v6/search?m=free

Fixes #3023
2026-02-24 08:58:05 -05:00
Eric Huss
424d6a4dbd Merge pull request #3036 from ehuss/remove-unused
Remove unused dependencies
2026-02-23 15:26:18 +00:00
Eric Huss
b2e952dd4c Remove unused dependencies
These dependencies of the top-level `mdbook` package are not directly
used. They are used transitively, so this makes little difference, but
helps to convey what is actually needed.
2026-02-23 07:20:41 -08:00
Eric Huss
0e6c5d0b8a Merge pull request #3035 from cobyfrombrooklyn-bot/fix-issue-3032
Fix #3032: Nested admonitions use wrong header colors
2026-02-23 15:07:34 +00:00
cobyfrombrooklyn-bot
6d0ba2ac14 Fix nested admonitions using wrong header color
Use child combinator (>) instead of descendant selector for
blockquote-tag-title color rules. Without this, a nested admonition
inherits the title color of its parent admonition instead of using
its own type's color.

Added nested admonition test case (important > note) to the existing
admonition test suite.

Fixes #3032
2026-02-22 20:44:05 -05:00
Eric Huss
b8c90970a6 Merge pull request #3022 from rust-lang/dependabot/cargo/bytes-1.11.1
Bump bytes from 1.11.0 to 1.11.1
2026-02-04 00:30:53 +00:00
dependabot[bot]
4d9ff03cbd Bump bytes from 1.11.0 to 1.11.1
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.11.0...v1.11.1)

---
updated-dependencies:
- dependency-name: bytes
  dependency-version: 1.11.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-03 19:44:25 +00:00
Eric Huss
ec2b103e78 Merge pull request #3017 from rust-lang/renovate/ego-tree-0.x
chore(deps): update rust crate ego-tree to 0.11.0
2026-02-01 03:00:13 +00:00