Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Your paper repository

An editor has created a repository for your paper. You write the paper there in MyST markdown, and its workflows turn it into a website and a PDF in the journal’s style, using oaktree-sapling, the engine that builds, checks and publishes the journal’s papers.

The steps below get you from that repository to a preview on your own machine, then to a pull request the editors can merge.

Before you start

You need a GitHub account, git, and Node 22 or later. Then install oak, oaktree-sapling’s command-line tool, which you run each time you preview or build the paper:[1]

npm install -g oaktree-sapling

1. Fork and clone

If an editor gave you push access to the paper repository, clone it directly and skip the fork. Otherwise, on the paper repository’s GitHub page, click Fork, then clone your fork:

git clone https://github.com/<you>/<paper-repo>.git

2. Preview it

cd <paper-repo>
oak start

3. Write the paper

myst.yml
The paper’s metadata. Replace the placeholders: id, unique in the journal and in the shape the journal asks for (for example oak-2026-tidal-flats, see id_pattern), then title, authors and keywords. The commented-out authors block shows the fields. Leave the oaktree-sapling block at the bottom as it is.
index.md
The paper, with its abstract in the frontmatter at the top. The MyST guide covers the syntax: headings, figures, equations, citations. Interactive figures covers a chart that is interactive on the website and an image in the PDF.
bib.bib
Your references, cited as [@key].
thumbnails/thumbnail.png
The picture shown beside your paper on the journal’s website.

The journal’s editorial checks decide which of these are required.

4. Open a pull request

Commit, push to your fork, and open a pull request against the paper repository. Until a pull request of yours has been merged, its workflows wait on each push until an editor approves them.

A bot then comments on the pull request with the result of the journal’s checks, including anything to fix, and a preview of the paper’s website. It updates the comments on every push.

Once the checks pass, an editor can merge the pull request, and the paper’s website at https://<owner>.github.io/<paper-repo>/ updates. The editors then publish it on Zenodo, which gives it a DOI.

Building the PDF

oak build

This writes the PDF to _build/exports/paper.pdf. It needs typst installed.

Footnotes
  1. oak runs the version your paper names, the one its CI uses, and downloads it the first time. Keeping versions current has the details.

  2. The journal’s logo, colours, edition and checks live in the journal’s own repository, which the editors maintain and your paper repository names. Your paper’s builds read them from there. Journal settings in a paper has the details.