-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to localize books in multiple languages #1306
base: master
Are you sure you want to change the base?
Commits on Sep 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e4b443c - Browse repository at this point
Copy the full SHA e4b443cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24e6d6b - Browse repository at this point
Copy the full SHA 24e6d6bView commit details -
Actually, don't change source root
The book paths have to gracefully degrade to the default language if they aren't available.
Configuration menu - View commit details
-
Copy full SHA for 3049d9f - Browse repository at this point
Copy the full SHA 3049d9fView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 96d9271 - Browse repository at this point
Copy the full SHA 96d9271View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 8869c2c - Browse repository at this point
Copy the full SHA 8869c2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85ab4d3 - Browse repository at this point
Copy the full SHA 85ab4d3View commit details -
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: seanmonstar/warp#171
Configuration menu - View commit details
-
Copy full SHA for 282fdaa - Browse repository at this point
Copy the full SHA 282fdaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for e17ce64 - Browse repository at this point
Copy the full SHA e17ce64View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e223e0 - Browse repository at this point
Copy the full SHA 5e223e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a042cfc - Browse repository at this point
Copy the full SHA a042cfcView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee740ac - Browse repository at this point
Copy the full SHA ee740acView commit details -
Rewrite links in Markdown to point to fallback if missing in translation
It will follow relative links to other pages and embedded images.
Configuration menu - View commit details
-
Copy full SHA for c72ce18 - Browse repository at this point
Copy the full SHA c72ce18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98c3a04 - Browse repository at this point
Copy the full SHA 98c3a04View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d1c086 - Browse repository at this point
Copy the full SHA 8d1c086View commit details -
Configuration menu - View commit details
-
Copy full SHA for 09a8b66 - Browse repository at this point
Copy the full SHA 09a8b66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5fed5e8 - Browse repository at this point
Copy the full SHA 5fed5e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6c27ab - Browse repository at this point
Copy the full SHA d6c27abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 92ec3dd - Browse repository at this point
Copy the full SHA 92ec3ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 56e72a2 - Browse repository at this point
Copy the full SHA 56e72a2View commit details
Commits on Sep 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 9d8147c - Browse repository at this point
Copy the full SHA 9d8147cView commit details
Commits on Feb 25, 2022
-
Merge remote-tracking branch 'upstream/master' into localization
# Conflicts: # .gitignore # guide/src/en/cli/completions.md # guide/src/en/format/images/rust-logo-blk.svg # guide/src/en/format/markdown.md # guide/src/en/misc/introduction.md # src/renderer/html_handlebars/hbs_renderer.rs # src/utils/mod.rs
Configuration menu - View commit details
-
Copy full SHA for 7305e8c - Browse repository at this point
Copy the full SHA 7305e8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e74fdb1 - Browse repository at this point
Copy the full SHA e74fdb1View commit details