@@ -2,22 +2,14 @@ version: 2.1
2
2
jobs :
3
3
build_docs :
4
4
docker :
5
- - image : cimg/python:3.12-node
5
+ - image : cimg/python:3.12
6
6
steps :
7
7
# checkout code to default ~/project
8
8
- checkout
9
- - run :
10
- name : install dependencies
11
- command : |
12
- python -m venv env
13
- source env/bin/activate
14
- python -m pip install --upgrade pip
15
- pip install -r requirements.txt
16
9
- run :
17
10
name : generate docs
18
11
command : |
19
- source env/bin/activate
20
- mkdocs build --clean --strict --verbose
12
+ uv run mkdocs build --clean --strict --verbose
21
13
- persist_to_workspace :
22
14
# the mkdocs build outputs are in ~/project/site
23
15
root : ~/project
@@ -31,26 +23,16 @@ jobs:
31
23
docker :
32
24
- image : cimg/python:3.12
33
25
steps :
34
- # checkout code to default ~/project
35
26
- checkout
36
27
- attach_workspace :
37
- # mkdocs build outputs will be in ~/project/site
38
28
at : ~/project
39
- - run :
40
- name : install linkchecker
41
- command : |
42
- python -m venv env
43
- source env/bin/activate
44
- python -m pip install --upgrade pip
45
- python -m pip install linkchecker
46
29
- run :
47
30
name : check links
48
31
command : |
49
- source env/bin/activate
50
32
git status
51
33
if (! git log -1 --pretty=oneline | grep REL:) ; then
52
34
chmod a+rX -R ~
53
- linkchecker -t 1 ~/project/site/
35
+ uvx linkchecker -t 1 ~/project/site/
54
36
# check external separately by pointing to all *html so no
55
37
# failures for local file:/// -- yoh found no better way,
56
38
linkchecker -t 1 --check-extern \
@@ -75,20 +57,17 @@ jobs:
75
57
# checkout code to default ~/project
76
58
- checkout
77
59
- run :
78
- name : install dependencies
60
+ name : install uv
79
61
command : |
80
- apt-get update && apt install -y python3-pip python3-venv pandoc
81
- python3 -m venv .venv
82
- source .venv/bin/activate
83
- python3 -m pip install --upgrade pip
84
- python3 -m pip install -r ~/project/requirements.txt
85
- python3 -m pip install ~/project/tools/schemacode/[render]
62
+ curl -LsSf https://astral.sh/uv/install.sh | XDG_BIN_HOME=/usr/local/bin sh
86
63
- run :
87
- name : install font that works with unicode emojis
88
- command : apt-get update && apt-get install -y fonts-symbola
64
+ name : install dependencies
65
+ command : |
66
+ apt-get update && apt install -y fonts-symbola pandoc
89
67
- run :
90
68
name : generate pdf version docs
91
69
command : |
70
+ uv sync
92
71
source .venv/bin/activate
93
72
cd ~/project/pdf_build_src
94
73
bash build_pdf.sh
0 commit comments