Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GitLab CI Templates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
GitLab CI Templates
Merge requests
!7
Skip i18n-specific things if website is not i18n
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Skip i18n-specific things if website is not i18n
skip-i18n
into
main
Overview
7
Commits
1
Pipelines
0
Changes
1
3 unresolved threads
Hide all comments
Merged
Jérôme Charaoui
requested to merge
skip-i18n
into
main
3 years ago
Overview
7
Commits
1
Pipelines
0
Changes
1
3 unresolved threads
Hide all comments
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
0daa3a92
1 commit,
3 years ago
1 file
+
15
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
lektor.yml
+
15
−
9
Options
@@ -37,18 +37,24 @@ pages:
stage
:
build
script
:
-
*apt-template
-
DEBIAN_FRONTEND=noninteractive apt-get install
gettext python3-babel
python3-pip git python3-inifile python3-dev python3-setuptools python3-openssl python3-cryptography python3-venv
i18nspector
apt-utils ca-certificates -y
-
DEBIAN_FRONTEND=noninteractive apt-get install python3-pip git python3-inifile python3-dev python3-setuptools python3-openssl python3-cryptography python3-venv apt-utils ca-certificates -y
-
python3 -m venv venv
-
source venv/bin/activate
-
pip3 install lektor
-
echo 'checking out translations'
-
rm -rf i18n
-
git clone --branch $TRANSLATION_BRANCH --depth=1 https://git.torproject.org/translation.git i18n
-
echo 'reinstall lektor plugins'
-
lektor project-info --output-path
-
lektor plugins reinstall
-
echo 'building lektor 3 more times to get translations in place'
-
lektor build --output-path public && lektor build --output-path public && lektor build --output-path public
-
>
if [ -n "${TRANSLATION_BRANCH}" ]; then
DEBIAN_FRONTEND=noninteractive apt-get install gettext python3-babel i18nspector
echo 'checking out translations'
rm -rf i18n
git clone --branch "${TRANSLATION_BRANCH}" --depth=1 https://git.torproject.org/translation.git i18n
echo 'reinstall lektor plugins'
lektor project-info --output-path
lektor plugins reinstall
echo 'building lektor 3 more times to get translations in place'
lektor build --output-path public && lektor build --output-path public && lektor build --output-path public
else
lektor build --output-path public
fi
artifacts
:
paths
:
-
public
Loading