Skip to content

Commit

Permalink
Merge pull request #83 from ethanaobrien/main
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
ninelore authored Oct 12, 2023
2 parents 6beeac3 + 9853fe5 commit bbf93f3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
5 changes: 3 additions & 2 deletions docs/supported-devices.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ title: Supported Devices
layout: default
nav_order: 7
---

/** NOTE - do not edit the supported-devices.md file, edit the template file in the supported-devices folder */
<!--
NOTE - do not edit the supported-devices.md file, edit the template file in the supported-devices folder
-->

## Supported Devices and Platforms

Expand Down
8 changes: 8 additions & 0 deletions supported-devices/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,13 @@ console.log("Loading...");
const fs = require("fs");
let data = fs.readFileSync("template.md", "utf8");
data = data.replace("${{TABLE}}", generateHTML());

//Putting this in the template file causes the template be be showed in the listing
data = `---
title: Supported Devices
layout: default
nav_order: 7
---
`+data
fs.writeFileSync("../docs/supported-devices.md", data);
console.log("File written to ../docs/supported-devices.md");
10 changes: 3 additions & 7 deletions supported-devices/template.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: Supported Devices
layout: default
nav_order: 7
---

/** NOTE - do not edit the supported-devices.md file, edit the template file in the supported-devices folder */
<!--
NOTE - do not edit the supported-devices.md file, edit the template file in the supported-devices folder
-->

## Supported Devices and Platforms

Expand Down

0 comments on commit bbf93f3

Please sign in to comment.