change toc filenames to index.html
This commit is contained in:
@@ -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}`)
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user