From e9a11b07d89d55d5d27bb9a97f3c4d6d9839adf3 Mon Sep 17 00:00:00 2001 From: Shiven Date: Thu, 28 Aug 2025 13:33:57 +0530 Subject: [PATCH] fix(deploy): ensure translations are built --- CONTRIBUTING.md | 9 +++++++++ ci/build_website.sh | 11 +++++++++++ 2 files changed, 20 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 073627c56..86cc34d6d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -44,6 +44,15 @@ While content is the heart of the project, the quality of the content needs to r - Only then submit a PR referencing the approved issue. +### Translations + +We welcome contributions that improve translations of the DISCOVER Cookbook. + +- Please follow the [Translation Guide](https://discover-cookbook.numfocus.org/translation_guide.html) for detailed instructions. +- Ensure that translated content remains faithful to the original intent. +- If you’d like to suggest a new language, open a [discussion](https://github.com/numfocus/DISCOVER-Cookbook/discussions) first. + + ### Bug Fixes For technical issues with the book: diff --git a/ci/build_website.sh b/ci/build_website.sh index e72f1266b..e3f3ba7cf 100644 --- a/ci/build_website.sh +++ b/ci/build_website.sh @@ -16,3 +16,14 @@ rm -rf DISCOVER/_tags/* echo "Building $LANGUAGE version..." WEBSITE_VERSION="$VERSION" WEBSITE_LANGUAGE="$LANGUAGE" sphinx-build -b html DISCOVER/ DISCOVER/_build/html + + +# Install dependencies +pip install -r requirements.txt +pip install sphinx-intl + +# Build English site +sphinx-build -b html DISCOVER/ DISCOVER/_build/html -D language=en + +# Build Spanish site (translations live in locales/es/) +sphinx-build -b html DISCOVER/ DISCOVER/_build/html/es -D language=es \ No newline at end of file