Move around files so the repo will be organized as a monorepo.
This commit is contained in:
parent
65d1880a84
commit
08c69f0fd3
365 changed files with 1477 additions and 1262 deletions
20
tools/amend-readme/src/sections/lig-set-pre-def.mjs
Normal file
20
tools/amend-readme/src/sections/lig-set-pre-def.mjs
Normal file
|
@ -0,0 +1,20 @@
|
|||
import fs from "fs";
|
||||
import path from "path";
|
||||
|
||||
import { parseLigationData } from "@iosevka/data-export/ligation-data";
|
||||
|
||||
import { MdCol } from "../md-format-tools.mjs";
|
||||
|
||||
export default async function processLigSetPreDef(argv, dirs) {
|
||||
const ligData = await parseLigationData(argv);
|
||||
const md = new MdCol("Section-Predefined-Ligation-Sets");
|
||||
const headerPath = path.resolve(dirs.fragments, "description-predefined-ligation-sets.md");
|
||||
md.log(await fs.promises.readFile(headerPath, "utf-8"));
|
||||
for (const gr in ligData.rawSets) {
|
||||
const readmeDesc =
|
||||
ligData.rawSets[gr].readmeDesc ||
|
||||
`Default ligation set would be assigned to ${ligData.rawSets[gr].desc}`;
|
||||
md.log(` - \`${gr}\`: ${readmeDesc}.`);
|
||||
}
|
||||
return md;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue