--- variables: SITE_URL: spec.torproject.org MMDC: mmdc -p bin/ci-puppeteer-config.json # ^ re MMDC: # https://github.com/mermaid-js/mermaid-cli/blob/HEAD/docs/linux-sandbox-issue.md # # bin/ is the wrong place for that file # but I don't want to rename all of bin/ to maint/ right now. build: image: rust:bookworm script: - apt-get update && apt-get install -y git python3 python3-yaml - ./bin/via-cargo-install-in-ci mdbook - ./bin/mermaid-cli-in-ci - ./bin/check_index - ./bin/build_html - mv html public artifacts: paths: - public cache: paths: - cache link-check: image: rust:bookworm script: - apt-get update && apt-get install -y git python3 python3-yaml linklint - ./bin/via-cargo-install-in-ci mdbook - ./bin/build_html - ./bin/check_links artifacts: paths: - html.link-check cache: paths: - cache include: project: tpo/tpa/ci-templates file: - static-shim-deploy.yml - pages-deploy.yml # use pages for merge requests, not main (which is the default in the # above template). the logic here is that we want people that do not # have acess to the repository to still have a preview of their merge # request. pages: rules: - if: '$CI_PROJECT_ROOT_NAMESPACE != "tpo" && $CI_PIPELINE_SOURCE == "merge_request"'