Skip to content

Commit 9af2830

Browse files
committed
update pretext
1 parent 9eb5263 commit 9af2830

3 files changed

Lines changed: 17 additions & 4 deletions

File tree

.devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"name": "PreTeXt-Codespaces",
1616

1717
// This Docker image includes some LaTeX support, but is still not to large. Note that if you keep your codespace running, it will use up your GitHub free storage quota. Additional options are listed below.
18-
"image": "oscarlevin/pretext:small",
18+
// "image": "oscarlevin/pretext:small",
1919
// If you need to generate more complicated assets (such as sageplots) or use additional fonts when building to PDF, comment out the above line and uncomment the following line.
20-
// "image": "oscarlevin/pretext:full",
20+
"image": "oscarlevin/pretext:full",
2121
// If you only intend to build for web and don't have any latex-image generated assets, you can use a smaller image:
2222
// "image": "oscarlevin/pretext:lite",
2323

.github/workflows/pretext-cli.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,21 @@ jobs:
2424
- name: install deps
2525
run: pip install -r requirements.txt
2626

27+
- name: install local ptx files
28+
run: pretext --version
29+
2730
- name: build deploy targets
28-
run: pretext build --deploys
31+
run: |
32+
version="$(pretext --version)"
33+
major="$(echo $version | cut -d '.' -f 1)"
34+
minor="$(echo $version | cut -d '.' -f 2)"
35+
if [ "$major" -ge 2 -a "$minor" -ge 5 ]; then
36+
echo "PreTeXt version is 2.5 or greater; using new build command"
37+
pretext build --deploys
38+
else
39+
echo "PreTeXt version is less than 2.5, using old build command"
40+
pretext build
41+
fi
2942
- name: stage deployment
3043
run: pretext deploy --stage-only
3144

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# <!-- Managed automatically by PreTeXt authoring tools -->
2-
pretext == 2.6.0
2+
pretext == 2.10.1

0 commit comments

Comments
 (0)