Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 651cf037 authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

build: reduce local build time to 5s

parent 8ca81a15
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y git
RUN pip install -r requirements.txt
RUN python scripts/translate_docs.py

RUN sed -i '/enabled: false/d' mkdocs.yml && mkdocs build --site-dir /tmp/public
RUN sed -i '/enabled: false/d' mkdocs.yml && BUILD_ONLY_LOCALE="" mkdocs build --site-dir /tmp/public

FROM nginx:1.29.4-alpine

+2 −0
Original line number Diff line number Diff line
@@ -390,6 +390,8 @@ plugins:
    assets: false
- i18n:
    docs_structure: folder
    # Default to English-only locally; override/unset BUILD_ONLY_LOCALE in Docker/CI to build all languages
    build_only_locale: !ENV [BUILD_ONLY_LOCALE, en]
    languages:
      - locale: en
        default: true