How your public site fits together

A site’s public website is built from two kinds of content:

  • The landing content: one project, your site’s own pages. The home page, About, author instructions, the editorial board, and anything else that belongs to the venue rather than to one article. You set it from the command line or from a GitHub repository. See Landing content.

  • Works: everything authors submit and you publish. Each published work gets its own address under /articles, with its own pages, downloads and DOI. See Works on your site.

The two share one look (set in Website & Design) and one set of navigation, so readers move between them without noticing the join. They are managed separately: you edit the landing content as a project, and works arrive through submissions.

Table 1:Where content lives on a site

Address

What it is

Comes from

/, /about, /people/editors

A page of the site

The landing content

/articles

The site’s list of articles, if the landing content has an articles page

The landing content

/articles/<work>, /articles/<work>/<page>

A published work, and its other pages

A submission published to the site

/previews/<submission version>

A preview of a submission before it’s published, from a signed link

A submission version

The order a path is checked in

Every request to the site goes through the same checks, in this order. The first that answers wins.

  1. Your redirects. Redirect rules are checked first, then the $landing group for / and the $info group for single-segment pages such as /about. A redirect here sends the reader away before any content loads.

  2. The site’s own files. /robots.txt, /sitemap.xml, /favicon.ico, /.well-known/* and the site’s API are always served by the site itself.

  3. Works and previews. A path that starts with /articles/ or /previews/ and has something after it is a work or a preview. /articles on its own isn’t a work, so it falls through to the next step.

  4. The landing content. Everything else is a page of the landing content. Its address is the page’s place in the project: /people/editors is the page editors in the people folder. When there’s no such page, the site tries the folder’s own page, so /people opens people/index.md.

  5. Not found. When the landing content has no page at that address, your redirect rules and the $notFound group get a chance. If neither sends the reader elsewhere, the site shows its error page.

A work that can’t be found doesn’t go to step 5: a mistyped article address shows the error page, so a reader with a wrong DOI isn’t quietly sent somewhere else.

Important

Because works are checked before the landing content, a folder named articles or previews in your landing content can never be opened. Its pages would be read as works. A single page named articles, at /articles, is fine, and is the usual home for the site’s list of articles.

Formats at any address

Any page, of the landing content or a work, can also be asked for in another form by adding an extension:

  • .json, the page’s data, as the site loads it when a reader moves between pages. Link cards and cross-references between sites use it too.

  • .pdf, .xml (JATS), .meca, .zip and .omex, the page’s downloads, when it has them. See Downloads.

  • /myst.xref.json, /myst.search.json, /myst.config.json and /objects.inv after a work’s address (or at the site’s root, for the landing content), the files other MyST sites use to link into yours.

A format the page doesn’t have answers 404, not the page or the $notFound redirect.

Abbreviations
API
Application Programming Interface
DOI
Digital Object Identifier
JATS
Journal Article Tag Suite
MyST
Markedly Structured Text