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
Eric Huss
73be1292ab
Merge pull request #1035 from andymac-2/line-numbers
...
Added line numbers to editable sections of code.
2019-09-26 10:53:32 -07:00
Flying-Toast
b0ae14a2c7
Automatically use a dark theme according to 'prefers-color-scheme'
2019-09-25 19:11:28 -04:00
Andrew Pritchard
81ab2eb7db
Added line numbers to editable sections of code.
...
- Added line numbers to config struct
- Added playpen_line_numbers field to hbs renderer.
- Added section to set `window.playpen_line_numbers = true` in page template
- Use line number global variable to show line numbers when required.
2019-09-24 21:27:02 +08:00
Tjeu Kayim
db13d8e561
Log HtmlConfig deserialization errors
2019-09-22 21:48:03 +02:00
Eric Huss
bb3398bdbb
Merge pull request #941 from rnitta/configurable-language
...
Change language attribute of the book to configurable
2019-06-24 08:56:22 -07:00
Jeremy Stucki
592140db5b
Remove redundant closure
2019-06-20 14:56:47 +02:00
Jeremy Stucki
3a0eeb4bbb
Remove needless scope
2019-06-20 14:29:14 +02:00
Jeremy Stucki
a9dae326fa
Use unwrap_or instead of match on Result
2019-06-20 14:27:57 +02:00
Jeremy Stucki
abba959add
Remove needless lifetime
2019-06-20 14:18:31 +02:00
Jeremy Stucki
ea15e55829
Use map instead of match on Option
2019-06-20 14:18:17 +02:00
Eric Huss
b226d2fc55
cargo fmt
2019-05-31 09:19:46 -07:00