noxz-sites

A collection of a builder and various scripts creating the noxz.tech sites
git clone https://noxz.tech/git/noxz-sites.git
Log | Files | README | LICENSE

commit: b03039c0be7069b2a054685f799e28338c2deebc
parent: 8abb7d3a5fe6dd1effefd409caf2afff1d90c701
author: Chris Noxz <chris@noxz.tech>
date:   Sat, 28 Mar 2020 18:05:18 +0100
add source link in header
Mconfig.def.h48+--
Mnoxz.tech/pub/style.css352++++++++++----------
2 files changed, 203 insertions(+), 197 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -2,31 +2,31 @@
 #define SUB_TITLE   "- Chris Noxz"
 
 char *html_head =
-    "<head>\n"
-    "   <meta charset=\"utf-8\">\n"
-    "   <meta name=\"author\" content=\"Chris Noxz\">\n"
-    "   <meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\"/>\n"
-    "   <meta http-equiv=\"Pragma\" content=\"no-cache\"/>\n"
-    "   <meta http-equiv=\"Expires\" content=\"0\"/>\n"
-    "   <title>%s | %s %s</title>\n"
-    //"   <link rel=\"icon\" type=\"image/svg+xml\" href=\"/pub/logo.svg\" />\n"
-    "   <link rel=\"icon\" type=\"image/png\" href=\"/pub/logo.png\" />\n"
-    "   <link rel=\"stylesheet\" type=\"text/css\" href=\"//noxz.tech/pub/style.css\">\n"
-    "   <link rel=\"alternate\" type=\"application/rss+xml\" title=\"Subscribe\" href=\"//noxz.tech/pub/feed.rss\">\n"
-    "</head>\n";
+	"<head>\n"
+	"   <meta charset=\"utf-8\">\n"
+	"   <meta name=\"author\" content=\"Chris Noxz\">\n"
+	"   <meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\"/>\n"
+	"   <meta http-equiv=\"Pragma\" content=\"no-cache\"/>\n"
+	"   <meta http-equiv=\"Expires\" content=\"0\"/>\n"
+	"   <title>%s | %s %s</title>\n"
+	"   <link rel=\"icon\" type=\"image/png\" href=\"/pub/logo.png\" />\n"
+	"   <link rel=\"stylesheet\" type=\"text/css\" href=\"//noxz.tech/pub/style.css\">\n"
+	"   <link rel=\"alternate\" type=\"application/rss+xml\" title=\"Subscribe\" href=\"//noxz.tech/pub/feed.rss\">\n"
+	"</head>\n";
 
 char *html_header =
-    "<div id=\"header\">\n"
-    "   <a id=\"header-logo\"href=\"//noxz.tech/\"><img src=\"//noxz.tech/pub/logo.svg\"/></a>\n"
-    "   <a id=\"header-link\" href=\"//noxz.tech/\">%s</a>\n"
-    "   <span id=\"header-subtitle\">%s</span>\n"
-    "</div>\n";
+	"<div id=\"header\">\n"
+	"   <a id=\"header-logo\"href=\"//noxz.tech/\"><img src=\"//noxz.tech/pub/logo.svg\"/></a>\n"
+	"   <a id=\"header-link\" href=\"//noxz.tech/\">%s</a>\n"
+	"   <span id=\"header-subtitle\">%s</span>\n"
+	"   <a id=\"header-source\" href=\"//git.noxz.tech\">source</a>"
+	"</div>\n";
 
 char *html_footer =
-    "<div id=\"footer\">\n"
-    "   <span class=\"right\">\n"
-    "      Copyright &copy; 2006-%s Chris Noxz"
-    "      | <a href=\"//noxz.tech/about/copying-policy\">copying policy</a>\n"
-    "      | <a href=\"//git.noxz.tech\">source</a>\n"
-    "   </span>\n"
-    "</div>\n";
+	"<div id=\"footer\">\n"
+	"   <span class=\"right\">\n"
+	"      Copyright &copy; 2006-%s Chris Noxz"
+	"      | <a href=\"//noxz.tech/about/copying-policy\">copying policy</a>\n"
+	"      | <a href=\"//git.noxz.tech\">source</a>\n"
+	"   </span>\n"
+	"</div>\n";
diff --git a/noxz.tech/pub/style.css b/noxz.tech/pub/style.css
@@ -1,139 +1,145 @@
 body {
-    background-color: #eee;
-    color           : #222;
-    font-family     : monospace, sans-serif;
-    font-size       : 1em;
-    line-height     : 2em;
-    padding         : 0;
-    margin          : 0;
+	background-color: #eee;
+	color           : #222;
+	font-family     : monospace, sans-serif;
+	font-size       : 1em;
+	line-height     : 2em;
+	padding         : 0;
+	margin          : 0;
 }
 
 a {
-    color           : #005386;
-    text-decoration : none;
+	color           : #005386;
+	text-decoration : none;
 }
 
 a:hover {
-    text-decoration : underline;
+	text-decoration : underline;
 }
 
 #header {
