fix(docs): expose generated taxonomy links

This commit is contained in:
Peter Steinberger
2026-07-15 07:28:58 -04:00
parent 043e4d1ec4
commit 44a0c093cf
4 changed files with 1421 additions and 282 deletions
+1405 -281
View File
File diff suppressed because it is too large Load Diff
+4
View File
@@ -702,6 +702,10 @@ html.dark .nav-tabs-underline {
text-underline-offset: 3px;
}
.maturity-category-docs p {
margin: 0;
}
.maturity-level-list {
display: grid;
margin: 12px 0 28px;
+5 -1
View File
@@ -1117,7 +1117,11 @@ function renderTaxonomy({
` <div>${scoreMeter(coverageScore)}</div>`,
` <div>${scoreMeter(scoreCategory?.quality)}</div>`,
` <div>${scoreMeter(scoreCategory?.completeness)}</div>`,
` <div className="maturity-category-docs">${docs || "No linked docs"}</div>`,
' <div className="maturity-category-docs">',
"",
docs || "No linked docs",
"",
" </div>",
" </div>",
);
}
@@ -254,9 +254,16 @@ describe("maturity docs renderer CLI", () => {
expect(result.status).toBe(0);
const scorecard = fs.readFileSync(path.join(outputDir, "maturity", "scorecard.md"), "utf8");
const taxonomy = fs.readFileSync(path.join(outputDir, "maturity", "taxonomy.md"), "utf8");
expect(scorecard).toContain("1 passed, 1 skipped");
expect(scorecard).not.toContain("0 failed");
expect(scorecard).not.toContain("0 blocked");
expect(taxonomy).toMatch(
/<div className="maturity-category-docs">\n\n {4}\[[^\n]+\]\([^)]+\)[^\n]*\n\n {8}<\/div>/,
);
expect(taxonomy).not.toMatch(
/<div className="maturity-category-docs">[^\n]*\[[^\n]+\]\([^)]+\)[^\n]*<\/div>/,
);
});
it("renders the maturity score from quality and completeness without coverage", () => {