6
6
build-docs :
7
7
working_directory : ~/repo
8
8
docker :
9
- - image : cimg/python:3.10
9
+ - image : cimg/python:3.10-node
10
10
11
11
steps :
12
12
- checkout
17
17
python3 -m venv venv
18
18
source venv/bin/activate
19
19
pip install --upgrade pip wheel setuptools
20
- pip install -r site/requirements.txt -r requirements.txt
20
+ pip install -r requirements.txt
21
21
22
22
- restore_cache :
23
23
keys :
@@ -30,52 +30,58 @@ jobs:
30
30
# NOTE: blas multithreading behaves badly on circleci
31
31
export OMP_NUM_THREADS=1
32
32
source venv/bin/activate
33
- # n = nitpicky (broken links), W = warnings as errors,
34
- # T = full tracebacks, keep-going = run to completion even with errors
35
- make -C site/ SPHINXOPTS="-nWT --keep-going" html
33
+ # Construct the BASE_URL using the CIRCLE_WORKFLOW_JOB_ID
34
+ export BASE_URL="/output/job/${CIRCLE_WORKFLOW_JOB_ID}/artifacts/0/_build/html"
35
+
36
+ # Output the BASE_URL for debugging purposes
37
+ echo "BASE_URL is set to $BASE_URL"
38
+
39
+ # Run your myst build command
40
+ myst build --html --execute
36
41
37
42
- save_cache :
38
43
key : cache-data
39
44
paths :
40
45
- _data
41
46
42
47
- store_artifacts :
43
- path : site/ _build/html
48
+ path : _build/html
44
49
45
50
- persist_to_workspace :
46
- root : site/ _build
51
+ root : _build
47
52
paths : html
48
53
49
54
deploy-docs :
50
55
working_directory : ~/repo
51
56
docker :
52
- - image : cimg/python:3.10
57
+ - image : cimg/python:3.10-node
53
58
steps :
54
59
- checkout
55
60
56
61
- attach_workspace :
57
- at : site/ _build
62
+ at : _build
58
63
59
64
- run :
60
65
name : install deploy deps
61
66
command : |
62
67
python3 -m pip install --user ghp-import
63
68
64
- - run :
65
- name : configure git
66
- command : |
67
- git config --global user.name "ci-doc-deploy-bot"
68
- git config --global user.email "ci-doc-deploy-bot@nomail"
69
- git config --global push.default simple
70
-
71
- - add_ssh_keys :
72
- fingerprints :
73
- 5c:54:62:37:75:7f:4d:14:f4:07:82:1c:50:0d:ee:9b
74
-
75
- - run :
76
- name : deploy to gh-pages
77
- command : |
78
- ghp-import -n -f -p -m "[skip ci] docs build of $CIRCLE_SHA1" site/_build/html
69
+ # TODO!
70
+ # - run:
71
+ # name: configure git
72
+ # command: |
73
+ # git config --global user.name "ci-doc-deploy-bot"
74
+ # git config --global user.email "ci-doc-deploy-bot@nomail"
75
+ # git config --global push.default simple
76
+ #
77
+ # - add_ssh_keys:
78
+ # fingerprints:
79
+ # 5c:54:62:37:75:7f:4d:14:f4:07:82:1c:50:0d:ee:9b
80
+ #
81
+ # - run:
82
+ # name: deploy to gh-pages
83
+ # command: |
84
+ # ghp-import -n -f -p -m "[skip ci] docs build of $CIRCLE_SHA1" site/_build/html
79
85
80
86
81
87
workflows :
0 commit comments