Skip to content

Update build-doc.yml #4

Update build-doc.yml

Update build-doc.yml #4

Workflow file for this run

name: Build Documentation
on:
push:
branches:
- migrate-to-gh-actions
pull_request:
branches:
- migrate-to-gh-actions
jobs:
build-doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.9"
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install rename
- name: Install doc dependencies
run: |
cd doc
uv venv
uv pip install -r requirements.txt
- name: Install plotly in editable mode
if: github.ref_name != 'doc-prod'
run: |
cd doc
uv pip install -e ..
- name: List installed packages
run: |
cd doc
uv pip list
- name: Build HTML docs
env:
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
run: |
cd doc
echo "${MAPBOX_TOKEN}" > python/.mapbox_token
uv run make -kj8 || uv run make -kj8
curl https://raw.githubusercontent.com/plotly/graphing-library-docs/master/front-matter-ci.py > front-matter-ci.py
curl https://raw.githubusercontent.com/plotly/graphing-library-docs/master/check-or-enforce-order.py > check-or-enforce-order.py
uv run python front-matter-ci.py build/html
uv run python check-or-enforce-order.py build/html
- name: Upload docs artifact
uses: actions/upload-artifact@v4
with:
name: doc-build
path: doc/build/