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 |
|---|---|---|
| A page of the site | The landing content |
| The site’s list of articles, if the landing content has an | The landing content |
| A published work, and its other pages | A submission published to the site |
| 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.
Your redirects. Redirect rules are checked first, then the
$landinggroup for/and the$infogroup for single-segment pages such as/about. A redirect here sends the reader away before any content loads.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.Works and previews. A path that starts with
/articles/or/previews/and has something after it is a work or a preview./articleson its own isn’t a work, so it falls through to the next step.The landing content. Everything else is a page of the landing content. Its address is the page’s place in the project:
/people/editorsis the pageeditorsin thepeoplefolder. When there’s no such page, the site tries the folder’s own page, so/peopleopenspeople/index.md.Not found. When the landing content has no page at that address, your redirect rules and the
$notFoundgroup 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.
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,.zipand.omex, the page’s downloads, when it has them. See Downloads./myst.xref.json,/myst.search.json,/myst.config.jsonand/objects.invafter 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.
- API
- Application Programming Interface
- DOI
- Digital Object Identifier
- JATS
- Journal Article Tag Suite
- MyST
- Markedly Structured Text