Skip to content
SCTAScholastic Commentaries and Texts Archive

About these docs

Writing and importing documentation

How these pages are built: Markdown written here, or imported from the repository that owns it.

Updated 2026-11-27

Documentation: all pages

These pages are built by scta-docs from Markdown. A page is either written here, in content/, or imported from another repository, so that a schema's or an API's documentation lives next to its code and is edited there.

Adding a page #

Every page is listed in site.toml, in a section (docs, community) and a group:

[[section.group.page]]
slug = "using-the-data"
file = "content/docs/using-the-data.md"

An imported page names its repository, the branch or tag to publish, and the file; local points to a checkout next to this one:

[[section.group.page]]
slug = "edf"
title = "Expression Description Files (EDF)"
repo = "scta/edf-schema"
ref = "master"
path = "docs_source/project-desc-file.md"
local = "../edf-schema"

What the importer does #

  • Reads the file from the local checkout if there is one (to preview unpublished changes), or from GitHub at ref (build --remote, which is what a published build uses).
  • Drops front matter left from older sites (Jekyll), and uses its title if site.toml gives none; otherwise the first heading.
  • Fixes links. A relative link to another imported file becomes a link to its page here; any other relative link or image points to the file on GitHub, at the version that was read.
  • Records provenance: each imported page says which repository, file, branch and commit it came from, with a link to edit it there.

This replaces the old getDocs.sh in scta-community, which copied files from master by hand and committed the copies, so they went out of date, kept their old front matter, and lost their relative links.

Writing style #

Plain Markdown (CommonMark with tables). Start with the content: the page title comes from site.toml or the front matter, so don't repeat it as a heading. Use ## and ### for sections; they make up the "On this page" list.