Skip to content

Commit

Permalink
small changes to docs generator
Browse files Browse the repository at this point in the history
  • Loading branch information
skymen committed Jan 15, 2025
1 parent bdb3e27 commit 2c1dd61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<img src="./src/icon.svg" width="100" /><br>
# Sample Addon <br>
Description <br>
[<img src="https://placehold.co/200x50/4493f8/FFF?text=Download&font=montserrat" width="200"/>](https://github.com/ConstructFund/construct-addon-wizard-scaffold/releases/download/sample_addon-1.0.0.0.c3addon/sample_addon-1.0.0.0.c3addon) <br>
<br>
[<img src="https://placehold.co/200x50/4493f8/FFF?text=Download&font=montserrat" width="200"/>](https://github.com/ConstructFund/construct-addon-wizard-scaffold/releases/download/sample_addon-1.0.0.0.c3addon/sample_addon-1.0.0.0.c3addon)
### Version: 1.0.0.0 <br>
[b]Author:[/b] skymen <br>
<sub>Made using [CAW](https://marketplace.visualstudio.com/items?itemName=skymen.caw) </sub><br>
Expand Down
4 changes: 2 additions & 2 deletions build/generateDocumentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ export default async function generateDocumentation() {
readme.push(getCoverImage());
readme.push(`# ${config.name} <br>`);
readme.push(`${config.description} <br>`);
readme.push("<br>");
const githubUrl = await getGithubURL();
if (githubUrl && githubUrl !== "") {
let addonFileName = `${config.id}-${config.version}.c3addon`;
readme.push(
`[<img src="https://placehold.co/200x50/4493f8/FFF?text=Download&font=montserrat" width="200"/>](${githubUrl}/releases/download/${addonFileName}/${addonFileName}) <br>`
`[<img src="https://placehold.co/200x50/4493f8/FFF?text=Download&font=montserrat" width="200"/>](${githubUrl}/releases/download/${addonFileName}/${addonFileName})`
);
readme.push(`### Version: ${config.version} <br>`);
}
// readme.push("<br>");
readme.push(`[b]Author:[/b] ${config.author} <br>`);
if (
config.website &&
Expand Down

0 comments on commit 2c1dd61

Please sign in to comment.