Dark mode README
This commit is contained in:
parent
5c910ffc7f
commit
57b45643d5
2747 changed files with 1021 additions and 1030 deletions
|
@ -67,7 +67,7 @@ async function GeneratePackageList(argv, out) {
|
|||
|
||||
const proportionPrefix = gr.quasiProportional ? "Quasi-proportional" : "Monospace";
|
||||
const desc = `<i>${proportionPrefix}, ${prime.desc}</i>`;
|
||||
const img = `<img src="${imagePrefix}/${groupID}.png"/>`;
|
||||
const img = ImgX(`${imagePrefix}/${groupID}`);
|
||||
out.log(
|
||||
`<tr>`,
|
||||
`<td colspan="3"><b>📦 ${familyName}</b> — ${desc}</td>`,
|
||||
|
@ -127,3 +127,11 @@ function buildName(j, ...parts) {
|
|||
function flag(f) {
|
||||
return f ? "<b>Yes</b>" : "No";
|
||||
}
|
||||
|
||||
function ImgX(path, w) {
|
||||
const widthProp = w ? ` width=${w}` : ``;
|
||||
return (
|
||||
`<img src="${path}.light.png#gh-light-mode-only"${widthProp}/>` +
|
||||
`<img src="${path}.dark.png#gh-dark-mode-only"${widthProp}/>`
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue