diff --git a/.circleci/config.yml b/.circleci/config.yml index fb1cd90b2..81bfda402 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,6 +19,26 @@ jobs: name: lint command: make lint + build-docs: + working_directory: ~/repo + + docker: + - image: python:3.8-alpine + + steps: + - checkout + + - run: + name: Install prerequisites + command: pip install -r docs/requirements-doc.txt + + - run: + name: Build docs + command: python3 -m sphinx -M html docs docs/_build + + - store_artifacts: + path: /root/repo/docs/_build/ + build-core: <<: *defaults steps: @@ -234,6 +254,7 @@ workflows: build-and-deploy: jobs: - lint + - build-docs - build-core: filters: tags: @@ -290,6 +311,7 @@ workflows: - test-core-chrome - test-packages-chrome - test-emsdk + - build-docs filters: branches: ignore: /.*/ @@ -304,6 +326,7 @@ workflows: - test-core-chrome - test-packages-chrome - test-emsdk + - build-docs filters: branches: only: master