From 3434b91d73562686f35796ccfa7553df7b4307b5 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 24 Jun 2023 19:51:00 -0400 Subject: html, bespoke homepage, symlink toc.html index.html - html, bespoke homepage option - html, symlinks toc.html index.html --- src/doc_reform/io_out/html.d | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/doc_reform/io_out/html.d') 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 } -- cgit v1.2.3