Skip to content

DM-55518: Add technote_typst project template#348

Open
timj wants to merge 5 commits into
mainfrom
tickets/DM-55518
Open

DM-55518: Add technote_typst project template#348
timj wants to merge 5 commits into
mainfrom
tickets/DM-55518

Conversation

@timj

@timj timj commented Jul 18, 2026

Copy link
Copy Markdown
Member

A proof-of-concept template for Typst technotes that follows the Markdown technote workflow: metadata and authors live in technote.toml (managed by documenteer technote add-author/sync-authors), the rubin-technote Typst template from lsst-texmf is vendored as a package by the Makefile, and the shared Rubin bibliographies are downloaded by a sync-bibs target. make pdf compiles the document with Typst and CI uploads the PDF as an artifact until a shared publication workflow exists.

Requires lsst/lsst-texmf#2070

A proof-of-concept template for Typst technotes that follows the
Markdown technote workflow: metadata and authors live in technote.toml
(managed by documenteer technote add-author/sync-authors), the
rubin-technote Typst template from lsst-texmf is vendored as a package
by the Makefile, and the shared Rubin bibliographies are downloaded by
a sync-bibs target. make pdf compiles the document with Typst and CI
uploads the PDF as an artifact until a shared publication workflow
exists.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
]
subprocess.run(
[
"lander",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we should fix lander to understand index.typ as well as documenteer.toml and the latex authors.yaml.

timj and others added 4 commits July 18, 2026 14:44
The rubin-technote template emits its front matter as a labeled
metadata element, so the landing-page upload now extracts the title
and abstract from the compiled document with typst query instead of
baking the scaffold-time title into the workflow. Author, title, and
abstract changes are all picked up automatically on the next push,
with queried content flattened to the plain text lander expects.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Only the technote date_created timestamps changed; every other
example file round-tripped identically, confirming the committed
examples match their skeletons.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
make pdf now derives the abbreviated commit hash and dirty state from
git, exactly as the LaTeX technote Makefile does, and passes it to the
compile as --input source-version=..., where the template renders it
in the front matter after the change record.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
make pdf now compiles with --pdf-standard a-2a,ua-1, producing
archival PDF/A-2a output with PDF/UA-1 tagging where missing alt text
is a compilation failure; the PDF_STANDARD variable must be explicitly
emptied to opt out. CI additionally audits the built PDF's conformance
with veraPDF for both flavours, covering the machine-checkable
requirements.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant