Skip to content

Commit

Permalink
updated rewite numbered links to work with nested links
Browse files Browse the repository at this point in the history
  • Loading branch information
schaeferka authored and btlghrants committed Jan 18, 2024
1 parent ba4ec30 commit f943fbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ for (const version of RUN.versions) {
const srcimgs = `${RUN.core}/_images`
const dstimgs = `${RUN.work}/static/${RUN.version}/_images`
await fs.cp(srcimgs, dstimgs, {recursive: true})

log.push(['src', srcimgs])
log.push(['dst', dstimgs])
})
Expand Down Expand Up @@ -328,7 +328,7 @@ for (const version of RUN.versions) {
RUN.srcmd.content = rewriteRemoteVideoLinks(RUN.srcmd.content)

// rewrite relative .md link paths to compensate Hugo-gen'd pretty path
RUN.srcmd.content = RUN.srcmd.content.replaceAll('](./', '](../')
RUN.srcmd.content = RUN.srcmd.content.replaceAll('](../', '](../../').replaceAll('](./', '](../')

RUN.srcmd.content = rewriteNumberedFileLinks(RUN.srcmd.content)

Expand Down Expand Up @@ -389,7 +389,7 @@ for (const version of RUN.versions) {
const idxContent = [idxFront, idxBody].join("\n")
await fs.writeFile(idxMd, idxContent, { encoding: 'utf8' })

log.push(['dst', idxMd])
log.push(['dst', idxMd])
})

}
Expand Down

0 comments on commit f943fbb

Please sign in to comment.