aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output/html.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-06-20 15:12:56 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit0905fae7c1ba93b70cb10ad77b6a24dbbc2c5082 (patch)
treee3900bf2ee8adba9eb6f1ac4bcd14f473f4dfc18 /src/sdp/output/html.d
parenthtml seg, work on subtoc & on nav pre-next (diff)
top banner with previous next navigation bar with svg buttons
Diffstat (limited to 'src/sdp/output/html.d')
-rw-r--r--src/sdp/output/html.d20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/sdp/output/html.d b/src/sdp/output/html.d
index f620498..b12be65 100644
--- a/src/sdp/output/html.d
+++ b/src/sdp/output/html.d
@@ -12,7 +12,6 @@ template outputHTML() {
sdp.output.xmls,
sdp.output.xmls_css;
mixin outputXHTMLs;
-
void scroll(D,I)(
auto return ref const D doc_abstraction,
auto return ref I doc_matters,
@@ -51,8 +50,7 @@ template outputHTML() {
break;
}
break;
- case "body": // assert(part == "body");
- assert(part == "body" || "head"); // surprise
+ case "body": assert(part == "body" || "head"); // surprise
switch (obj.is_of) {
case "para":
switch (obj.is_a) {
@@ -154,7 +152,7 @@ template outputHTML() {
}
}
}
- doc = xhtml_format.html_scroll_head(doc_matters) ~ doc_html ~ xhtml_format.tail;
+ doc = xhtml_format.html_head(doc_matters, "scroll") ~ doc_html ~ xhtml_format.tail;
scroll_write_output(doc_matters, doc);
}
void scroll_write_output(M,C)(
@@ -166,7 +164,6 @@ template outputHTML() {
}
string fn_src = doc_matters.source_filename;
auto src_path_info = doc_matters.src_path_info;
- string fn_rel_pth = doc_matters.source_filename;
string lng = doc_matters.language;
auto pth_html = SiSUpathsHTML!()(src_path_info, lng);
try {
@@ -181,6 +178,7 @@ template outputHTML() {
catch (ErrnoException ex) {
// Handle error
}
+ writeln(" ", doc_matters.environment["pwd"], "/", pth_html.fn_scroll(fn_src));
}
void seg(D,I)(
auto return ref const D doc_abstraction,
@@ -194,6 +192,8 @@ template outputHTML() {
string[] doc;
string segment_filename;
string[] top_level_headings = ["","","",""];
+ string _bottom_bar ="";
+ string previous_seg_filename = "";
string suffix = ".html";
foreach (part; doc_matters.keys_seq.seg) {
foreach (obj; doc_abstraction[part]) {
@@ -230,14 +230,18 @@ template outputHTML() {
break;
case 4:
segment_filename = obj.segment_anchor_tag;
- doc_html[segment_filename] ~= xhtml_format.html_seg_head(doc_matters);
+ doc_html[segment_filename] ~= xhtml_format.html_head(doc_matters, "seg");
+ doc_html_endnotes[previous_seg_filename] ~= _bottom_bar; // places after segment text and endnotes
+ auto navigation_bar = xhtml_format.nav_pre_next_svg(obj);
+ doc_html[segment_filename] ~= navigation_bar.toc_pre_next;
+ _bottom_bar = navigation_bar.toc_pre_next;
+ previous_seg_filename = segment_filename;
foreach (top_level_heading; top_level_headings) {
// writeln(top_level_heading);
doc_html[segment_filename] ~= top_level_heading;
}
auto t = xhtml_format.heading_seg(obj, _txt, suffix);
doc_html[segment_filename] ~= to!string(t[0]);
- doc_html[segment_filename] ~= xhtml_format.nav_pre_next_table(obj);
doc_html[segment_filename] ~= xhtml_format.lev4_heading_subtoc(obj);
doc_html_endnotes[segment_filename] ~= t[1];
break;
@@ -411,7 +415,6 @@ template outputHTML() {
mixin SiSUoutputRgxInit;
auto rgx = Rgx();
auto src_path_info = doc_matters.src_path_info;
- string fn_rel_pth = doc_matters.source_filename;
string lng = doc_matters.language;
auto pth_html = SiSUpathsHTML!()(src_path_info, lng);
auto xhtml_format = outputXHTMLs();
@@ -434,6 +437,7 @@ template outputHTML() {
catch (ErrnoException ex) {
// handle error
}
+ writeln(" ", doc_matters.environment["pwd"], "/", pth_html.fn_seg(doc_matters.source_filename, "toc"));
}
void css(M)(
auto return ref M doc_matters,