Skip to content

Commit

Permalink
fix(docs): fix generateDocs for name attr and restore script to build #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 committed Jul 20, 2023
1 parent 6b4b97f commit e3167b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"web components"
],
"scripts": {
"build": "npm-run-all build:sass sass:render scssLint dist:js bundler postinstall build:api types",
"build": "npm-run-all build:sass sass:render scssLint dist:js bundler postinstall build:api types build:docs",
"build:ci": "npm-run-all sweep build",
"build:api": "wca analyze 'src/auro-checkbox.js' --outFiles docs/api.md",
"build:dev:assets": "npm-run-all build:sass:component postCss:component sass:render build:docs",
Expand Down
4 changes: 2 additions & 2 deletions scripts/generateDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ function formatTemplateFileContents(content, destination) {
* Replace placeholder strings
*/
result = result.replace(/\[npm]/g, nameExtractionData.npm);
result = result.replace(/\[name]/g, nameExtractionData.name);
result = result.replace(/\[Name]/g, nameExtractionData.nameCap);
result = result.replace(/\[name](?!\()/g, nameExtractionData.name);
result = result.replace(/\[Name](?!\()/g, nameExtractionData.nameCap);
result = result.replace(/\[namespace]/g, nameExtractionData.namespace);
result = result.replace(/\[Namespace]/g, nameExtractionData.namespaceCap);

Expand Down

0 comments on commit e3167b2

Please sign in to comment.