Skip to content

Commit

Permalink
fix: better styles, material export
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianCataldo committed Oct 12, 2023
1 parent 4b6297f commit 6991c7a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/cem-to-md.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ const markdown = customElementsManifestToMarkdown(manifest);

const theme = packageDir.split('/').at(-1);
const name = theme.at(0).toUpperCase() + theme.substring(1);
const edition = theme === 'form' ? 'Barebone' : name;

fs.writeFileSync(
`${packageDir}/README.md`,
`# JSON Schema Form Element — ***${name}*** edition
`# JSON Schema Form Element — ***${edition}*** edition
See the [documentation](../../README.md).
\`\`\`sh
npm install @jsfe/${theme}
\`\`\`
Consult the [documentation](../../README.md).
Open the [playground](https://jsfe.js.org).
---
Expand Down

0 comments on commit 6991c7a

Please sign in to comment.