alpha
Login
or
Join now
flo-bit.dev
/
svleek
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/flo-bit/svleek. simple but beautiful documentation generator from markdown
flo-bit.github.io/svleek/
documentation
documentation-generator
markdown
svelte
sveltekit
tailwind
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
fix screenshot link
author
Florian
date
2 years ago
(Dec 12, 2023, 5:44 PM +0100)
commit
c7dd3631
c7dd3631476b74f3b4933bd572890a050875c1de
parent
9bbd9563
9bbd95639ff0fa71d7990d9966ddca0a3328a667
+3
-3
1 changed file
Expand all
Collapse all
Unified
Split
build-docs.js
+3
-3
build-docs.js
View file
Reviewed
···
358
358
const pageContent = fs.readFileSync(pagePath, 'utf-8');
359
359
const newPageContent = pageContent.replace(
360
360
/<HeroScreenshot [\s|\S]*\/>/,
361
361
-
`<HeroScreenshot title="${heroTitle}" subtitle="${heroSubtitle}" image="${heroScreenshot}" buttonHref="${
362
362
-
config.base_url + heroButtonHref
363
363
-
}" buttonLabel="${heroButtonLabel}"/>`
361
361
+
`<HeroScreenshot title="${heroTitle}" subtitle="${heroSubtitle}" image="${
362
362
+
config.base_url + heroScreenshot
363
363
+
}" buttonHref="${config.base_url + heroButtonHref}" buttonLabel="${heroButtonLabel}"/>`
364
364
);
365
365
fs.writeFileSync(pagePath, newPageContent);
366
366
}