aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/meta/metadoc_harvests_authors.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-06-23 14:01:43 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-10-17 19:07:20 -0400
commitd542315e97260128706af55652964f18e9fdc4bb (patch)
treecfa3a68fa463eaf433fb562fd69a1a0b968e0b4e /src/doc_reform/meta/metadoc_harvests_authors.d
parentharvest reorganized (diff)
harvests reorganized; adjustments: output, pathsdoc-reform_v0.7.3
Diffstat (limited to 'src/doc_reform/meta/metadoc_harvests_authors.d')
-rw-r--r--src/doc_reform/meta/metadoc_harvests_authors.d143
1 files changed, 112 insertions, 31 deletions
diff --git a/src/doc_reform/meta/metadoc_harvests_authors.d b/src/doc_reform/meta/metadoc_harvests_authors.d
index d780221..950d1ff 100644
--- a/src/doc_reform/meta/metadoc_harvests_authors.d
+++ b/src/doc_reform/meta/metadoc_harvests_authors.d
@@ -19,21 +19,33 @@ template DocReformMetaDocHarvestsAuthors() {
H harvests,
O _opt_action,
) {
- string[] authors = [];
- authors ~= format(q"┃
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset="utf-8">
-<title>Metadata Harvest - Authors</title>
-<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
-<meta name="dc.title" content= "metadata harvest, Authors & Topics - information Structuring Universe, Structured information Serialised Units" />
-<meta name="dc.subject" content= "document structuring, ebook, publishing, PDF, LaTeX, XML, ODF, SQL, postgresql, sqlite, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, granular search, digital library" />
-<meta name="generator" content="doc_reform" />
-<link rel="generator" href="http://sisudoc.org" />
-<link href="../../_sisu/css/harvest.css" rel="stylesheet">
-<style TYPE="text/css">
-/* DocReform harvest css default stylesheet */
+string theme_dark_0 = format(q"┃
+ body {
+ color: #CCCCCC;
+ background: #000000;
+ background-color: #000000;
+ }
+ a:link {
+ color: #FFFFFF;
+ text-decoration: none;
+ }
+ a:visited {
+ color: #999999;
+ text-decoration: none;
+ }
+ a:hover {
+ color: #000000;
+ background-color: #555555;
+ }
+ a:hover img {
+ background-color: #000000;
+ }
+ a:active {
+ color: #888888;
+ text-decoration: underline;
+ }
+┃");
+string theme_light_0 = format(q"┃
body {
color: black;
background: #ffffff;
@@ -58,7 +70,80 @@ template DocReformMetaDocHarvestsAuthors() {
color: #003399;
text-decoration: underline;
}
-
+┃");
+string theme_dark_1 = format(q"┃
+ h1 {
+ color: white;
+ background: #000000;
+ }
+ p.letter {
+ color: white;
+ background: #333333;
+ }
+ p.lev0 {
+ color: white;
+ background: #000000;
+ }
+ p.lev1 {
+ color: white;
+ background: #333333;
+ }
+ p.lev2 {
+ background: #555555;
+ }
+ p.lev3 {
+ background: #777777;
+ }
+ p.lev4 {
+ background: #aaaaaa;
+ }
+ p.lev5 {
+ }
+┃");
+string theme_light_1 = format(q"┃
+ h1 {
+ color: white;
+ background: #000088;
+ }
+ p.letter {
+ color: white;
+ background: #880000;
+ }
+ p.lev0 {
+ color: white;
+ background: #000000;
+ }
+ p.lev1 {
+ color: white;
+ background: #444444;
+ }
+ p.lev2 {
+ background: #888888;
+ }
+ p.lev3 {
+ background: #bbbbbb;
+ }
+ p.lev4 {
+ background: #eeeeee;
+ }
+ p.lev5 {
+ }
+┃");
+ string[] authors = [];
+ authors ~= format(q"┃
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>Metadata Harvest - Authors</title>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<meta name="dc.title" content= "metadata harvest, Authors & Topics - information Structuring Universe, Structured information Serialised Units" />
+<meta name="dc.subject" content= "document structuring, ebook, publishing, PDF, LaTeX, XML, ODF, SQL, postgresql, sqlite, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, granular search, digital library" />
+<meta name="generator" content="doc_reform" />
+<link rel="generator" href="http://sisudoc.org" />
+<link href="../../_sisu/css/harvest.css" rel="stylesheet">
+<style TYPE="text/css">
+/* DocReform harvest css default stylesheet */%s
.norm, .bold {
line-height: 150%%;
margin-left: 1em;
@@ -81,6 +166,7 @@ template DocReformMetaDocHarvestsAuthors() {
margin-right: 6px;
text-align: left;
}
+ h0, h1, h2, h3, h4, h5, h6, h7 { text-shadow: .2em .2em .3em #999999; }
h1 {
font-size: 120%%;
font-weight: bold;
@@ -120,41 +206,31 @@ template DocReformMetaDocHarvestsAuthors() {
margin-bottom: 0px;
margin-right: 6px;
text-align: left;
- color: white;
- background: #880000;
}
p.lev0 {
font-size: 120%%;
margin-left: 1em;
- color: white;
- background: #000000;
}
-
p.lev1 {
font-size: 110%%;
margin-left: 2em;
- color: white;
- background: #444444;
}
p.lev2 {
font-size: 100%%;
margin-left: 3em;
- background: #888888;
}
p.lev3 {
font-size: 90%%;
margin-left: 4em;
- background: #bbbbbb;
}
p.lev4 {
font-size: 80%%;
margin-left: 5em;
- background: #eeeeee;
}
p.lev5 {
font-size: 80%%;
margin-left: 6em;
- }
+ }%s
</style>
<link rel="shortcut icon" href="../_sisu/image/rb7.ico" />
</head>
@@ -169,7 +245,10 @@ template DocReformMetaDocHarvestsAuthors() {
<p class="tiny"><a href="../../en/manifest/authors.html">English</a>&nbsp;&nbsp;&nbsp;</p>
<hr />
<p><a href="#A">A</a>,&nbsp;<a href="#B">B</a>,&nbsp;<a href="#C">C</a>,&nbsp;<a href="#D">D</a>,&nbsp;<a href="#E">E</a>,&nbsp;<a href="#F">F</a>,&nbsp;<a href="#G">G</a>,&nbsp;<a href="#H">H</a>,&nbsp;<a href="#I">I</a>,&nbsp;<a href="#J">J</a>,&nbsp;<a href="#K">K</a>,&nbsp;<a href="#L">L</a>,&nbsp;<a href="#M">M</a>,&nbsp;<a href="#N">N</a>,&nbsp;<a href="#O">O</a>,&nbsp;<a href="#P">P</a>,&nbsp;<a href="#Q">Q</a>,&nbsp;<a href="#R">R</a>,&nbsp;<a href="#S">S</a>,&nbsp;<a href="#T">T</a>,&nbsp;<a href="#U">U</a>,&nbsp;<a href="#V">V</a>,&nbsp;<a href="#W">W</a>,&nbsp;<a href="#X">X</a>,&nbsp;<a href="#Y">Y</a>,&nbsp;<a href="#Z">Z</a>,&nbsp;
-┃") ~ "\n";
+┃",
+ _opt_action.css_theme_default ? theme_light_0 : theme_dark_0,
+ _opt_action.css_theme_default ? theme_light_1 : theme_dark_1,
+) ~ "\n";
string[string] _au;
string[] _auth_date_title;
string[] _author_date_title;
@@ -191,7 +270,7 @@ template DocReformMetaDocHarvestsAuthors() {
doc_harvest.author_surname_fn,
(doc_harvest.date_published.length > 0)
? doc_harvest.date_published : "",
- "url",
+ doc_harvest.path_html_segtoc,
doc_harvest.title,
doc_harvest.language,
);
@@ -201,7 +280,7 @@ template DocReformMetaDocHarvestsAuthors() {
~= format(q"┃<p class="publication">%s "<a href="%s">%s</a>" [%s]</p>┃",
(doc_harvest.date_published.length > 0)
? doc_harvest.date_published : "",
- "url",
+ doc_harvest.path_html_segtoc,
doc_harvest.title,
doc_harvest.language,
);
@@ -236,8 +315,10 @@ template DocReformMetaDocHarvestsAuthors() {
</body>
</html>
┃") ~ "\n";
+ import doc_reform.output.paths_output;
+ auto out_pth = DocReformPathsHTML!()(_opt_action.output_dir_set, "");
try {
- auto f = File("authors.html", "w");
+ auto f = File(out_pth.harvest("authors.html"), "w");
foreach (o; authors) {
f.writeln(o);
}