From e2051218067dc4036aedc7c9728226e373f5f26a Mon Sep 17 00:00:00 2001 From: Dexter Chua Date: Thu, 31 Dec 2020 20:18:13 +0800 Subject: [PATCH] Build docs in CI (#983) --- .circleci/config.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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