mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
docs: prerender for gh pages
This commit is contained in:
parent
bcc7058ddf
commit
f0b270b9bc
6 changed files with 13 additions and 11 deletions
|
@ -19,12 +19,7 @@ async function scrape(page, url = "") {
|
|||
|
||||
function relativePaths(depth = 0) {
|
||||
const asset_extension = new RegExp(/.(js|css|ico)$/);
|
||||
let relative_path =
|
||||
depth > 0
|
||||
? Array.from({ length: depth }, (_, i) => "../")
|
||||
.join("")
|
||||
.slice(0, -1)
|
||||
: ".";
|
||||
let relative_path = "";
|
||||
|
||||
return (tree) => {
|
||||
tree.match(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue