Documentation translation (#199)
Documentation translation using weblate. * Use po4a to generate .po files from the english markdowns, then to generate translated files * Some pages can be marked as «english only» (for technical documentation for example) * New Hugo shortcode to use application strings in documentation (for example for settings names) * The code of conduct is no more translated, but there is a link to official Contributor Covenant translations * Adding all plugin's supported languages Related to https://github.com/JohnXLivingston/peertube-plugin-livechat/issues/117
This commit is contained in:
@ -1,12 +1,29 @@
|
||||
image: monachus/hugo
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
builddoctranslations:
|
||||
stage: build
|
||||
image: debian:stable
|
||||
script:
|
||||
- apt update && apt install po4a -y
|
||||
- bash ./doc-translate.sh
|
||||
artifacts:
|
||||
paths:
|
||||
- support/documentation/i18n/
|
||||
- support/documentation/content/translations/
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
GIT_SUBMODULE_PATHS: support/documentation/themes/hugo-theme-learn
|
||||
script:
|
||||
# gitlab need the generated documentation to be in the /public dir.
|
||||
- hugo -s support/documentation/ -d ../../public/ --baseURL='https://livingston.frama.io/peertube-plugin-livechat/'
|
||||
dependencies:
|
||||
- builddoctranslations
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
|
Reference in New Issue
Block a user