Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions .github/workflows/deploy-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,20 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "v${{ env.VERSION }}"
release_name: "v${{ env.VERSION }}"
body: |
See the [changelog](CHANGELOG.md) for details.
draft: false
prerelease: false
tag: ${{ env.VERSION }}
run: |
gh release create "v$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="v$tag" \
--notes="See the [changelog](CHANGELOG.md) for details."

dispatch:
needs: deploy
strategy:
matrix:
repo: ['oscarlevin/pretext-docker', 'pretextbook/html-static']
repo: ['pretextbook/pretext-docker', 'pretextbook/html-static']
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ Instructions: Add a subsection under `[Unreleased]` for additions, fixes, change

## [Unreleased]

### Added

- Publisher controlled page breaks for PDF output

### Changes

- Simplified course template

## [2.34.0] - 2026-01-02

Includes updates to core through commit: [a7a0894](https://github.com/PreTeXtBook/pretext/commit/a7a089448b50916f7d114d9459185b049f96ccc8)
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pretext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
VERSION = get_version("pretext", Path(__file__).parent.parent)


CORE_COMMIT = "a7a089448b50916f7d114d9459185b049f96ccc8"
CORE_COMMIT = "d95a31b8ed95f8152b8fe66ddf8754f62ad65e24"


def activate() -> None:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ plastex = "^3"
jinja2 = "^3"
coloraide = "^4"
pelican = { extras = ["markdown"], version = "^4.10", optional = true }
prefig = { extras = ["text"], version = "^0.4.6", optional = true }
prefig = { extras = ["text"], version = "^0.5.0", optional = true }
citeproc-py = "^0"


Expand Down
8 changes: 5 additions & 3 deletions templates/course/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ The course template includes a single PreTeXt "book" that contains (as chapters)
You can build the course using

```bash
pretext build web
pretext build course
```

and view it with

```bash
pretext view web
pretext view course
```

Also included is the start of a slide deck. This is a single file in the `source/slides` folder. You could use this for all the slides in a course (as a single slideshow), or create separate slideshows. In that case, you might want to build those separate ones with something like,
Expand All @@ -24,6 +24,8 @@ Also included is the start of a slide deck. This is a single file in the `sourc
pretext build slides -i source/slides/chapter2.ptx
```

In either case, you will need to uncomment the "slide" targets inside `project.ptx`.

### Creating a landing page for multiple targets

Build the entire course with:
Expand All @@ -32,7 +34,7 @@ Build the entire course with:
pretext build --deploys
```

This will build both the course "book" and the slide deck. You can create a landing page with links to each of these automatically with the command,
This will build the course "book" (and the slide deck if you uncomment that target in `project.ptx`). You can create a landing page with links to each of these automatically with the command,

```bash
pretext deploy --stage-only
Expand Down
4 changes: 4 additions & 0 deletions templates/course/project.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@
<target name="print" source="main.ptx" format="pdf"
output-filename="course.pdf" publication="publication.ptx" />

<!--
<target name="slides" source="slides/slides.ptx" format="revealjs"
publication="publication-slides.ptx" deploy-dir="slides"
output-filename="index.html"/>
-->
<!--
<target name="slides-annotated" source="slides/slides.ptx" format="revealjs"
publication="publication-slides-annotated.ptx" deploy-dir="slides-annotated"
output-filename="index.html"/>
-->



Expand Down
2 changes: 2 additions & 0 deletions templates/course/source/slides/slides.ptx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This is a sample slide deck to get started with. If you want the slides to be built, -->
<!-- you must go to `project.ptx` and uncomment the slides targets (starting on line 12) -->

<pretext xmlns:xi="http://www.w3.org/2001/XInclude">
<!-- Include the docinfo common to the course, in the parent folder (..) -->
Expand Down
9 changes: 8 additions & 1 deletion templates/installPandoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
# This file was automatically generated with PreTeXt {VERSION}.
# If you modify this file, PreTeXt will no longer automatically update it.

wget https://github.com/jgm/pandoc/releases/download/3.8.3/pandoc-3.8.3-1-amd64.deb -O pandoc.deb
# Detect architecture and download appropriate Pandoc version
if uname -m | grep -q "aarch64\|arm64"; then
# ARM architecture
wget https://github.com/jgm/pandoc/releases/download/3.8.3/pandoc-3.8.3-1-arm64.deb -O pandoc.deb
else
# x86/amd64 architecture
wget https://github.com/jgm/pandoc/releases/download/3.8.3/pandoc-3.8.3-1-amd64.deb -O pandoc.deb
fi

# wait for 60 second and then double check that no other script is using apt-get:
sleep 60
Expand Down