Skip to content

Commit 417bb8f

Browse files
committed
fixed itchio url in docs
1 parent b685e40 commit 417bb8f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build/generateDocumentation.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,10 @@ export default async function generateDocumentation() {
180180
publishConfig.itchioPage &&
181181
publishConfig.itchioPage !== ""
182182
) {
183+
// Split username/game-id to construct proper itch.io URL
184+
const [username, gameId] = publishConfig.itchioPage.split("/");
183185
readme.push(
184-
`<b>[Itch.io Page](https://itch.io/${publishConfig.itchioPage})</b> <br>`
186+
`<b>[Itch.io Page](https://${username}.itch.io/${gameId})</b> <br>`
185187
);
186188
}
187189
if (

buildconfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ export const terserValidation = "error";
2121

2222
export const publishConfig = {
2323
addonUrl: "", // e.g., "https://www.construct.net/en/make-games/addons/111/my-addon"
24-
itchioPage: "", // e.g., "username/game-id" format like "skymen/my-addon"
24+
itchioPage: "", // Format: "username/page-id" (taken from https://username.itch.io/page-id)
2525
autoGenReadme: true,
2626
};

0 commit comments

Comments
 (0)