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.

Create a journal

Besides GitHub, a journal uses Zenodo to publish papers and, optionally, Cloudflare for live previews. Their tokens are set on each paper repository and listed in Secrets.

Install

oak needs Node 22 or later and the GitHub CLI, logged in to the account that will own the repositories:

npm install -g oaktree-sapling
gh auth login

oak bootstrap checks for gh and a logged-in account before it does anything else.

Choose where the repositories live

A journal is a set of repositories under one GitHub account: one for the journal’s settings and website, then one per paper. The account can be your own or an organisation.

On a personal account you are the only editor. On an organisation, the editors are a team. To run the journal from an organisation, create these before bootstrapping:

and check that the account running oak can create repositories in the organisation and administer them, since oak bootstrap sets rules and environments on each one.

Then pass the team with --owner @my-journal/editors when you create each paper repository. The team gets write access, owns the repository’s workflows and settings in CODEOWNERS, and is the only one allowed to create the tags that publish a version. --owner applies to paper repositories only, so the team gets no access to the journal repository from oak. To let editors change the journal’s settings, add the team to the journal repository on GitHub, under Settings > Collaborators and teams.

Create the journal

oak bootstrap journal --repo <owner>/<journal-repo> \
  --name "My Journal" \
  --edition 2026

oak prints what it is about to do, including every value it took a default for, and asks before changing anything. --edition names the first edition; without it the edition is called seedling. The engine version defaults to the version of the oak you run, and the plan says when npm has a newer one; --engine-version <tag> runs that version of oak instead, downloaded the first time, so the repo’s files come from the version it pins. An oak that is not a stable release needs --engine-version.

Running the same command again finishes a run that failed partway and skips what is already there. It does not rewrite files already on main, so a different --name or --edition on a second run changes nothing: edit the files instead.

Then go on to what bootstrap made.