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
Eric Huss
bc23d08fa5
Rename playpen to playground. ( #1241 )
...
looks good
2020-06-22 16:34:25 +02:00
Manuel Woelker
d7df832cce
fix test and formatting
2020-06-10 15:33:09 +02:00
Manuel Woelker
406b325c54
fix usage of newly stablized inner_deref/as_deref
2020-06-10 13:09:18 +02:00
Manuel Woelker
06efa7a675
additional changes to the 404 mechanism based on feedback:
...
- removed config output_404
- ensure serve overrides the site url, and hosts the correct 404 file
- refactor 404 rendering into separate fn
- formatting
2020-06-10 12:46:23 +02:00
Manuel Woelker
bff36e7229
Add the config parameter output.html.site-url to set base url of the 404 page, making links and relative script/css loads behave correctly even in subdirectory paths
2020-06-10 12:46:23 +02:00
Manuel Woelker
cda28bb618
Generate 404.html page ( #539 )
2020-06-10 12:46:23 +02:00
Eric Huss
23f5ffd6d6
Change default preferred-dark-theme to `navy`.
2020-06-08 11:40:38 -07:00
Michael-F-Bryan
da55cf273f
Changed redirect mapping to HashMap<String, String> and improved error handling
2020-05-27 03:12:57 +08:00
Michael-F-Bryan
b2d50392ea
Emit redirects towards the end of the rendering process
2020-05-27 02:42:56 +08:00
Michael-F-Bryan
a5086a1e58
Added a redirect map to the HTML config
2020-05-27 02:38:04 +08:00
Eric Huss
6c4c3448e3
Update dependencies. ( #1211 )
...
* Removed the itertools dependency
* Removed an unused feature flag
* Stubbed out a toml_query replacement
* Update dependencies.
* Bump env_logger.
* Use warp instead of iron for http server.
Iron does not appear to be maintained anymore. warp/hyper seems to be
reasonably maintained. Unfortunately this takes a few seconds more
to compile, but shouldn't be too bad.
One benefit is that there is no longer a need for a separate websocket
port, which makes it easier to run multiple servers at once.
* Update pulldown-cmark to 0.7
* Switch from error-chain to anyhow.
* Bump MSRV to 1.39.
* Update elasticlunr-rs.
Co-authored-by: Michael Bryan <michaelfbryan@gmail.com>
2020-05-20 23:32:00 +02:00
Aphek
122c988477
Rename config from no-copy-fonts to copy-fonts
2020-05-19 03:09:25 -03:00
Aphek
2c26c65f4d
Remove google fonts by serving them locally
...
Co-authored-by: Aral Balkan <aral@ind.ie>
Co-authored-by: Collyn O'Kane <47607823+okaneco@users.noreply.github.com>
2020-05-15 02:48:28 -03:00
Eric Huss
8ee950e3de
Merge pull request #1214 from ehuss/fix-clippy
...
Fix some clippy warnings.
2020-05-10 08:39:19 -07:00
Eric Huss
c44ef1b2f0
Fix some clippy warnings.
2020-05-10 08:29:50 -07:00
toyboot4e
282e55122e
Update src/config.rs
...
Co-authored-by: Eric Huss <eric@huss.org>
2020-05-08 19:56:41 +09:00
toyboot4e
2f59dbf1ef
Fix example of MDBOOK_BOOK (again)
2020-05-03 18:58:41 +09:00
toyboot4e
3a63276727
Not to use `matches!`
2020-05-03 18:16:44 +09:00
toyboot4e
4c64f23089
Fix example of MDBOOK_BOOK
2020-05-03 17:54:35 +09:00
toyboot4e
683d2b2240
Fix use of MDBOOK_BOOK
2020-05-03 17:54:17 +09:00
Eric Huss
28ce8f5ac0
Some edition cleanup and fixes.
2020-04-21 12:26:48 -07:00
kngwyu
255756cfee
Make new [rust] config and move edition config under it
2020-04-21 10:24:47 -07:00
Gabriel Majeri
d39d4517aa
Add support for Rust edition
2020-04-21 10:24:47 -07:00
nickelc
49b7f08164
Fix doc comment of `BuildConfig::create_missing` ( #1104 )
2019-11-29 06:22:21 +01:00
Dylan DPC
1f505c2b2e
Revert "Add support for Rust edition 2018 in playpens ( #1086 )" ( #1093 )
...
This reverts commit a7b3aa0444
.
2019-11-11 13:24:13 +01:00
Gabriel Majeri
a7b3aa0444
Add support for Rust edition 2018 in playpens ( #1086 )
...
* Add support for Rust edition 2018 in playpens
* Add Rust edition support to rustdoc
* Run rustfmt
* Fix enum variant reference
2019-11-11 12:42:24 +01:00
Steve Klabnik
f79d5d4582
rust-lang-nursery -> rust-lang
...
Fixes #1080
2019-10-29 08:04:16 -05:00
Weihang Lo
6af6219e5b
[Feature] expandable sidebar sections (ToC collapse) ( #1027 )
...
* render(toc): render expandable toc toggle
* ui(toc): js/css logic to toggle toc
* test: update rendered output css selector
* config: add `html.fold.[enable|level]`
* renderer: fold according to configs
* doc: add `output.html.fold`
* refactor: tidy fold config
- Derive default for `Fold`.
- Use `is_empty` instead of checking the length of chapters.
2019-10-19 09:56:08 +02:00
Andrew Pritchard
e5f74b6c86
Option to display copy buttons. ( #1050 )
...
* Option to display copy buttons.
- Added field to playpen data structure
- Communicate through window.playpen_copyable
- Javascript updated to check before displaying copy buttons.
* html -> html_config
Also:
- update description of copyable in source code.
- update description of line_numbers (my last PR to this repository)
2019-10-17 12:44:54 +02:00
Eric Huss
0173451b67
Fix error message for missing output.html. ( #1056 )
2019-10-06 00:33:50 +02:00
Eric Huss
93c9ae5700
Merge pull request #1037 from Flying-Toast/prefers-color-scheme
...
Automatically use a dark theme according to 'prefers-color-scheme'
2019-10-05 11:33:52 -07:00
Flying-Toast
9bdec5e7cc
preferred-dark-theme defaults to default-theme
2019-10-04 19:32:03 -04:00
rnitta
5fe801a7d1
fix Search::use_boolean_and documents
2019-10-03 11:35:42 +09:00