diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2022-02-02 11:38:33 -0500 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2022-02-05 18:25:05 -0500 |
commit | b3ab72df529dab36483285567b1e72acb48187b3 (patch) | |
tree | 41c277e6d39110a66b52b6f466773d4f22264701 /src/doc_reform | |
parent | xmls css, step (diff) |
htmls, banner layout additions
- scroll/seg doc access toggle
- epub link added, later make optional
- search button, minor cosmetic
Diffstat (limited to 'src/doc_reform')
-rw-r--r-- | src/doc_reform/io_out/metadata.d | 12 | ||||
-rw-r--r-- | src/doc_reform/io_out/xmls.d | 11 | ||||
-rw-r--r-- | src/doc_reform/meta/metadoc_curate_authors.d | 2 | ||||
-rw-r--r-- | src/doc_reform/meta/metadoc_curate_topics.d | 2 |
4 files changed, 17 insertions, 10 deletions
diff --git a/src/doc_reform/io_out/metadata.d b/src/doc_reform/io_out/metadata.d index 4dd8476..6eab92e 100644 --- a/src/doc_reform/io_out/metadata.d +++ b/src/doc_reform/io_out/metadata.d @@ -67,7 +67,7 @@ template outputMetadata() { <input type="hidden" name="ec" value="on"> <input type="hidden" name="url" value="on"> <button type="submit" form="search" name="fn" value="%s">doc</button> - <button type="submit" form="search">db</button> + <button type="submit" form="search">※ db</button> </font></form> <!-- SiSU Spine Search --> </div>┃", @@ -352,12 +352,12 @@ string theme_light_1 = format(q"┃ ┃"); metadata_ ~= "<div class=\"flex-menu-bar\"><div class=\"flex-menu-option\">"; if (doc_matters.opt.action.html_curate_link) { - metadata_ ~= format(q"┃<p>[<a href="../../index.html"> HOME </a>] Curated metadata + metadata_ ~= format(q"┃<p>[<a href="../../../index.html"> <b>≅</b> HOME </a>] Curated metadata: [<a href="../../authors.html"> Authors </a>] [<a href="../../topics.html"> Topics </a>]</p> ┃"); } else { - metadata_ ~= format(q"┃<p>[<a href="../../index.html"> HOME </a>] + metadata_ ~= format(q"┃<p>[<a href="../../../index.html"> ≅ <b>HOME</b> </a>] ┃"); } metadata_ ~= "</div>" ~ inline_search_form(doc_matters) ~ "</div><hr />"; @@ -399,11 +399,11 @@ string theme_light_1 = format(q"┃ ~ "[<a href=\"../../" ~ pth_pod.internal_base ~ "/" ~ doc_matters.src.filename_base ~ "/\">" ~ " pod tree </a>]</p>"; metadata_ ~= "<p class=\"lev1\">● outputs: [<a href=\"" ~ doc_matters.src.filename_base ~ ".html\">" - ~ " html scroll </a>] " + ~ " ▣ html scroll </a>] " ~ "[<a href=\"" ~ doc_matters.src.filename_base ~ "/toc.html\">" - ~ " html seg </a>]" + ~ " ▤ html seg </a>]" ~ "[<a href=\"../../" ~ pth_epub.internal_base ~ "/" ~ doc_matters.src.filename_base ~ "." ~ doc_matters.src.language ~ ".epub\">" - ~ " epub </a>]</p>"; + ~ " ◆ epub </a>]</p>"; if (doc_matters.conf_make_meta.meta.classify_topic_register_arr.length > 0) { metadata_ ~= "<hr /><p class=\"lev0\">Topics:</p>"; string[] _top = ["", "", "", "", ""]; diff --git a/src/doc_reform/io_out/xmls.d b/src/doc_reform/io_out/xmls.d index 2524664..66661cf 100644 --- a/src/doc_reform/io_out/xmls.d +++ b/src/doc_reform/io_out/xmls.d @@ -265,7 +265,7 @@ template outputXHTMLs() { <input type="hidden" name="ec" value="on"> <input type="hidden" name="url" value="on"> <button type="submit" form="search" name="fn" value="%s">doc</button> - <button type="submit" form="search">db</button> + <button type="submit" form="search">※ db</button> </font></form> <!-- SiSU Spine Search --> </div>┃", @@ -288,11 +288,18 @@ template outputXHTMLs() { ) { string o; string metadata_links = ((doc_matters.opt.action.html_curate_link) - ? format(q"┃<p class="tiny">[<a href="%s"> ≅ </a>|<a href="%smetadata.%s.html"> m </a>|<a href="%s../../authors.html"> A </a>|<a href="%s../../topics.html"> T </a>]</p>┃", + ? format(q"┃<p class="small">[<a href="%s"> ≅ </a>|<a href="%s"> %s </a>|<a href="%sepub/%s.%s.epub"> ◆ </a>|<a href="%smetadata.%s.html"> m </a>|<a href="%s../../authors.html"> A </a>|<a href="%s../../topics.html"> T </a>]</p>┃", (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 , // HOME index.html equivalent _cfg.www_url_doc_root, + (type == "seg") + ? "../" ~ doc_matters.src.filename_base ~ ".html" + : "./" ~ doc_matters.src.filename_base ~ "/toc.html", + (type == "seg") ? "▣" : "▤", // ■ □ ▢ ▣ ▤ ▥ ▦ ▧ ▨ 〓 + (type == "seg") ? "../../" : "../", + doc_matters.src.filename_base, + doc_matters.src.lng, (type == "seg") ? "../" : "", doc_matters.src.filename_base, (type == "seg") ? "../" : "", diff --git a/src/doc_reform/meta/metadoc_curate_authors.d b/src/doc_reform/meta/metadoc_curate_authors.d index ceb6229..f3c1138 100644 --- a/src/doc_reform/meta/metadoc_curate_authors.d +++ b/src/doc_reform/meta/metadoc_curate_authors.d @@ -84,7 +84,7 @@ template spineMetaDocCuratesAuthors() { <input type="hidden" name="sml" value="1000"> <input type="hidden" name="ec" value="on"> <input type="hidden" name="url" value="on"> - <button type="submit" form="search">db</button> + <button type="submit" form="search">※ db</button> </font></form> <!-- SiSU Spine Search --> </div>┃", diff --git a/src/doc_reform/meta/metadoc_curate_topics.d b/src/doc_reform/meta/metadoc_curate_topics.d index 0f6b74c..a8b0db0 100644 --- a/src/doc_reform/meta/metadoc_curate_topics.d +++ b/src/doc_reform/meta/metadoc_curate_topics.d @@ -84,7 +84,7 @@ template spineMetaDocCuratesTopics() { <input type="hidden" name="sml" value="1000"> <input type="hidden" name="ec" value="on"> <input type="hidden" name="url" value="on"> - <button type="submit" form="search">db</button> + <button type="submit" form="search">※ db</button> </font></form> <!-- SiSU Spine Search --> </div>┃", |