File tree Expand file tree Collapse file tree 2 files changed +45
-23
lines changed Expand file tree Collapse file tree 2 files changed +45
-23
lines changed Original file line number Diff line number Diff line change 1
1
version : 2.1
2
2
3
- jobs :
4
3
4
+ jobs :
5
5
build-docs :
6
6
docker :
7
- - image : cimg/python:3.12
8
-
7
+ - image : cimg/python:3.13
9
8
steps :
10
- - attach_workspace :
11
- at : ~/
12
-
13
9
- checkout
14
10
15
- - run :
16
- name : Install CI dependencies
17
- command : python -m pip install --upgrade tox
11
+ - restore_cache :
12
+ keys :
13
+ - node-cache-v1
18
14
19
15
- restore_cache :
20
16
keys :
21
- - jupyter_ch
17
+ - pip-cache-{{ checksum "site-requirements.txt" }}
18
+
19
+ - run :
20
+ name : Install Node.js
21
+ command : |
22
+ curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
23
+ sudo apt-get install -y nodejs
22
24
23
25
- run :
24
- name : Build HTML rendering of notebooks
25
- no_output_timeout : 30m
26
+ name : Install mystmd
26
27
command : |
27
- python -m tox -e py312-buildhtml
28
+ npm install mystmd
29
+
30
+ - run :
31
+ name : Install Python dependencies
32
+ command : |
33
+ python -m pip install --upgrade pip
34
+ if [ -f site-requirements.txt ]; then pip install -r site-requirements.txt; fi
35
+
36
+ - save_cache :
37
+ key : node-cache-v1
38
+ paths :
39
+ - node_modules
28
40
29
41
- save_cache :
30
- key : jupyter_ch
42
+ key : pip-cache-{{ checksum "site-requirements.txt" }}
31
43
paths :
32
- - _build/.jupyter_cache
44
+ - ~/.cache/pip
45
+
46
+ - run :
47
+ name : Build documentation
48
+ environment :
49
+ # Ensure this is same as store_artifacts path below
50
+ DOCS_PATH : _build/html
51
+ command : |
52
+ export BASE_URL="/output/job/$CIRCLE_WORKFLOW_JOB_ID/artifacts/0/$DOCS_PATH"
53
+
54
+ (npx myst build --html)
55
+
56
+ ## Temporary hack to remove unused thebe JS
57
+ rm _build/html/*thebe*.js
33
58
34
59
- store_artifacts :
35
60
path : _build/html
36
61
37
- - persist_to_workspace :
38
- root : _build
39
- paths :
40
- - html
41
-
42
62
workflows :
43
63
version : 2
44
- default :
64
+ build-and-docs :
45
65
jobs :
46
66
- build-docs
Original file line number Diff line number Diff line change 1
- name : Run CircleCI asrtifacts redirector for rendered HTML
1
+ name : Run CircleCI artifacts redirector for rendered HTML
2
2
on : [status]
3
3
jobs :
4
4
circleci_artifacts_redirector_job :
5
5
runs-on : ubuntu-latest
6
6
name : Run CircleCI artifacts redirector
7
7
steps :
8
8
- name : GitHub Action step
9
- uses : scientific-python/circleci-artifacts-redirector-action@7eafdb60666f57706a5525a2f5eb76224dc8779b # v1.1 .0
9
+ uses : scientific-python/circleci-artifacts-redirector-action@6b0ee99678fb003bba8202536e861f74ab6ff364 # v1.2 .0
10
10
with :
11
11
repo-token : ${{ secrets.GITHUB_TOKEN }}
12
12
api-token : ${{ secrets.IRSA_TUTORIALS_CIRCLE_TOKEN }}
13
13
artifact-path : 0/_build/html/index.html
14
14
circleci-jobs : build-docs
15
+ domain : circle.scientific-python.dev
16
+ job-title : " --> Rendering Preview <--"
You can’t perform that action at this time.
0 commit comments