1
0
mirror of synced 2025-12-21 10:57:10 -05:00

change toc filenames to index.html

This commit is contained in:
Sarah Schneider
2022-08-10 15:26:13 -04:00
parent 70e40a58d8
commit db6f3c8890
2 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ async function main() {
if (!fs.existsSync(versionStaticDir)) fs.mkdirSync(versionStaticDir)
// Create a versioned filename.
const filename = path.posix.join(versionStaticDir, 'dev-toc.html')
const filename = path.posix.join(versionStaticDir, 'index.html')
// Create a minimal context object.
await contextualize(req, res, next)
@@ -46,7 +46,7 @@ async function main() {
}
// Default to FPT for the file to open.
const fptFile = path.posix.join(staticDirName, fpt, 'dev-toc.html')
const fptFile = path.posix.join(staticDirName, fpt, 'index.html')
execSync(`open ${fptFile}`)