Skip to content

Commit 1d5f6a9

Browse files
authored
Add coloraide dependency (#947)
* add coloraide to dependencies * simplify sage name in executables constants
1 parent 3ec47a2 commit 1d5f6a9

11 files changed

Lines changed: 304 additions & 173 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Instructions: Add a subsection under `[Unreleased]` for additions, fixes, change
99

1010
## [Unreleased]
1111

12+
### Added
13+
14+
- Portable html builds now embed SVGs directly into the html (so you no longer need to upload them separately).
15+
- Coloraide package added as a dependency (for building custom themes).
16+
1217
## [2.15.0] - 2025-03-15
1318

1419
Includes updates to core through commit: [bd0998c](https://github.com/PreTeXtBook/pretext/commit/bd0998c5663b25a9d2272ebc0e97bea80b66dc05)

poetry.lock

Lines changed: 282 additions & 164 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pretext/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
VERSION = get_version("pretext", Path(__file__).parent.parent)
2020

21-
CORE_COMMIT = "bd0998c5663b25a9d2272ebc0e97bea80b66dc05"
21+
CORE_COMMIT = "7017d8fcc7005984ffc7fad81d0a37062a529a9d"
2222

2323

2424
def activate() -> None:

pretext/project/xml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class Executables(pxml.BaseXmlModel, tag="executables"):
1616
pdfsvg: t.Optional[str] = pxml.attr(default="pdf2svg")
1717
# If not specified, use a local executable if it exists; if it doesn't exist, choose `None`, which allows the generation logic to use the server instead.
1818
asy: t.Optional[str] = pxml.attr(default=shutil.which("asy"))
19-
# The same applies to Sage.
20-
sage: t.Optional[str] = pxml.attr(default=shutil.which("sage"))
19+
# No sage server, so we don't do the same for sage.
20+
sage: t.Optional[str] = pxml.attr(default="sage")
2121
mermaid: str = pxml.attr(default="mmdc")
2222
pdfpng: t.Optional[str] = pxml.attr(default="convert")
2323
pdfeps: str = pxml.attr(default="pdftops")

pretext/resources/resource_hash_table.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,12 @@
6868
".gitignore": "0e69b1765da2f482d737d7732b9b94b441fe29d4e88d110c6d59225ca4855f41",
6969
".devcontainer.json": "670d3dc8d5bf1e825b93215961c64960defce193a4d8dcd266cb3dd8aa4c4a3f",
7070
"pretext-cli.yml": "f57f6ecd335bfbedf6d76e401aa48d0b9716e0f0aede050804600dcc11369cba"
71+
},
72+
"2.15.1": {
73+
"project.ptx": "cf0cc772c3c0827bc586217ea71f3b6557660bc399d4be3f902bce6f746123b3",
74+
"codechat_config.yaml": "73b46fafa848fee0e0b0aca32917bbe04804f56b4ab3e0c3b44e553110fbddd5",
75+
".gitignore": "8de226e98eacec4eb6d6897b35dc1304e4d758374566ed5759dc445542ad7bab",
76+
".devcontainer.json": "da0f949a050103fb7d7c97bd165573081c162bc82c6e868f545c26120692daef",
77+
"pretext-cli.yml": "b8292fab364f1e9576d7f3f2fff9ed8f3891cecae182f568a9e7a091639b6078"
7178
}
7279
}

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ GitPython = "^3"
3333
click = "^8"
3434
pdfCropMargins = "~1.0.9"
3535
PyPDF2 = "~2.5"
36-
pyMuPDF = "^1.23"
36+
pyMuPDF = "^1.24"
3737
click-log = "^0.4"
3838
ghp-import = "^2"
3939
single-version = "^1"
@@ -43,6 +43,7 @@ qrcode = "^7"
4343
psutil = "^7"
4444
plastex = "^3"
4545
jinja2 = "^3"
46+
coloraide = "^4"
4647
pelican = { extras = ["markdown"], version = "^4.10", optional = true }
4748
prefig = { extras = ["pycairo"], version = "^0.2.10", optional = true }
4849

templates/.devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was automatically generated with PreTeXt 2.14.1.
1+
// This file was automatically generated with PreTeXt 2.15.1.
22
// If you modify this file, PreTeXt will no longer automatically update it.
33
//
44
//////////////////////////////////////////////////////////////

templates/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was automatically generated with PreTeXt 2.14.1.
1+
# This file was automatically generated with PreTeXt 2.15.1.
22
# If you modify this file, PreTeXt will no longer automatically update it.
33
#
44
# Boilerplate list of files in a PreTeXt project for git to ignore

templates/codechat_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was automatically generated with PreTeXt 2.14.1.
1+
# This file was automatically generated with PreTeXt 2.15.1.
22
# If you modify this file, PreTeXt will no longer automatically update it.
33
#
44
#############################################################

templates/pretext-cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was automatically generated with PreTeXt 2.14.1.
1+
# This file was automatically generated with PreTeXt 2.15.1.
22
# If you modify this file, PreTeXt will no longer automatically update it.
33
#
44
name: PreTeXt-CLI Actions

0 commit comments

Comments
 (0)