summaryrefslogtreecommitdiff
path: root/docs/src/hardware-metadata-collection-plugin
diff options
context:
space:
mode:
authorPeter Johanson <peter@peterjohanson.com>2021-10-16 02:42:38 +0000
committerPete Johanson <peter@peterjohanson.com>2021-10-16 21:50:58 -0400
commit01d2102c2326b86b0f87bb008c2a3eb3871e3963 (patch)
treede18f50d8534b7eb78f0d07ac11c4c4df6a2a129 /docs/src/hardware-metadata-collection-plugin
parente544d74948097864a9e0d846694ea16e5a443f22 (diff)
refactor: Add js-yaml dep, scrtipt gen tweaks.
* Make the synthetic "base name" property double underscore prefixed, since internal, and to avoid future conflicts w/ YAML format add'ns. * Switch to PS hash dictionaries for our metadata collections for saner data inspection/use.
Diffstat (limited to 'docs/src/hardware-metadata-collection-plugin')
-rw-r--r--docs/src/hardware-metadata-collection-plugin/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/src/hardware-metadata-collection-plugin/index.js b/docs/src/hardware-metadata-collection-plugin/index.js
index 5f5660b..89f057a 100644
--- a/docs/src/hardware-metadata-collection-plugin/index.js
+++ b/docs/src/hardware-metadata-collection-plugin/index.js
@@ -12,7 +12,7 @@ const glob = require("glob");
function generateHardwareMetadataAggregate() {
glob("../app/boards/**/*.zmk.yml", (error, files) => {
const aggregated = files.flatMap((f) =>
- yaml.safeLoadAll(fs.readFileSync(f, "utf8"))
+ yaml.loadAll(fs.readFileSync(f, "utf8"))
);
fs.writeFileSync(
"src/data/hardware-metadata.json",