Configure the journal
journal.yml, at the root of the journal repository, holds the settings every paper build reads. This page covers the ones most journals change; the reference lists every field, and editorial checks covers checks. The logo, colours and favicon are set in brand/brand.yml: see branding.
The paper id rule¶
Every paper’s project.id has to match id_pattern, a regular expression. The starting pattern accepts ids such as oak-2026-tidal-flats:
id_pattern: "^[a-z0-9]+-\\d{4}-[a-z0-9-]+$"Keep the ^ and $: without them, an id only has to contain a match. Inside double quotes, a backslash is written twice.
A paper whose id does not match, or is still a placeholder, fails its Journal checks, so its pull request cannot merge. The checks comment names the id and the pattern. An id also has to be unused in the journal’s registry.
To turn the rule off, delete the id_pattern line. Ids are then checked only for placeholders and duplicates, and the checks report that no pattern is set.
id_sentinel names one more placeholder id to reject, besides oak’s own CHANGE-ME-template-placeholder.
Your own PDF template¶
Papers are typeset with oak’s own typst template. To use another, set typst_template to one of:
./<directory>- A MyST typst template committed in the journal repository, as a path from its root. The value has to start with
./or../. - a URL
- A template
.zip, pinned to a commit or a release, such ashttps://github.com/<owner>/<repo>/archive/<sha>.zip.[1] - a name
- A template from MyST’s template list, such as
lapreprint-typst.[1]
typst_template: ./typst-templateA paper can set its own template in its myst.yml (exports[].template). It takes precedence over the journal’s, and the Journal checks flag it for the editors.
Zenodo community¶
A journal’s papers can join a Zenodo community:
zenodo:
community: my-journalcommunity is the community’s identifier, the last part of its address on Zenodo. An editor submits a paper’s first version to the community (publish on Zenodo). Once the community accepts it, later versions stay in the community.
Zenodo description¶
A deposit’s description is the paper’s abstract, followed by links to the paper’s website and repository, and its venue and funding when its myst.yml or its edition sets them. The journal can add a paragraph of its own after the abstract:
zenodo:
description_blurb: Published in My Journal.Each paper link a paper sets is added to the description, with the label from journal.yml and the address from the paper’s myst.yml.
Paper links¶
A journal can name links that each paper sets for itself, such as a recording of a talk:
paper_links:
- option: youtube
label: Seminar recording
text: Watch on YouTube
relation: isSupplementedByEach entry reads the web address a paper sets as project.options.<option> in its myst.yml, and adds a line <label>: <text> to the Zenodo description, with <text> linking to that address. With this example, a paper that sets
project:
options:
youtube: https://youtu.be/<video>has the line Seminar recording: Watch on YouTube in its Zenodo description. relation is optional: it also lists the address among the Zenodo record’s related works, with that relation (the paper_links reference lists the values). If a paper does not set the option, its description does not contain the line. If the value is not an http or https address, the description does not contain it either, and the deposit prints a warning. A journal’s PDF template can read the same option to show the link in the PDF.
Live previews¶
Each pull request to a paper gets a preview of its website, by default as a downloadable copy of the built site. To give it a live link on Cloudflare Pages instead:
In Cloudflare, create a Pages project to hold the previews, and an API token allowed to edit Cloudflare Pages.
Set the token and the account id on each paper repository (see Secrets).
In
journal.yml, set:preview: provider: cloudflare cf_project_name: <your-pages-project>
All papers share the project, and each pull request gets its own address in it. If any of these is missing, or the deploy fails, the pull request gets the downloadable copy and the comment says why.