Skip to content

Commit

Permalink
chore(docs): only show affected documentation version
Browse files Browse the repository at this point in the history
- Rename table header to more explicit
  • Loading branch information
binoy14 authored and bjoerge committed Sep 6, 2023
1 parent f163375 commit 91ddbfa
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions scripts/doc-report/docReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ combineLatest([
| ------- | ----------------- |
${res
.sort((a, b) => b.documentedChange - a.documentedChange)
.map((r) => `| ${r.package} | ${r.documentedChange}% |`)
.filter((r) => r.documentedChange !== 0)
.map(
(r) =>
`| ${r.package} | ${
r.documentedChange > 0 ? `+${r.documentedChange}` : r.documentedChange
}% |`,
)
.join('\n')}
<details>
Expand All @@ -111,8 +117,8 @@ ${res
<summary>${r.package}</summary>
<table>
<tr>
<th>Branch</th>
<th>Production</th>
<th>This branch</th>
<th>Current release</th>
</tr>
<tr>
<td>${r.branchDocumented} documented</td>
Expand Down

0 comments on commit 91ddbfa

Please sign in to comment.