mirror of
https://github.com/pezkuwichain/pezkuwi-fellows.git
synced 2026-04-21 23:47:56 +00:00
Handle filenames with whitespaces in the RFC book (#115)
With a recent PR that has spaces in the RFC filename, the RFC book generation script started failing - this fixes it.
This commit is contained in:
@@ -26,7 +26,9 @@ module.exports = async ({github, context}) => {
|
||||
}
|
||||
// Relative path, without the src prefix (format required by mdbook)
|
||||
const relativePath = filePath.replace("mdbook/src/", "")
|
||||
fs.appendFileSync(summaryPath, `- [${title}](${relativePath})\n`)
|
||||
// Wrapping the path allows for whitespaces in the filename.
|
||||
const target = `<${relativePath}>`
|
||||
fs.appendFileSync(summaryPath, `- [${title}](${target})\n`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user