Eric Huss
3c10b00096
Skip serializing of the multilingual field
...
This skips serializing of the multilingual field since it is unused, and
we plan to remove it in the future. This helps avoid it showing up in
`mdbook init`.
2025-05-05 14:05:00 -07:00
Eric Huss
c9ddb4dd98
Revert: Remove the book.multilingual field
...
This reverts https://github.com/rust-lang/mdBook/pull/2646/ because I
overlooked that this is a public field in a public struct, which would
be a breaking API change.
2025-05-05 14:01:49 -07: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
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
Gabor Szabo
1bc2ebd775
warn on invalid fields in root of book.toml
2025-03-28 10:56:41 +03: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
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
Hamir Mahal
1fd9656291
style: simplify string formatting for readability
2024-09-21 15:53:59 -07:00
Eric Huss
1e4d4887e1
Add support for Rust Edition 2024
2024-06-12 15:53:56 -07:00
Eric Huss
5bc87d5c17
Apply a few minor clippy fixes
2024-05-13 12:13:50 -07:00
goodmost
aff1070f43
chore: remove repetitive word
...
Signed-off-by: goodmost <zhaohaiyang@outlook.com>
2024-03-19 22:22:16 +08:00
Max Heller
95b6ed7965
Fix typo in docs
2024-03-18 18:38:55 -04:00
Eric Huss
d28cf53009
Rename curly-quotes to smart-punctuation.
2024-02-25 13:42:44 -08:00
Eric Huss
0cc439eee3
Fix redundant imports.
2024-02-24 12:04:57 -08:00
Eric Huss
869fe2f50d
Remove text_drection_from_lang_code
...
The test above should cover this sufficiently.
2023-09-02 16:42:53 -07:00
Eric Huss
db877b1c9b
Update language list to include missing rtl languages.
2023-09-02 16:42:14 -07:00
Eric Huss
4749f9d97a
Some minor corrections from code review.
2023-09-02 16:41:59 -07:00
cN3rd
819a108f07
Add text_direction property in general book metadata
...
Text direction can selected in the config via the `text_direction` attribute in `book.toml`,
or be derived from the book's language.
2023-09-02 07:49:28 -07:00
Jannik Obermann
7df1d8c838
Support hidden lines in languages other than Rust
...
Co-Authored-By: thecodewarrior <5467669+thecodewarrior@users.noreply.github.com>
2023-05-28 14:04:54 -07:00
Eric Huss
54df8234ed
Apply clippy::let_unit_value
2023-05-13 09:45:46 -07:00
Andreas Deininger
a2c88ae0f1
Convert links from http to https protocol
2023-04-02 21:35:08 +02:00
Eric Huss
8a02fc755f
Fix broken doc link
2022-11-28 09:53:47 -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
fb0cbc90e3
Add support for watching additional directories
2022-10-28 11:47: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
ISSOtm
248863addf
Fix Clippy lints
...
Also remove `allow(clippy::*)`s where possible
2022-06-27 23:08:45 +02:00
Eric Huss
78bcda02cb
Fix html print config default.
2022-03-30 07:58:27 -07:00
Eric Huss
46345b8e49
Fix comment typo
2022-03-27 16:39:12 -07:00
Eric Huss
566451e9a7
Merge pull request #1771 from FWYongxing/master
...
livereload uses host, port and HTTP(S) protocol of current page
2022-03-27 16:33:32 -07:00
Shogo Takata
0dca4d9b9f
add tests
2022-03-26 15:34:07 +09:00
Shogo Takata
b85c3035fe
Config to toggle the run button on codeblocks
2022-03-26 14:50:47 +09:00
Clark
6899d94027
livereload uses host&port of current page; livereload works with a HTTPS site
2022-03-19 04:38:16 +08:00
Daniel Morawetz
7b1241d0f2
Revert "Make page-break not configurable"
...
This reverts commit 0eb23efd44 .
2022-01-17 18:03:52 +01:00
josh rotenberg
b87c231fc3
first pass at 2021 support
2021-07-04 14:44:23 -07:00
josh rotenberg
05edc4421b
clippy: PathBuf to Path
2021-05-31 20:27:52 -07:00
Eric Huss
3c2b8cd10f
Merge pull request #1539 from joshrotenberg/report_config_errors
...
Report book.toml parse error when invalid fields are found
2021-05-24 13:25:07 -07:00
josh rotenberg
6b0b42ebcc
update build and rust config change
2021-05-24 12:01:56 -07:00
josh rotenberg
7a3513200f
Update src/config.rs
...
Co-authored-by: Eric Huss <eric@huss.org>
2021-05-24 11:59:32 -07:00
Andrea Gelmini
b364e8ea2c
Fix typos ( #1540 )
...
Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2021-05-21 12:56:32 +02:00
josh rotenberg
78325aaccb
report book.toml parse errors
...
check config for book parse errors
add invalid_title_type
handle build and rust config errors
2021-05-19 09:32:24 -07:00
Flavio Castelli
7525b35383
Rename git-repository-edit-url-template
...
Change the name of the git-repository-edit-url-template to be more
generic: `edit-url-template`
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2021-04-26 09:59:08 +02:00
Flavio Castelli
7aff98a859
Fix generation of edit links
...
The `IndexPreprocessor` rewrites the path for files
named `README.md` to be `index.md`. This breaks the edit link
in some circumstances.
To address this issues, the `Chapter` struct has now a new attribute
called `source_path`. This is initialized with the same value as
`path`, but is never ever changed.
Finally, the edit link is built by using the `source_path` rather
than the `path`.
2021-04-19 18:58:15 +02:00
Jonas Berlin
bbf54d7459
[ReviewFix] Replace edit baseurl with template and make visibility independent of git_repository_url.
2021-04-19 16:16:08 +02:00
Jonas Berlin
b3670ece0e
Add "Suggest an edit" link next to "Git repository"
...
Includes new configuration option `git-repository-edit-baseurl` for
supporting non-GitHub repository layouts.
2021-04-19 14:51:14 +02:00
pierwill
e9b0be7090
Add intra-docs links to docs
...
Also fixes some punctuation and changes some wording.
2021-01-10 14:51:30 -08:00
Sergey Golovin
7c0ddff96a
allow to serialize the "build" section
2020-11-12 19:32:32 +03:00
Ross MacArthur
e0b247e9d6
Add config option to disable print html, css, and icon
2020-09-22 11:40:02 -07:00
David Tolnay
1acf23ff73
Support emitting CNAME file for publishing at a custom domain
2020-09-02 11:24:48 -07:00
Eric Huss
9268884b17
Merge pull request #1221 from manuel-woelker/fb-539-not-found-page
...
Generate 404.html page (#539 )
2020-06-23 10:48:08 -07:00
Eric Huss
9a97f0a096
Fix init creating empty [rust] table. ( #1233 )
2020-06-22 16:36:37 +02:00