| 1 | // A project-type template, in the same directory as the floor documents and |
| 2 | // distinguished from them by syntax alone: a definition contributes nothing |
| 3 | // to the composition until a project embeds it, where the floor documents' |
| 4 | // concrete fields load whether a project asks for them or not. |
| 5 | // |
| 6 | // Everything here is a default rather than a rule, so a documentation |
| 7 | // project gets the knowledge lint by embedding this definition and nothing |
| 8 | // else, and a project with reason to opt out can. |
| 9 | package verification |
| 10 | |
| 11 | #docs: #Policy & { |
| 12 | checks: "knowledge-lint": { |
| 13 | runner: "nix" |
| 14 | attribute: "knowledge-lint" |
| 15 | } |
| 16 | |
| 17 | // Knowledge nodes are markdown under `.the-valley/`, so they match the |
| 18 | // floor's `prose` class as well as this one and require all three |
| 19 | // checks. |
| 20 | classes: knowledge: { |
| 21 | paths: ".the-valley/**": bool | *true |
| 22 | requires: "knowledge-lint": bool | *true |
| 23 | } |
| 24 | } |