Data files in folders under data/ #38

Merged
jcoffey-dev merged 1 commits from feature/data-folders into main 2026-10-19 00:21:42 +00:00
Owner

Data files can now sit in folders under data/:

  • data "exams/one" reads data/exams/one.yaml.
  • data "exams" gives every file directly in data/exams/, by name, so a page can list them all.
  • A file and a folder with the same name are refused, and folders starting with a dot are skipped.
  • nav and a section's from: take a path the same way.

Documented in docs/themes.md. Tests cover both lookups and the clashes.

Data files can now sit in folders under `data/`: - `data "exams/one"` reads `data/exams/one.yaml`. - `data "exams"` gives every file directly in `data/exams/`, by name, so a page can list them all. - A file and a folder with the same name are refused, and folders starting with a dot are skipped. - `nav` and a section's `from:` take a path the same way. Documented in docs/themes.md. Tests cover both lookups and the clashes.
jcoffey-dev added 1 commit 2026-10-18 23:32:08 +00:00
Data files can sit in folders under data/
ci / go (pull_request) Successful in 50s
ci / editor-ui (pull_request) Successful in 1m13s
bdfcac2ccb
data "exams/one" reads data/exams/one.yaml, and data "exams" gives every
file directly in data/exams/ by name. A file and a folder with the same name
are refused, and folders starting with a dot are skipped. nav and a
section's from: take a path the same way.
jcoffey-dev merged commit 0225530ffb into main 2026-10-19 00:21:42 +00:00
jcoffey-dev deleted branch feature/data-folders 2026-10-19 00:21:42 +00:00
Sign in to join this conversation.