-    clear           : both;
-    color           : #ffffff;
-    font-size       : 1.35em;
-    border-bottom   : solid 2px #526587;
-    background      : #333a56;
-    height          : 2.75em;
-    font-size       : 1.3em;
-    line-height     : 2.75em;
-    padding         : 0 1.35ex;
+	clear           : both;
+	color           : #ffffff;
+	font-size       : 1.35em;
+	border-bottom   : solid 2px #526587;
+	background      : #333a56;
+	height          : 2.75em;
+	font-size       : 1.3em;
+	line-height     : 2.75em;
+	padding         : 0 1.35ex;
 }
 
 #header-logo img {
-    vertical-align  : middle;
-    margin-right    : 0.5em;
+	vertical-align  : middle;
+	margin-right    : 0.5em;
 }
 
 #header-subtitle {
-    color           : #cacaca;
-    display         : inline-block;
-    font-size       : 0.75em;
-    font-style      : italic;
+	color           : #cacaca;
+	display         : inline-block;
+	font-size       : 0.75em;
+	font-style      : italic;
 }
 
 #header-link,
 #header-link:hover,
 #header-logo:hover {
-    color           : inherit;
-    background-color: inherit;
-    text-decoration : none;
+	color           : inherit;
+	background-color: inherit;
+	text-decoration : none;
+}
+
+#header-source {
+	color           : inherit;
+	font-size       : 0.75em;
+	float           : right;
 }
 
 h1 {
-    border-bottom   : 1px solid #cacaca;
-    margin          : 1em 0 1em 0;
-    padding         : 0 0 0.75em 0;
-    font-size       : 1.4em;
+	border-bottom   : 1px solid #cacaca;
+	margin          : 1em 0 1em 0;
+	padding         : 0 0 0.75em 0;
+	font-size       : 1.4em;
 }
 
 h2 {
-    margin          : 1em 0 0.5ex 0;
-    font-size       : 1.3em;
+	margin          : 1em 0 0.5ex 0;
+	font-size       : 1.3em;
 }
 
 h3 {
-    margin          : 1em 0 0.5ex 0;
-    font-size       : 1.0em;
+	margin          : 1em 0 0.5ex 0;
+	font-size       : 1.0em;
 }
 
 h4 {
-    margin          : 1em 0 0.5ex 0;
-    font-size       : 0.9em;
+	margin          : 1em 0 0.5ex 0;
+	font-size       : 0.9em;
 }
 
 p, li {
-    color           : #444;
-    /*line-height     : 2em;*/
+	color           : #444;
+	/*line-height     : 2em;*/
 }
 
 code {
-    font-family     : monospace;
-    background-color: #efefef;
-    padding         : 0.3em;
+	font-family     : monospace;
+	background-color: #efefef;
+	padding         : 0.3em;
 }
 
 pre {
-    font-family     : monospace;
-    font-size       : 1em;
-    /*line-height     : 2em;*/
-    background-color: #efefef;
-    padding         : 1em;
-    overflow        : auto;
+	font-family     : monospace;
+	font-size       : 1em;
+	/*line-height     : 2em;*/
+	background-color: #efefef;
+	padding         : 1em;
+	overflow        : auto;
 }
 
 pre code {
-    background-color: none;
-    padding         : 0;
+	background-color: none;
+	padding         : 0;
 }
 
 #content {
-    clear           : both;
-    margin          : 0;
-    padding         : 0;
-    background-color: #ffffff;
-    overflow        : hidden;
+	clear           : both;
+	margin          : 0;
+	padding         : 0;
+	background-color: #ffffff;
+	overflow        : hidden;
 }
 
 #nav {
-    background-color: #ffffff;
-    float           : left;
-    margin          : 0 1px 0 0;
-    padding         : 1em 0;
-    line-height     : 1.5em;
-    border-right    : 1px dotted #ccc;
-    width           : 200px;
+	background-color: #ffffff;
+	float           : left;
+	margin          : 0 1px 0 0;
+	padding         : 1em 0;
+	line-height     : 1.5em;
+	border-right    : 1px dotted #ccc;
+	width           : 200px;
 }
 
 #nav ul {
-    margin          : 0;
-    padding         : 0;
+	margin          : 0;
+	padding         : 0;
 }
 
 #nav li {
-    list-style      : none;
-    padding         : 0;
-    margin          : 0;
+	list-style      : none;
+	padding         : 0;
+	margin          : 0;
 }
 
 #nav li>a:before {
