File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -55,25 +55,22 @@ jobs:
55
55
- name : Build all translations
56
56
run : |
57
57
for po_lang in ${{ env.LANGUAGES }}; do
58
- POT_CREATION_DATE=$(grep --max-count 1 '^"POT-Creation-Date:' po/$po_lang.po | sed -E 's/".*: (.*)\\n"/\1/')
59
- if [[ $POT_CREATION_DATE == "" ]]; then
60
- POT_CREATION_DATE=now
61
- fi
62
-
63
- echo "::group::Building $po_lang translation as of $POT_CREATION_DATE"
64
- rm -r src/
65
- git restore --source "$(git rev-list -n 1 --before "$POT_CREATION_DATE" @)" src/
66
-
58
+ echo "::group::Building $po_lang translation"
67
59
# Set language and adjust site URL. Clear the redirects
68
60
# since they are in sync with the source files, not the
69
61
# translation.
70
62
MDBOOK_BOOK__LANGUAGE=$po_lang \
71
- MDBOOK_OUTPUT__HTML__SITE_URL=/rust-by-example/$po_lang/ \
72
- MDBOOK_OUTPUT__HTML__REDIRECT='{}' \
73
63
mdbook build -d book/$po_lang
74
64
echo "::endgroup::"
75
65
done
76
66
67
+ - name : Check all translations for broken links
68
+ run : |
69
+ for po_lang in ${{ env.LANGUAGES }}; do
70
+ MDBOOK_BOOK__LANGUAGE=$po_lang \
71
+ sh linkcheck.sh --all rust-by-example
72
+ done
73
+
77
74
- name : Upload Artifact
78
75
uses : actions/upload-artifact@v3
79
76
with :
You can’t perform that action at this time.
0 commit comments