mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 02:06:43 +00:00
fix(docs): expose generated taxonomy links
This commit is contained in:
+1405
-281
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user