-
Notifications
You must be signed in to change notification settings - Fork 4k
53 lines (48 loc) · 1.56 KB
/
Copy pathdocs.yml
File metadata and controls
53 lines (48 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: docs
on:
push:
branches: [master]
# allow the workflow to publish to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive # aima-data is needed: learning.py builds DataSets at import time
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install documentation dependencies
run: pip install -r docs/requirements.txt
- name: Build the Sphinx documentation
# -W --keep-going: fail the build if any page can't be imported/rendered,
# so an incomplete API reference can never be published silently again
run: sphinx-build -b html -W --keep-going docs docs/_build/html
- name: Build the JupyterLite browser companion (issue #1072)
# Published alongside the API docs at /lite/. Kept non-fatal so a Pyodide
# toolchain hiccup can never block the reference-docs deploy.
continue-on-error: true
run: |
pip install -r lite/requirements-lite.txt
bash lite/build.sh "$PWD/docs/_build/html/lite"
- uses: actions/upload-pages-artifact@v3
with:
path: docs/_build/html
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4