aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/latex.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2023-06-26 20:21:33 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2023-06-27 17:12:48 -0400
commit1ff7f2970b85accb417af0ea5dd350e0ae746dc6 (patch)
tree40f66349f5993d373bd77f19042a8782b4f6bcdf /src/doc_reform/io_out/latex.d
parenthtml links and metadata, fixes & cosmetic work (diff)
"empty page" index.html, sort homepage link
Diffstat (limited to 'src/doc_reform/io_out/latex.d')
-rw-r--r--src/doc_reform/io_out/latex.d50
1 files changed, 29 insertions, 21 deletions
diff --git a/src/doc_reform/io_out/latex.d b/src/doc_reform/io_out/latex.d
index b09eec8..6574ec7 100644
--- a/src/doc_reform/io_out/latex.d
+++ b/src/doc_reform/io_out/latex.d
@@ -1368,7 +1368,35 @@ template outputLaTeX() {
auto f = File(pth_latex.latex_path_stuff ~"/index.html", "w");
f.writeln(format_html_blank_page_guide_home(
"../../css/html_scroll.css",
- "https://sisudoc.org",
+ (doc_matters.opt.action.webserver_url_doc_root.length > 0)
+ ? doc_matters.opt.action.webserver_url_doc_root
+ : doc_matters.conf_make_meta.conf.w_srv_data_root_url
+ ,
+ "../../index.html",
+ ));
+ }
+ // should be in latex init and done just once, doc_matters not passed there though
+ if (!exists(pth_latex.base ~ "/index.html")) {
+ import doc_reform.io_out.html_snippet;
+ mixin htmlSnippet;
+ auto f = File(pth_latex.base ~"/index.html", "w");
+ f.writeln(format_html_blank_page_guide_home(
+ "../css/html_scroll.css",
+ (doc_matters.opt.action.webserver_url_doc_root.length > 0)
+ ? doc_matters.opt.action.webserver_url_doc_root
+ : doc_matters.conf_make_meta.conf.w_srv_data_root_url,
+ "../index.html",
+ ));
+ }
+ if (!exists(pth_latex.base_sty ~ "/index.html")) {
+ import doc_reform.io_out.html_snippet;
+ mixin htmlSnippet;
+ auto f = File(pth_latex.base_sty ~"/index.html", "w");
+ f.writeln(format_html_blank_page_guide_home(
+ "../../css/html_scroll.css",
+ (doc_matters.opt.action.webserver_url_doc_root.length > 0)
+ ? doc_matters.opt.action.webserver_url_doc_root
+ : doc_matters.conf_make_meta.conf.w_srv_data_root_url,
"../../index.html",
));
}
@@ -1415,26 +1443,6 @@ template outputLaTeXstyInit() {
auto f = File(pth_latex.latex_document_header_sty(filename), "w");
f.writeln(latex_sty);
}
- if (!exists(pth_latex.base ~ "/index.html")) {
- import doc_reform.io_out.html_snippet;
- mixin htmlSnippet;
- auto f = File(pth_latex.base ~"/index.html", "w");
- f.writeln(format_html_blank_page_guide_home(
- "../css/html_scroll.css",
- "https://sisudoc.org",
- "../index.html",
- ));
- }
- if (!exists(pth_latex.base_sty ~ "/index.html")) {
- import doc_reform.io_out.html_snippet;
- mixin htmlSnippet;
- auto f = File(pth_latex.base_sty ~"/index.html", "w");
- f.writeln(format_html_blank_page_guide_home(
- "../../css/html_scroll.css",
- "https://sisudoc.org",
- "../../index.html",
- ));
- }
} catch (ErrnoException ex) {
// handle error
}