josh rotenberg
903469a45f
update pulldown-cmark to 0.8.0
2021-10-13 20:27:00 -07:00
Yashodhan Joshi
b8ef89db62
Add rust specific codeblock examples
2021-10-05 12:11:29 +05:30
Yashodhan Joshi
c283211a37
Add Languages examples for syntax highlighting
2021-10-05 12:02:33 +05:30
Yashodhan Joshi
d5af051d0e
Add individual tag examples in test_book
2021-10-04 16:17:52 +05:30
Yashodhan Joshi
68f9afe64b
Setup basic structure for test book
2021-10-04 13:14:49 +05:30
Eric Huss
ffa8284743
Merge pull request #1661 from ehuss/bump-version
...
Update to 0.4.13
2021-10-03 15:39:23 -07:00
Eric Huss
3e91f9cd5d
Update to 0.4.13
2021-10-03 15:15:21 -07:00
Eric Huss
f55028b61a
Merge pull request #1657 from lclc/gitlabPages
...
Documentation: CI: GitLab Pages Example
2021-10-03 14:51:08 -07:00
Eric Huss
0d887505af
Merge pull request #1607 from ISSOtm/preproc-order
...
Allow specifying preprocessor order
2021-10-03 14:22:15 -07:00
Eric Huss
6c20736a55
Merge pull request #1658 from pickfire/patch-1
...
Remove extra semicolon in variables.css
2021-10-03 12:24:11 -07:00
Ivan Tham
e4a46c9477
Remove extra semicolon in variables.css
2021-10-03 22:23:09 +08:00
Ivan Tham
6ae5c686d9
Remove extra semicolon in variables.css
2021-10-03 22:19:51 +08:00
Lucas Betschart
b862080006
Documentation: CI: GitLab Pages Example
...
Replace 'only' with 'rules'.
'only' is not actively developed anymore with GitLab (see https://docs.gitlab.com/ee/ci/yaml/#only--except )
2021-09-29 12:42:15 +02:00
ISSOtm
6b790b83ec
Warn when preproc order references unknown preprocs
2021-09-28 09:25:17 +02:00
ISSOtm
d8ad68c947
Produce an error if before
or after
field is not a table
2021-09-27 21:28:21 +02:00
ISSOtm
6b784be616
Stabilize ties in preproc order through name sort
2021-09-27 21:28:01 +02:00
Eric Huss
f5598b2eee
Merge pull request #1656 from johannst/switch-to-opener-crate
...
switch from open to opener
2021-09-26 12:33:23 -07:00
Johannes Stoelp
ff4b8e7a8d
switch from open to opener
...
By default, `opener` launches the subprocess without waiting for its
completion, compared to `open` which waits for its completion.
This is helpful in case the `watch` feature is enabled and one of the
following commands `watch | serve --open` is used. If this command would
open the browser, listening for changes would be blocked by the browser.
2021-09-26 12:33:09 -07:00
ISSOtm
9c34e602bd
Allow specifying preprocessor order
...
Fixes #1172
2021-09-26 20:55:02 +02:00
Eric Huss
a306da3ad7
Merge pull request #1604 from notriddle/notriddle/test-cli
...
Add CLI tests
2021-09-26 11:37:09 -07:00
Michael Howell
9bede85efa
Move cli tests to their own subdir
2021-09-26 11:29:36 -07:00
Michael Howell
11b1e86187
Fix path dumps under windows
2021-09-26 11:29:36 -07:00
Michael Howell
10d30a2dc0
Add CLI tests
...
Part of #1568
2021-09-26 11:29:35 -07:00
Eric Huss
601ebc5499
Merge pull request #1651 from notriddle/notriddle/theme-switcher-js
...
Only switch to themes on buttons that have the `theme` class
2021-09-16 17:32:01 -07:00
Ruin0x11
9d8147c52d
Remove extra localization.md
2021-09-15 21:49:58 -07:00
Ruin0x11
56e72a2238
[localization] rustfmt
2021-09-15 15:33:28 -07:00
Ruin0x11
92ec3ddc55
[localization] Fixes for latest master
2021-09-15 15:25:31 -07:00
Ruin0x11
d6c27abc22
Implement translation fallback of files included with preprocessing
2021-09-15 14:31:58 -07:00
Ruin0x11
5fed5e866d
Update mdBook manual to have information about translations
2021-09-15 14:29:30 -07:00
Ruin0x11
09a8b66e87
Improve robustness of link rewriting
2021-09-15 14:22:09 -07:00
Ruin0x11
8d1c0869b7
Fix {{#include}} directives for default language
2021-09-15 14:20:51 -07:00
Ruin0x11
98c3a04022
Move example book to multilingual structure
2021-09-15 14:19:30 -07:00
Ruin0x11
c72ce182d5
Rewrite links in Markdown to point to fallback if missing in translation
...
It will follow relative links to other pages and embedded images.
2021-09-15 14:14:47 -07:00
Ruin0x11
ee740aceff
Remove 'default' property on languages, use book.language instead
2021-09-15 14:13:48 -07:00
Ruin0x11
a042cfc72b
Make mdbook init
output multilingual structure
2021-09-15 14:12:11 -07:00
Ruin0x11
5e223e074e
Support localizing book title/description
2021-09-15 14:10:15 -07:00
Ruin0x11
e17ce64f2b
Fix test using create_missing
2021-09-15 14:10:15 -07:00
Ruin0x11
282fdaa3ac
Redirect to a 404 page when serving translated
...
We can't redirect in warp based on the URL, so redirect to the default
language's 404 page instead.
See: https://github.com/seanmonstar/warp/issues/171
2021-09-15 14:10:12 -07:00
Ruin0x11
85ab4d39cd
Redirect to translation index page in serve command
2021-09-15 14:08:01 -07:00
Ruin0x11
8869c2cf06
Build multiple books from localizations at once
...
Changes how the `book` module loads books. Now it is possible to load
all of the translations of a book and put them into a single output
folder. If a book is generated this way, a menu will be created in the
handlebars renderer for switching between languages.
2021-09-15 14:07:02 -07:00
Ruin0x11
96d9271d64
Specify language for book in command line args
...
- Add a [language] table to book.toml. Each key in the table defines a
new language with `name` and `default` properties.
- Changes the directory structure of localized books. If the [language]
table exists, mdBook will now assume the src/ directory contains
subdirectories named after the keys in [language]. The behavior is
backwards-compatible if you don't specify [language].
- Specify which language of book to build using the -l/--language
argument to `mdbook build` and similar, or omit to use the default
language.
- Specify the default language by setting the `default` property to
`true` in an entry in [language]. Exactly one language must have `default`
set to `true` if the [language] table is defined.
- Each language has its own SUMMARY.md. It can include links to files
not in other translations. If a link in SUMMARY.md refers to a
nonexistent file that is specified in the default language, the renderer
will gracefully degrade the link to the default language's page. If it
still doesn't exist, the config's `create_missing` option will be
respected instead.
2021-09-15 14:00:10 -07:00
Ruin0x11
3049d9f103
Actually, don't change source root
...
The book paths have to gracefully degrade to the default language if
they aren't available.
2021-09-15 13:56:01 -07:00
Ruin0x11
24e6d6b605
Change book source root depending on language
2021-09-15 13:55:59 -07:00
Ruin0x11
e4b443cd4a
Add language config section
...
Referencing https://github.com/rust-lang/mdBook/issues/5#issuecomment-323573492 .
2021-09-15 13:53:50 -07:00
Michael Howell
4251d7a838
Only switch to themes on buttons that have the theme
class
...
Fixes #1649
2021-09-14 10:05:35 -07:00
Eric Huss
93008cf20b
Merge pull request #1643 from apogeeoak/update-open
...
Update open crate to latest version.
2021-09-07 10:20:24 -07:00
apogeeoak
3f9f681b9e
Update open crate to latest version.
2021-09-06 15:52:43 -04:00
Eric Huss
63680d0786
Merge pull request #1480 from pauliyobo/preprocessor_docs
...
Improving documentation on implementation of preprocessors.
2021-09-05 18:46:09 -07:00
Eric Huss
656a1825cc
Minor fixes for preprocessor docs.
2021-09-05 18:45:37 -07:00
pauliyobo
1a2fa29209
introduced proposed suggestions related to the documentation
2021-09-04 23:44:27 +02:00