|
77 | 77 | } |
78 | 78 | ) |
79 | 79 | REPO_ROOT = Path(__file__).resolve().parents[2] |
80 | | -STANDARD_JOURNEY_MANIFEST = ( |
81 | | - REPO_ROOT / "docs/site/src/data/standard-journeys.yaml" |
82 | | -) |
83 | 80 | AUTHORING_REFERENCE_MANIFEST = ( |
84 | 81 | REPO_ROOT / "docs/site/scripts/authoring-reference-sources.json" |
85 | 82 | ) |
86 | 83 |
|
87 | 84 |
|
88 | | -def standard_journey_sources( |
89 | | - manifest_path: Path = STANDARD_JOURNEY_MANIFEST, |
90 | | -) -> frozenset[str]: |
91 | | - """Extract the exact canonical source paths from the journey manifest. |
92 | | -
|
93 | | - The manifest owns this routing inventory. Keeping the deliberately small |
94 | | - parser here avoids adding a YAML dependency to the CI classifier. |
95 | | - """ |
96 | | - |
97 | | - sources: list[str] = [] |
98 | | - in_canonical_sources = False |
99 | | - for line in manifest_path.read_text(encoding="utf-8").splitlines(): |
100 | | - if line == " canonical_sources:": |
101 | | - in_canonical_sources = True |
102 | | - continue |
103 | | - if in_canonical_sources and line.startswith(" - "): |
104 | | - source = line.removeprefix(" - ").strip() |
105 | | - if ( |
106 | | - not source |
107 | | - or source[0] in {"'", '"', "{", "["} |
108 | | - or source.startswith(("/", "../")) |
109 | | - ): |
110 | | - raise ValueError( |
111 | | - "standard journey canonical_sources must contain " |
112 | | - f"unquoted repository-relative paths: {source!r}" |
113 | | - ) |
114 | | - sources.append(source) |
115 | | - continue |
116 | | - if in_canonical_sources and line and not line.startswith(" "): |
117 | | - in_canonical_sources = False |
118 | | - |
119 | | - if not sources: |
120 | | - raise ValueError( |
121 | | - f"no standard journey canonical_sources found in {manifest_path}" |
122 | | - ) |
123 | | - return frozenset(sources) |
124 | | - |
125 | | - |
126 | | -STANDARD_JOURNEY_SOURCES = standard_journey_sources() |
127 | | - |
128 | | - |
129 | 85 | def authoring_reference_contract_sources( |
130 | 86 | manifest_path: Path = AUTHORING_REFERENCE_MANIFEST, |
131 | 87 | ) -> tuple[str, ...]: |
@@ -456,15 +412,13 @@ def classify( |
456 | 412 | "crates/registryctl/src/project_authoring/diagnostics.rs", |
457 | 413 | "crates/registryctl/src/project_authoring/fixture_diagnostics.rs", |
458 | 414 | "crates/registryctl/src/project_authoring/fixture_coverage.rs", |
459 | | - "crates/registryctl/src/project_authoring/migration.rs", |
460 | 415 | "crates/registryctl/src/project_authoring/output.rs", |
461 | 416 | "crates/registryctl/src/project_authoring/preflight.rs", |
462 | | - "crates/registryctl/src/project_authoring/promotion.rs", |
| 417 | + "crates/registryctl/src/project_authoring/promotion_projection.rs", |
463 | 418 | "crates/registryctl/src/project_authoring/report_contract.rs", |
464 | | - "crates/registryctl/src/project_authoring/semantic_comparison.rs", |
| 419 | + "crates/registryctl/src/project_authoring/required_product_action.rs", |
465 | 420 | "crates/registryctl/tests/fixtures/project-authoring-journeys.yaml", |
466 | 421 | } |
467 | | - or path in STANDARD_JOURNEY_SOURCES |
468 | 422 | for path in paths |
469 | 423 | ) |
470 | 424 | docs_archives = any( |
@@ -502,11 +456,21 @@ def classify( |
502 | 456 | "LICENSE", |
503 | 457 | "docs/site/package-lock.json", |
504 | 458 | "docs/site/package.json", |
| 459 | + "docs/site/public/examples/registryctl/jsonplaceholder-todo-live-overlay-v1.sh", |
| 460 | + "docs/site/public/examples/registryctl/jsonplaceholder-todo-live-overlay-v1.sh.sha256", |
| 461 | + "docs/site/public/examples/registryctl/opencrvs-events-api-overlay-v1.sh", |
| 462 | + "docs/site/public/examples/registryctl/opencrvs-events-api-overlay-v1.sh.sha256", |
505 | 463 | "docs/site/scripts/check-registryctl-tutorials.sh", |
506 | 464 | "docs/site/scripts/registryctl-tutorial.mjs", |
507 | 465 | "docs/site/scripts/registryctl-tutorial.test.mjs", |
| 466 | + "docs/site/src/content/docs/configure/oauth-client-credentials.mdx", |
| 467 | + "docs/site/src/content/docs/operate/approve-initial-baseline.mdx", |
| 468 | + "docs/site/src/content/docs/tutorials/author-registry-project.mdx", |
| 469 | + "docs/site/src/content/docs/tutorials/configure-project-script-adapter.mdx", |
508 | 470 | "docs/site/src/content/docs/tutorials/publish-spreadsheet-secured-registry-api.mdx", |
| 471 | + "docs/site/src/content/docs/tutorials/use-your-spreadsheet.mdx", |
509 | 472 | "docs/site/src/content/docs/tutorials/verify-claim-registry-api.mdx", |
| 473 | + "docs/site/src/content/docs/tutorials/verify-opencrvs-claims.mdx", |
510 | 474 | "release/docker/Dockerfile.registry-notary", |
511 | 475 | "release/docker/Dockerfile.registry-relay", |
512 | 476 | } |
|
0 commit comments