|
11 | 11 | 'VERSIONING.md', |
12 | 12 | 'CHANGELOG.md', |
13 | 13 | 'CODEOWNERS', |
| 14 | + '.github/PULL_REQUEST_TEMPLATE.md', |
| 15 | + '.github/workflows/ci-docs.yml', |
| 16 | + '.github/workflows/sync-wiki.yml', |
14 | 17 | 'docs/methodology/continuous-improvement-loop.md', |
| 18 | + 'docs/methodology/definition-of-done.md', |
15 | 19 | 'docs/diagrams/README.md', |
16 | 20 | 'docs/loops/feature.md', |
| 21 | + 'docs/loops/bugfix-loop.md', |
| 22 | + 'docs/loops/release.md', |
| 23 | + 'docs/verifiers/README.md', |
17 | 24 | 'prompts/master-system-prompt.md', |
18 | 25 | 'prompts/chatgpt-web.md', |
| 26 | + 'prompts/continuous-improvement.md', |
19 | 27 | 'wiki/Home.md', |
| 28 | + 'wiki/Loops.md', |
| 29 | + 'wiki/Prompts.md', |
| 30 | + 'wiki/Releases.md', |
| 31 | + 'wiki/Verifiers.md', |
20 | 32 | ] |
21 | 33 |
|
| 34 | +REQUIRED_MERMAID = [ |
| 35 | + 'docs/methodology/continuous-improvement-loop.md', |
| 36 | + 'docs/methodology/definition-of-done.md', |
| 37 | + 'docs/diagrams/README.md', |
| 38 | + 'docs/loops/feature.md', |
| 39 | + 'docs/loops/release.md', |
| 40 | + 'wiki/Home.md', |
| 41 | +] |
| 42 | + |
| 43 | + |
| 44 | +def fail(title, items): |
| 45 | + if items: |
| 46 | + print(title) |
| 47 | + for item in items: |
| 48 | + print('-', item) |
| 49 | + raise SystemExit(1) |
| 50 | + |
| 51 | + |
22 | 52 | missing = [p for p in REQUIRED if not (ROOT / p).exists()] |
23 | | -if missing: |
24 | | - print('Missing required files:') |
25 | | - for item in missing: |
26 | | - print(item) |
27 | | - raise SystemExit(1) |
| 53 | +fail('Missing required files:', missing) |
28 | 54 |
|
29 | 55 | markdown = list(ROOT.rglob('*.md')) |
| 56 | +without_title = [] |
30 | 57 | for path in markdown: |
31 | 58 | text = path.read_text(encoding='utf-8') |
32 | 59 | if not text.lstrip().startswith('#'): |
33 | | - print('Markdown file without title:', path.relative_to(ROOT)) |
34 | | - raise SystemExit(1) |
| 60 | + without_title.append(str(path.relative_to(ROOT))) |
| 61 | +fail('Markdown files without title:', without_title) |
| 62 | + |
| 63 | +without_mermaid = [] |
| 64 | +for p in REQUIRED_MERMAID: |
| 65 | + if '```mermaid' not in (ROOT / p).read_text(encoding='utf-8'): |
| 66 | + without_mermaid.append(p) |
| 67 | +fail('Required diagram docs without Mermaid:', without_mermaid) |
35 | 68 |
|
36 | 69 | print('Repository structure OK') |
| 70 | +print('Required files checked:', len(REQUIRED)) |
37 | 71 | print('Markdown files checked:', len(markdown)) |
0 commit comments