2024-05-23 09:42:14 +00:00
|
|
|
# SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2023-07-14 17:15:30 +00:00
|
|
|
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/
|
2023-02-14 09:39:04 +00:00
|
|
|
|
|
|
|
pages:
|
2023-07-14 17:15:30 +00:00
|
|
|
stage: deploy
|
|
|
|
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
|
2023-02-14 09:45:22 +00:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
GIT_SUBMODULE_PATHS: support/documentation/themes/hugo-theme-learn
|
2023-02-14 09:39:04 +00:00
|
|
|
script:
|
2023-02-14 09:48:51 +00:00
|
|
|
# gitlab need the generated documentation to be in the /public dir.
|
2023-02-14 09:52:06 +00:00
|
|
|
- hugo -s support/documentation/ -d ../../public/ --baseURL='https://livingston.frama.io/peertube-plugin-livechat/'
|
2023-07-14 17:15:30 +00:00
|
|
|
dependencies:
|
|
|
|
- builddoctranslations
|
2023-02-14 09:39:04 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
2023-03-07 13:14:19 +00:00
|
|
|
- documentation
|