summaryrefslogtreecommitdiff
path: root/docs/src/setup-script-generation-plugin/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/setup-script-generation-plugin/index.js')
-rw-r--r--docs/src/setup-script-generation-plugin/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/setup-script-generation-plugin/index.js b/docs/src/setup-script-generation-plugin/index.js
index 0d768d7..908ac65 100644
--- a/docs/src/setup-script-generation-plugin/index.js
+++ b/docs/src/setup-script-generation-plugin/index.js
@@ -14,8 +14,8 @@ const Mustache = require("mustache");
function generateSetupScripts() {
return glob("../app/boards/**/*.zmk.yml", (error, files) => {
const aggregated = files.map((f) => ({
- ...yaml.safeLoadAll(fs.readFileSync(f, "utf8"))[0],
- base_dir: path.basename(path.dirname(f)),
+ ...yaml.load(fs.readFileSync(f, "utf8")),
+ __base_dir: path.basename(path.dirname(f)),
}));
const data = aggregated.reduce(