-    content         : "\203A";
-    display         : inline-block;
-    margin-left     : -1em;
-    width           : 1em;
+	content         : "\203A";
+	display         : inline-block;
+	margin-left     : -1em;
+	width           : 1em;
 }
 
 #nav li.active>a:before {
-    content         : "\00BB";
+	content         : "\00BB";
 }
 
 #nav li ul {
@@ -141,153 +147,153 @@ pre code {
 }
 
 #nav li a {
-    display         : block;
-    margin          : 0;
-    padding         : 0.8ex 2em 0.8ex 2em;
-    line-height     : 3ex;
+	display         : block;
+	margin          : 0;
+	padding         : 0.8ex 2em 0.8ex 2em;
+	line-height     : 3ex;
 }
 
 #nav li a:hover {
-    background-color: #eee;
-    text-decoration : none;
+	background-color: #eee;
+	text-decoration : none;
 }
 
 #nav li.active>a {
-    color           : #222;
-    font-weight     : bold;
+	color           : #222;
+	font-weight     : bold;
 }
 
 #main {
-    margin          : 0 0 0 200px;
-    padding         : 1.5em;
-    max-width       : 50em;
+	margin          : 0 0 0 200px;
+	padding         : 1.5em;
+	max-width       : 50em;
 }
 
 #footer {
-    clear           : both;
-    color           : #666;
-    border-top      : 1px solid #ccc;
-    font-size       : 84%;
-    padding         : 1em;
-    margin          : 0 0 1.5em 0;
+	clear           : both;
+	color           : #666;
+	border-top      : 1px solid #ccc;
+	font-size       : 84%;
+	padding         : 1em;
+	margin          : 0 0 1.5em 0;
 }
 
 .left {
-    float           : left;
-    margin          : 0;
-    padding         : 0;
+	float           : left;
+	margin          : 0;
+	padding         : 0;
 }
 
 .right {
-    float           : right;
-    margin          : 0;
-    padding         : 0;
+	float           : right;
+	margin          : 0;
+	padding         : 0;
 }
 
 .definition {
-    padding-left    : 2em;
+	padding-left    : 2em;
 }
 
 .definition>p:first-child {
-    text-indent     : -2em;
+	text-indent     : -2em;
 }
 
 .reference {
-    padding-left    : 2em;
-    text-indent     : -2em;
+	padding-left    : 2em;
+	text-indent     : -2em;
 }
 
 .center {
-    text-align      : center;
+	text-align      : center;
 }
 
 .spoiler {
-    color           : #000;
-    background      : #000;
-    cursor          : pointer;
+	color           : #000;
+	background      : #000;
+	cursor          : pointer;
 }
 
 .spoiler:active {
-    color           : inherit;
-    background      : inherit;
+	color           : inherit;
+	background      : inherit;
 }
 
 .article {
-    margin-top      : 3em;
+	margin-top      : 3em;
 }
 
 .article:first-child {
-    margin-top      : 0;
+	margin-top      : 0;
 }
 
 .article h1 {
-    margin-bottom   : 0;
+	margin-bottom   : 0;
 }
 
 .article .article-date {
-    font-size       : 84%;
+	font-size       : 84%;
 }
 
 a.rss,a.twtxt {
-    display         : block;
-    background      : none no-repeat 0.9em center;
-    padding         : 0.8ex 0 0.8ex 2.2em !important;
-    margin          : 0;
+	display         : block;
+	background      : none no-repeat 0.9em center;
+	padding         : 0.8ex 0 0.8ex 2.2em !important;
+	margin          : 0;
 }
 
 a.rss {
-    background-image: url("/pub/rss.svg");
+	background-image: url("/pub/rss.svg");
 }
 
 a.twtxt {
-    background-image: url("/pub/twtxt.svg");
+	background-image: url("/pub/twtxt.svg");
 }
 
 ul.repo-log {
-    list-style-type : none;
-    margin          : 0;
-    padding         : 0;
-    line-height     : 1.5em;
+	list-style-type : none;
+	margin          : 0;
+	padding         : 0;
+	line-height     : 1.5em;
 }
 
 ul.repo-log li {
-    font-family     : monospace;
-    font-size       : 84%;
+	font-family     : monospace;
+	font-size       : 84%;
 }
 
 ul.repo-log li .log-date {
-    font-weight     : bold;
-    padding-right   : 1em;
+	font-weight     : bold;
+	padding-right   : 1em;
 }
 
 /* table of contents */
 .toc {
-    background-color: #f3f1f9;
-    padding         : 0.5em 2em 2em;
-    overflow        : auto;
+	background-color: #f3f1f9;
+	padding         : 0.5em 2em 2em;
+	overflow        : auto;
 }
 
 .toc .toc-title {
-    font-weight     : 700;
+	font-weight     : 700;
 }
 
 .toc>ul,
 .toc>ul ul {
-    list-style-type : none;
-    list-style      : none;
-    margin          : 0;
-    padding         : 0;
+	list-style-type : none;
+	list-style      : none;
+	margin          : 0;
+	padding         : 0;
 }
 
 .toc>ul ul {
-    padding-left    : 1.5em;
+	padding-left    : 1.5em;
 }
 
 .toc li {
-    list-style-type : none;
-    list-style      : none;
-    margin          : 0;
-    padding         : 0;
+	list-style-type : none;
+	list-style      : none;
+	margin          : 0;
+	padding         : 0;
 }
 
 
