Skip to content

Commit

Permalink
ci: install i18n-helpers and build IT translation
Browse files Browse the repository at this point in the history
Co-authored-by: Eldred Habert <[email protected]>
  • Loading branch information
avivace and ISSOtm committed Mar 4, 2023
1 parent 336653b commit 823293b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
with:
mdbook-version: latest

- name: Install i18n-helpers
working-directory: gb-asm-tutorial/
run: cargo install --path i18n-helpers --locked
shell: bash

# FIXME: Keep this up to date
- name: Install mdbook-linkcheck
run: | # `-L` because GitHub performs a redirection
Expand All @@ -43,6 +48,11 @@ jobs:
MDBOOK_OUTPUT__LINKCHECK__OPTIONAL: "false"
run: |
mdbook build
for f in po/*.po; do
lang="${f%.po}"
MDBOOK_BOOK__LANGUAGE="$lang" mdbook build -d book/"$lang"
mv book/"$lang"/custom book/custom/"$lang"
done
- name: Store final build
uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/book/
/target/
.DS_Store
po/messages.pot
/po/messages.pot
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ Different parts of gb-asm-tutorial are subject to different licenses:
- All the code contained within the tutorial itself is licensed under <a rel="license" href="http://creativecommons.org/publicdomain/zero/1.0/">CC0</a>. *To the extent possible under law, all copyright and related or neighboring rights to code presented within GB ASM Tutorial have been waived. This work is published from France.*
- The contents (prose, images, etc.) of this tutorial are licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
- Code used to display and format the site is licensed under the [MIT License](https://github.com/gbdev/gb-asm-tutorial/blob/master/LICENSE) unless otherwise specified.
- The code related to the i18n support is originally from Google's [Comprehensive Rust](https://github.com/google/comprehensive-rust) and it's released under the [Apache License 2.0](https://github.com/gbdev/gb-asm-tutorial/blob/master/i18n-helpers/LICENSE).
- The code related to the i18n support is originally from Google's [Comprehensive Rust](https://github.com/google/comprehensive-rust) and is released under the [Apache License 2.0](https://github.com/gbdev/gb-asm-tutorial/blob/master/i18n-helpers/LICENSE).

0 comments on commit 823293b

Please sign in to comment.