1
0
mirror of synced 2025-12-21 19:06:49 -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) if (!fs.existsSync(versionStaticDir)) fs.mkdirSync(versionStaticDir)
// Create a versioned filename. // 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. // Create a minimal context object.
await contextualize(req, res, next) await contextualize(req, res, next)
@@ -46,7 +46,7 @@ async function main() {
} }
// Default to FPT for the file to open. // 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}`) execSync(`open ${fptFile}`)

View File

@@ -12,7 +12,7 @@
<h3>Versions</h3> <h3>Versions</h3>
<ul class="versions-list" style="list-style-type:none;"> <ul class="versions-list" style="list-style-type:none;">
{% for version in allVersions %} {% for version in allVersions %}
<li style="margin: 3px 0 0 0;"><a href="../{{ version[0] }}/dev-toc.html">{{ version[1].versionTitle }}</a> <li style="margin: 3px 0 0 0;"><a href="../{{ version[0] }}/index.html">{{ version[1].versionTitle }}</a>
{% endfor %} {% endfor %}
</ul> </ul>