Skip to content

Commit

Permalink
Fix proofing output [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Dec 19, 2023
1 parent f42ba15 commit 7ab5646
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
12 changes: 4 additions & 8 deletions scripts/index.html
Expand Up @@ -98,20 +98,16 @@ <h4>{{name}}</h4>
</li>
{{/diffenator}}
</ul>
{{/families}}

<h3>Proof sheets</h3>
<ul>
{{#proof}}
<li>
<a href="proof/glyphs.html">All glyphs</a>
</li>
<li>
<a href="proof/text.html">Sample text</a>
</li>
<li>
<a href="proof/waterfall.html">Waterfall test</a>
<a href="{{path}}">{{name}}</a>
</li>
{{/proof}}
</ul>
{{/families}}
</div>
</div>
</body>
Expand Down
7 changes: 7 additions & 0 deletions scripts/template.py
Expand Up @@ -80,11 +80,18 @@ def make(self, root):
"name": "Diffenator report, " + Path(result).parent.stem,
"path": result[4:],
})
proof = []
for result in glob(f"out/proof/{basename}/*/*.html"):
proof.append({
"name": Path(result).parent.stem + ", " + Path(result).stem.replace("diffbrowsers_", ""),
"path": result[4:],
})

families.append({
"name": fname,
"fonttree": fonttree,
"fontbakery": fontbakery,
"proof": proof,
"diffenator": diffenator
})

Expand Down

0 comments on commit 7ab5646

Please sign in to comment.