@@ -296,50 +302,50 @@ ul.repo-log li .log-date {
 }
 
 .math.block {
-    display         : inline-block;
-    margin-left     : 2em;
+	display         : inline-block;
+	margin-left     : 2em;
 }
 
 .math .break:before {
-    content         : '\A';
-    white-space     : pre-line;
+	content         : '\A';
+	white-space     : pre-line;
 }
 
 .math.theorem {
-    padding         : 1em 1.5em;
-    border          : 1px double #000;
-    outline         : 2px solid #000;
-    outline-offset  : -4px;
+	padding         : 1em 1.5em;
+	border          : 1px double #000;
+	outline         : 2px solid #000;
+	outline-offset  : -4px;
 }
 
 .math .hi,
 .math .hi * {
-    border-color    : #e667af !important;
-    color           : #e667af !important;
+	border-color    : #e667af !important;
+	color           : #e667af !important;
 }
 
 .math .hidden {
-    visibility      : hidden;
+	visibility      : hidden;
 }
 
 .math .variable {
-    font-style      : italic;
-    padding         : 0;
+	font-style      : italic;
+	padding         : 0;
 }
 
 .math .expression {
-    padding         : 0;
+	padding         : 0;
 }
 
 .math .operator {
-    font-family     : "Latin Modern Math", "STIX Two Math", "XITS Math",
-                      "STIX Math", "Libertinus Math", "TeX Gyre Termes Math",
-                      "TeX Gyre Bonum Math", "TeX Gyre Schola",
-                      "DejaVu Math TeX Gyre", "TeX Gyre Pagella Math",
-                      "Asana Math", "Cambria Math", "Lucida Bright Math",
-                      "Minion Math", STIXGeneral, STIXSizeOneSym, Symbol,
-                      "Times New Roman", serif;
-    padding         : 0 0.35em;
+	font-family     : "Latin Modern Math", "STIX Two Math", "XITS Math",
+	                  "STIX Math", "Libertinus Math", "TeX Gyre Termes Math",
+	                  "TeX Gyre Bonum Math", "TeX Gyre Schola",
+	                  "DejaVu Math TeX Gyre", "TeX Gyre Pagella Math",
+	                  "Asana Math", "Cambria Math", "Lucida Bright Math",
+	                  "Minion Math", STIXGeneral, STIXSizeOneSym, Symbol,
+	                  "Times New Roman", serif;
+	padding         : 0 0.35em;
 }
 
 /*
@@ -347,40 +353,40 @@ ul.repo-log li .log-date {
 .math.block .expression,
 .math.block .expression>*,
 .math.block .variable {
-    vertical-align  : middle;
+	vertical-align  : middle;
 }
 */
 
 .math .fenced {
-    padding         : 0 0.4em;
-    margin          : 0 0.2em;
+	padding         : 0 0.4em;
+	margin          : 0 0.2em;
 }
 
 .math .fenced :first-child,
 .math .fenced :last-child {
-    display         : none;
+	display         : none;
 }
 
 .math .fenced.parenthesis {
-    border-radius   : 0.3em;
-    border          : 0.1em solid #444;
-    border-top      : none;
-    border-bottom   : none;
+	border-radius   : 0.3em;
+	border          : 0.1em solid #444;
+	border-top      : none;
+	border-bottom   : none;
 }
 
 .math .fraction,
 .math .fraction>span:first-child,
 .math .fraction>span:last-child {
-    padding         : 0 0.1em;
-    vertical-align  : middle;
+	padding         : 0 0.1em;
+	vertical-align  : middle;
 }
 
 .math .fraction {
-    display         : inline-block;
-    text-align      : center;
+	display         : inline-block;
+	text-align      : center;
 }
 
 .math .fraction>span:last-child {
-    display         : block;
-    border-top      : 0.1em solid #444;
+	display         : block;
+	border-top      : 0.1em solid #444;
 }