Skip to content

Commit

Permalink
stacks script adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
aorcsik committed Jun 27, 2024
1 parent 55006e4 commit 37909a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/stacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const formatHtml = (html) => {
)
.replaceAll(/\s+<\/code>/g, '</code>')
.replaceAll(/href="\//g, 'href="/stacks/')
.replaceAll('https://stacks.bitrise.io/', '/stacks/');
.replaceAll(stacksAPIBase, '/stacks/');
};

(async () => {
Expand All @@ -43,7 +43,7 @@ const formatHtml = (html) => {
const pageType = pagePath.split('/')[0];

if (pageType === '') {
const response = await fetch(`${stacksAPIBase}`);
const response = await fetch(`${stacksAPIBase}index.html`);
/** @type {StacksPageData} */
const html = await response.text();
const match = html.match(/<main.*\/main>/gms);
Expand Down

0 comments on commit 37909a7

Please sign in to comment.