Skip to content
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

Localization / language-switching support (mdbook-spacewizards build) #65

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ jobs:
run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update
- name: Install mdbook & plugins
- name: Install mdbook-spacewizards
uses: jaxxstorm/[email protected]
with: # Grab a specific tag with caching
repo: space-wizards/mdBook-spacewizards
tag: v0.4.35
cache: enable
- name: Install plugins
uses: taiki-e/[email protected]
with:
tool: mdbook@0.4.34,mdbook[email protected],[email protected],[email protected],[email protected],[email protected]
tool: [email protected],[email protected],[email protected],[email protected],[email protected]
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ jobs:
run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update
- name: Install mdbook & plugins
- name: Install mdbook-spacewizards
uses: jaxxstorm/[email protected]
with: # Grab a specific tag with caching
repo: space-wizards/mdBook-spacewizards
tag: v0.4.35
cache: enable
- name: Install plugins
uses: taiki-e/[email protected]
with:
tool: mdbook@0.4.34,mdbook[email protected],[email protected],[email protected],[email protected],[email protected]
tool: [email protected],[email protected],[email protected],[email protected],[email protected]
- name: Build with mdBook
run: mdbook build
- name: Upload artifact
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ The following `mdbook` features & plugins are available and in use:
- `mdbook-admonish`
- `mdbook-emojicodes`

This repo uses a custom version of `mdbook` available [here](https://github.com/space-wizards/mdBook-spacewizards).

The site is currently hosted at [https://docs.spacestation14.com](https://docs.spacestation14.com).

**For information such as how to edit, build & test these docs, see [Guide to Editing Docs](https://spacestation14.io/docs/en/meta/guide-to-editing-docs.html). on the site itself** (or [in this repo](./src/en/meta/guide-to-editing-docs.md))
Expand Down
18 changes: 11 additions & 7 deletions book.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
[book]
authors = ["Space Wizards Contributors"]
language = "en"
multilingual = false
src = "src"
title = "Space Wizards Development Wiki"
description = "Tutorial & reference for all Space Wizards Federation projects, including the Robust Toolbox engine and its flagship open source game, Space Station 14."

[language.en]
name = "English"

[language.ru]
name = "Русский"

[preprocessor.mermaid]

[preprocessor.admonish]
assets_version = "2.0.2" # do not edit: managed by `mdbook-admonish install`

[preprocessor.emojicodes]

[preprocessor.template]
before = ["mermaid","admonish","emojicodes"] # templates can include these so we run this first
#[preprocessor.template]
#before = ["mermaid","admonish","emojicodes"] # templates can include these so we run this first

[output.html]
additional-js = ['scripts/mermaid.min.js', 'scripts/mermaid-init.js', 'scripts/nav-additions.js']
Expand All @@ -39,9 +43,9 @@ level = 1
[output.html.playground]
runnable = false # sorry we arent rustpilled :(

[output.linkcheck]
traverse-parent-directories = false
warning-policy = "ignore" # false-positives like hell with absolute links & latex, so.. cant do
#[output.linkcheck]
#traverse-parent-directories = false
#warning-policy = "ignore" # false-positives like hell with absolute links & latex, so.. cant do

# Redirects
# These are used to map between old Wiki.js links and current docs site links,
Expand Down
169 changes: 0 additions & 169 deletions src/SUMMARY.md

This file was deleted.

Loading