Skip to content

The command checks a drawing file's standard, and the docs - #47

Merged
sc-frederick merged 1 commit into
mainfrom
export
Nov 13, 2026
Merged

sc-frederick merged 1 commit into
mainfrom
export

Conversation

@tsdraft-export

Copy link
Copy Markdown
Contributor

This pull request was opened by the export from tsdraft's development repository. Each commit
here is one change made there.

Merge it with squash, or with rebase to keep one commit per change. Don't push to this branch:
the next export replaces anything that did not come from it.

`tsdraft render` and `tsdraft dev` check a drawing file's standard. A drawing file exports the
standard its drawing is drawn to beside the drawing, `export { standard }`, and each build passes
it to `lint` with the drawing. A rule of the standard that the drawing breaks is a diagnostic, and
its errors give exit code 2. `drawing.standard` in the JSON gives the standard's `id`, `version`
and `hash`, and `checked`. When the project's copy of tsdraft is from before standards, the build
warns with `standard-unchecked` and does not check the drawing against it. `schema` stays 3.

- When a title block of the standard is a firm's drawing attached as an xref, the pictures draw
  the title block's `preview` in its place, unless the file's `xrefs` export gives a drawing for
  the xref. The xref's `shown` is then true.
- The page of `tsdraft dev` shows the standard's id and version beside the file's name, and "not
  checked" when the drawing was not checked against it.
- The process that waits for a save also runs `defineStandard` and `lint` with a standard ahead of
  the build, so a drawing drawn to a standard builds sooner after a save.
- [docs/standard.md](https://github.com/Surfside-Software/tsdraft/blob/main/docs/standard.md) is
  a new page on standards: the document, `defineStandard`, the built-in standard, drawing to a
  standard, what `lint` holds a drawing to, and what the command does. GUIDE.md shows how to
  extend the built-in standard, and `docs/command.md` and `docs/title-blocks.md` say what changed.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@sc-frederick
sc-frederick merged commit 5f5ac28 into main Nov 13, 2026
3 checks passed
@sc-frederick
sc-frederick deleted the export branch November 13, 2026 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant