Repository navigation
The command checks a drawing file's standard, and the docs - #47
Merged
Merged
Conversation
`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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.