Documents of the BBQS Working Group on Data Standards, maintained as Markdown so that changes can be reviewed and versioned in Git.
| Document | Source |
|---|---|
| Guidelines for BBQS Data Standards | content/guidelines/ |
| Charter: BBQS DCAIC Working Group on Data Standards | content/charter/ |
These documents were originally drafted in Google Docs (guidelines, charter). With the release of this repository, the documents here become the source of truth and the Google Docs will be retired but remain available for reference.
content/ # the documents; everything the website renders lives here
charter/ # one folder per document
index.md
guidelines/
index.md
figures/
guidelines-figures.pptx # editable source for all figures
data-standards-overview.svg # Figure 1, rendered from the .pptx
bbqs-standards-stack.svg # Figure 2, the BBQS standards stack (source; a link on every element)
bbqs-standards-stack.svgtune # step-by-step walkthrough of Figure 2 for talks
scripts/check_docs.py # checks the conventions below (runs in CI on every PR)
Once released, the documents will be published at
https://brain-bbqs.org/working-groups/standards. The website (brain-bbqs/bbqs-app) downloads
content/ from main of this repository every time it builds (on each deploy and at
least once a day), so merged changes appear on the site within a day. Nothing needs to be
changed in the website repository to update or add a document.
On the website side, scripts/fetch-standards-docs.mjs does the download and
src/pages/StandardsDoc.tsx renders the pages. To preview your edits in the site before
merging, run this from a checkout of bbqs-app:
BBQS_STANDARDS_PATH=/path/to/bbqs-standards npm run devand open http://localhost:8080/working-groups/standards.
Because the website follows main directly, every pull request runs
scripts/check_docs.py. It checks that each document has the required front matter, that
relative links and images point to existing files, and that there is no raw HTML. To run it
locally:
pip install pyyaml
python scripts/check_docs.py-
Each document is a folder
<name>/containing anindex.md. Keep figures in afigures/subfolder next to it and reference them with a relative path, e.g.. -
Each document starts with front matter. Keep every field on a single
key: valueline (the website does not parse multi-line YAML):--- title: "Guidelines for BBQS Data Standards" # page title short_title: Data Standards Guidelines # label for navigation and links description: One sentence shown in listings. order: 1 # position in listings ---
The page title comes from
title, so do not add a# Titleheading to the body; start sections at##. -
Use plain GitHub-flavored Markdown, without raw HTML or site-specific syntax, so the files read the same on GitHub and on the website.
-
Wrap placeholders such as
<subject_id>in backticks; otherwise they are treated as HTML tags and disappear.
Figures are kept as an editable source file plus a rendered SVG for display:
figures/*.pptxis the source. Edit it in PowerPoint, Keynote, or Google Slides (File > Import slides / File > Download > Microsoft PowerPoint).figures/*.svgis the rendered version included in the document. After changing a slide, re-export it as SVG and replace the file. In Google Slides use File > Download > Scalable Vector Graphics (.svg) (exports the current slide); in PowerPoint use File > Export or Save as Picture with SVG.- Use one slide per figure and name the SVG after its content (not its figure number), so figures can be reordered without renaming files.
- Commit the
.pptxand.svgtogether so they stay in sync. - In figure captions, link to the source file on GitHub
(
https://github.com/brain-bbqs/bbqs-standards/blob/main/content/<doc>/figures/<file>.pptx) rather than with a relative path, so readers of the website are sent to the version in this repository instead of a copy published with the website.
Figure 2 (bbqs-standards-stack.svg) has a link on every element, so that readers can open
the website of each standard, extension, or proposal. It has no .pptx: the SVG is the
source and is edited directly, e.g. in Inkscape or a text editor. Each element is an
<a href="..."> around its shapes and text, and the elements are grouped into Inkscape
layers, one per build step (inkscape:label). Give new elements a link, and keep them in the
layer of their step. With svgtune, the build steps
become a walkthrough for talks, one SVG per step (not committed):
cd content/guidelines/figures && svgtune bbqs-standards-stack.svgtune # -> bbqs-standards-stack_tuned/The figure is also used in the BBQS standards paper (brain-bbqs/standards_paper), which includes this repository as a Git submodule.