Eric Huss
dd778d50f9
Add some basic help tests
2025-04-22 20:50:20 -07:00
Eric Huss
ac3e4b6c1e
Migrate book_toml_isnt_required to BookTest
2025-04-22 20:50:20 -07:00
Eric Huss
3706ddc5cc
Migrate book_with_a_reserved_filename_does_not_build to BookTest
2025-04-22 20:50:20 -07:00
Eric Huss
adcea9b3b9
Migrate create_missing_file_with_config to BookTest
2025-04-22 20:50:20 -07:00
Eric Huss
ba8107120c
Migrate failure_on_missing_file to BookTest
2025-04-22 20:50:20 -07:00
Eric Huss
b9e433710d
Migrate build_the_dummy_book to BookTest (build::basic_build)
...
This doesn't exercise *everything* that the old test did, but other
tests will take care of those gaps. This is intended as just a smoke
test.
2025-04-22 20:50:20 -07:00
Eric Huss
f10d23e893
Introduce the new BookTest-based testsuite
...
This is a new testsuite intended to replace the other tests, which
provides an easy facility to update tests, validate output, and more.
2025-04-22 20:50:16 -07:00
Eric Huss
566a42c4f7
Merge pull request #2674 from ehuss/fix-missing-docs
...
Clean up some missing docs
2025-04-21 02:50:43 +00:00
Eric Huss
6e143ce2a1
Add CI job to check API docs
...
This ensures that `cargo doc` does not generate any warnings.
2025-04-20 19:43:32 -07:00
Eric Huss
46963ebf65
Fix some missing docs
...
This removes the `allow(missing_docs)` and fixes any issues.
There's probably more work to be done to improve the API docs. This was
just a minor thing I wanted to clean up.
2025-04-20 19:42:45 -07:00
Eric Huss
c948fe4d6a
Merge pull request #2673 from ehuss/clippy
...
Add clippy in CI
2025-04-21 02:32:31 +00:00
Eric Huss
b0ef5a54cc
Fix clippy::redundant_slicing
2025-04-20 19:25:50 -07:00
Eric Huss
fbc875dd9f
Fix clippy::only-used-in-recursion
2025-04-20 19:25:50 -07:00
Eric Huss
e6b1413d22
Fix clippy::default_constructed_unit_structs
2025-04-20 19:25:50 -07:00
Eric Huss
1d3b99c0df
Fix unused import
...
This happens because it is only used in the test configuration.
2025-04-20 19:25:50 -07:00
Eric Huss
8181445d99
Add a restricted set of clippy lints, required to pass
...
This sets up CI to check clippy with a restricted set of clippy groups.
Some of the default groups have some excessive sets of lints that are
either wrong or style choices that I would prefer to not mess over at
this time. The lint groups can be adjusted later if it looks like
something that would be helpful.
2025-04-20 19:25:46 -07:00
Eric Huss
14aeb0cb83
Merge pull request #2633 from GuillaumeGomez/speed-up-loading
...
Speed up search index loading
2025-04-21 00:10:57 +00:00
Eric Huss
3e6b42cfba
Merge pull request #2568 from szabgab/remove-needless-late-init
...
[refactor] eliminate needless_late_init
2025-04-19 13:12:39 +00:00
Eric Huss
c57a8fcfc4
Merge pull request #2670 from ehuss/require-gui
...
Require all test jobs to pass
2025-04-17 16:54:42 +00:00
Eric Huss
9d6fcc9afe
Require all test jobs to pass
2025-04-17 09:46:17 -07:00
Eric Huss
ea8f0f6161
Merge pull request #2669 from ehuss/fix-searcher-eslint
...
Fix wrong quotes for eslint
2025-04-17 16:35:48 +00:00
Eric Huss
06e8f6f849
Fix wrong quotes for eslint
2025-04-17 09:24:45 -07:00
Eric Huss
36e5525ea5
Merge pull request #2668 from ehuss/dont-mark-svg
...
Ignore SVG text elements in search highlighting
2025-04-17 14:53:16 +00:00
Eric Huss
e5d5f5d02b
Ignore SVG text elements in search highlighting
2025-04-17 07:39:22 -07:00
Eric Huss
98088c91dd
Merge pull request #2659 from szabgab/fix-typo-in-template
...
fix typo in template
2025-04-16 20:46:35 +00:00
Eric Huss
a4f7d11e92
Merge pull request #2658 from szabgab/fix-typo
...
fix typo
2025-04-16 20:46:18 +00:00
Gabor Szabo
4c7e85ba82
fix typo
2025-04-10 08:48:51 +03:00
Gabor Szabo
9693c4af05
fix typo
2025-04-10 08:28:13 +03:00
Eric Huss
3052fe3827
Merge pull request #2644 from kg4zow/fonts-binary
...
Mark more font files as binary
2025-04-08 15:42:52 +00:00
Eric Huss
c85c3eb292
Merge pull request #2646 from szabgab/remove-multilingual
...
Remove the book.multilingual field
2025-04-08 15:41:55 +00:00
Eric Huss
0d734bbb03
Merge pull request #2650 from rust-lang/dependabot/cargo/tokio-1.43.1
...
Bump tokio from 1.43.0 to 1.43.1
2025-04-08 03:45:47 +00:00
dependabot[bot]
b9b34f97d9
Bump tokio from 1.43.0 to 1.43.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.43.0 to 1.43.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.43.0...tokio-1.43.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-version: 1.43.1
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-08 02:14:28 +00:00
Gabor Szabo
ee59e22603
Remove the book.multilingual field
...
As it is seems it has never been in real use.
See #2636
2025-04-06 13:27:13 +03:00
John Simpson
22a6dca69b
Mark more font files as binary
...
Not having these files marked as binary causes problems for older
versions of git (like 1.8.3.1 on CentOS/RHEL 7).
2025-04-05 20:41:36 -04:00
Eric Huss
4f698f813c
Merge pull request #2622 from szabgab/warn-on-invalid-configuration-field
...
warn on invalid fields in the root of book.toml
2025-04-03 18:23:26 +00:00
Eric Huss
97f1948681
Make the unexpected case explicit that it is an internal error
...
The current code has the `else` clause as unreachable, and the text it
has isn't clear that is the case.
2025-04-03 11:17:25 -07:00
Guillaume Gomez
7acc7a03a8
Update JSON loader in search tests
2025-04-02 21:03:12 +02:00
Guillaume Gomez
0ed1cbe486
Fix JS error
2025-04-02 21:03:12 +02:00
Guillaume Gomez
2c382a58d3
Greatly speed up search index load
2025-04-02 21:03:12 +02:00
Eric Huss
b7a27d2759
Merge pull request #2629 from ehuss/bump-version
...
Update to 0.4.48
2025-03-31 20:17:02 +00:00
Eric Huss
d67dbc74fd
Update to 0.4.48
2025-03-31 12:55:28 -07:00
Eric Huss
d9d27f38c3
Merge pull request #2625 from GuillaumeGomez/simplify-resources-location
...
Simplify resources location
2025-03-31 19:47:15 +00:00
Guillaume Gomez
4886c92fa4
Finish moving resources around
2025-03-31 21:18:22 +02:00
Guillaume Gomez
195d97a514
Move JS files into front-end/js
2025-03-31 21:18:22 +02:00
Guillaume Gomez
e954e872f0
Move css and font files into front-end
2025-03-31 21:18:22 +02:00
Guillaume Gomez
e74b4b0507
Move template files into front-end/templates folder
2025-03-31 21:18:22 +02:00
Eric Huss
4946c78e8c
Merge pull request #2576 from tmandry/default-auto-switch
...
Add "Auto" theme selection which switches between default light and dark theme automatically
2025-03-31 18:56:39 +00:00
Eric Huss
54d8d37b77
Fix eslint errors
...
This updates the ecmaVersion due to the ?? nullish coalescing operator.
2025-03-31 11:50:13 -07:00
Tyler Mandry
20eea0b41e
Add "Auto" option to theme menu
...
This switches between light and dark based on the OS, and provides a way
to remove a saved preference.
2025-03-31 11:37:06 -07:00
Tyler Mandry
8835bdc47e
Switch theme when preferred color scheme changes
2025-03-31 11:34:40 -07:00