Skip to content

Commit

Permalink
update to latest Generated `/home/runner/work/pretext-cli/pretext-cli…
Browse files Browse the repository at this point in the history
…/codechat_config.yaml`

Generated `/home/runner/work/pretext-cli/pretext-cli/.gitignore`

Generated `/home/runner/work/pretext-cli/pretext-cli/.devcontainer.json`

Generated `/home/runner/work/pretext-cli/pretext-cli/requirements.txt`

Generated `/home/runner/work/pretext-cli/pretext-cli/.github/workflows/pretext-cli.yml`

PreTeXt-CLI version: 2.7.1

PreTeXt project found in `/home/runner/work/pretext-cli/pretext-cli`.
�[31merror: �[0mA project already exists in `/home/runner/work/pretext-cli/pretext-cli`.
�[31merror: �[0mNo new project will be generated.

----------------------------------------------------
While running pretext, the following errors occurred:

(see log messages above or in the 'logs' folder for more information)
----------------------------------------------------
  • Loading branch information
oscarlevin committed Oct 3, 2024
1 parent 3559ef0 commit 23e6567
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"name": "PreTeXt-Codespaces",

// 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.
"image": "oscarlevin/pretext:small",
// "image": "oscarlevin/pretext:small",
// 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.
// "image": "oscarlevin/pretext:full",
"image": "oscarlevin/pretext:full",
// If you only intend to build for web and don't have any latex-image generated assets, you can use a smaller image:
// "image": "oscarlevin/pretext:lite",

Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/pretext-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,21 @@ jobs:
- name: install deps
run: pip install -r requirements.txt

- name: install local ptx files
run: pretext --version

- name: build deploy targets
run: pretext build --deploys
run: |
version="$(pretext --version)"
major="$(echo $version | cut -d '.' -f 1)"
minor="$(echo $version | cut -d '.' -f 2)"
if [ "$major" -ge 2 -a "$minor" -ge 5 ]; then
echo "PreTeXt version is 2.5 or greater; using new build command"
pretext build --deploys
else
echo "PreTeXt version is less than 2.5, using old build command"
pretext build
fi
- name: stage deployment
run: pretext deploy --stage-only

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# <!-- Managed automatically by PreTeXt authoring tools -->
pretext == 2.6.2
pretext == 2.7.1

0 comments on commit 23e6567

Please sign in to comment.