Skip to content

Commit ef13c83

Browse files
committed
docs: build hosted exports from source
1 parent e58064c commit ef13c83

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ jobs:
117117

118118
steps:
119119
- uses: actions/checkout@v3
120+
with:
121+
submodules: recursive
120122

121123
- uses: actions/setup-node@v4
122124
with:
@@ -129,20 +131,25 @@ jobs:
129131
with:
130132
python-version: "3.12"
131133
cache: "pip"
132-
cache-dependency-path: docs/requirements.txt
134+
cache-dependency-path: |
135+
docs/requirements.txt
136+
requirements.txt
133137
134138
- name: Build widget bundle
135139
working-directory: solid_node/viewers/widget
136140
run: |
137141
npm ci
138142
npm run build
139143
140-
- name: Install docs requirements
141-
run: pip install -r docs/requirements.txt .
144+
- name: Install runtime and docs requirements
145+
run: pip install -r requirements.txt -r docs/requirements.txt
142146

143147
- name: Generate V8 example export
144148
working-directory: docs/examples/v8-engine
145-
run: solid export root -o docs/_exports/v8-engine --fps 30 --frames 360
149+
run: >-
150+
PYTHONPATH="$GITHUB_WORKSPACE" python -c
151+
"from solid_node.cli import manage; manage()"
152+
export root -o docs/_exports/v8-engine --fps 30 --frames 360
146153
147154
- name: Build docs (fail on warnings)
148155
run: python -m sphinx -b html -W docs docs/_build

.readthedocs.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build:
1212
pre_build:
1313
- npm ci --prefix solid_node/viewers/widget
1414
- npm run build --prefix solid_node/viewers/widget
15-
- cd docs/examples/v8-engine && solid export root -o docs/_exports/v8-engine --fps 30 --frames 360
15+
- cd docs/examples/v8-engine && PYTHONPATH="$READTHEDOCS_REPOSITORY_PATH" python -c "from solid_node.cli import manage; manage()" export root -o docs/_exports/v8-engine --fps 30 --frames 360
1616

1717
submodules:
1818
include: all
@@ -21,8 +21,7 @@ submodules:
2121
python:
2222
install:
2323
- requirements: docs/requirements.txt
24-
- method: pip
25-
path: .
24+
- requirements: requirements.txt
2625

2726
sphinx:
2827
configuration: docs/conf.py

0 commit comments

Comments
 (0)