diff --git a/.circleci/config.yml b/.circleci/config.yml index 3b36cc4802..31f9b3e3cf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -61,9 +61,9 @@ commands: cd js npm ci npm run build - + - when: - condition: + condition: not: equal: - <> @@ -382,18 +382,20 @@ jobs: - run: name: make doc command: | + sudo apt-get update + sudo apt-get install rename cd doc source .venv/bin/activate # For the API doc, we need to use the local version of plotly # since we are tweaking the source because of # graph_objs/graph_objects + uv pip uninstall plotly + cd .. + uv pip install -e . + cd doc + cd apidoc + make html if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then - uv pip uninstall plotly - cd .. - uv pip install -e . - cd doc - cd apidoc - make html cd _build/html touch .nojekyll git init @@ -406,10 +408,16 @@ jobs: rm -rf .git cd ../.. fi + tar -czf api_docs_html.tgz _build/html - store_artifacts: path: doc/build destination: doc/build + + - store_artifacts: + path: doc/apidoc/api_docs_html.tgz + destination: doc/apidoc/api_docs_html.tgz + workflows: code_formatting: jobs: