aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/html.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2023-06-24 19:51:00 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2023-06-27 17:12:25 -0400
commit3434b91d73562686f35796ccfa7553df7b4307b5 (patch)
tree7748aff77df01520de7af70f87c47528cd5ed6c1 /src/doc_reform/io_out/html.d
parentocda, fontface internal markup, cleanup & fixes (diff)
html, bespoke homepage, symlink toc.html index.html
- html, bespoke homepage option - html, symlinks toc.html index.html
Diffstat (limited to 'src/doc_reform/io_out/html.d')
-rw-r--r--src/doc_reform/io_out/html.d3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/doc_reform/io_out/html.d b/src/doc_reform/io_out/html.d
index 0cbf61e..29f7f4e 100644
--- a/src/doc_reform/io_out/html.d
+++ b/src/doc_reform/io_out/html.d
@@ -533,6 +533,9 @@ template outputHTML() {
}
f.writeln(xhtml_format.tail(doc_matters));
}
+ if (!exists(pth_html.fn_seg(doc_matters.src.filename, "index"))) {
+ symlink("./toc.html", (pth_html.fn_seg(doc_matters.src.filename, "index")));
+ }
} catch (ErrnoException ex) {
// handle error
}