Skip to content
Merged

Dev #73

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: docs

on:
pull_request:
branches: ["dev", "v1"]
push:
branches: ["v1"]

jobs:
build-docs:
name: Build docs
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install doc dependencies
run: |
pip install ".[docs]"

- name: Build documentation
run: |
make doc
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ gen-example-from-base:
cp -r docs/examples/en/* docs/en/examples/
cp -r docs/examples/zh/* docs/zh-CN/examples/

# Note the first line relies on jupyterbook==0.11.3
doc: rm-doc gen-doc-config gen-example-from-base
jupyter-book build docs/en/
jupyter-book build docs/zh-CN/
Expand Down
1 change: 1 addition & 0 deletions docs/en/.readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ build:
os: ubuntu-22.04
tools:
python: "3.10"
nodejs: "22"
jobs:
pre_build:
# Generate on-the-fly Sphinx configuration from Jupyter Book's _config.yml
Expand Down
5 changes: 3 additions & 2 deletions docs/requirements-doc.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
jupyter-book
jupyter-book<2
conflux-web3
cfx-utils>=1.0.1
mmg==2.0.0
sphinx-autodoc-typehints
# sphinx-design
# sphinx-design
1 change: 1 addition & 0 deletions docs/zh-CN/.readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ build:
os: ubuntu-22.04
tools:
python: "3.10"
nodejs: "22"
jobs:
pre_build:
# Generate on-the-fly Sphinx configuration from Jupyter Book's _config.yml
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# "py-solc>=0.4.0",
# "pytest>=6.2.5,<7",
# "sphinx>=4.2.0,<5",
"jupyter-book",
"jupyter-book<2",
"mmg==2.0.0",
"sphinx-autodoc-typehints",
# "sphinx_rtd_theme>=0.1.9",
Expand Down
Loading