This commit is contained in:
Never 2025-12-10 22:23:15 +01:00
parent db47b232bd
commit a8bf694a75
5 changed files with 21 additions and 21 deletions

View file

@ -1,8 +1,8 @@
template := $(abspath ./pandoc/template.html) template := pandoc/template.html
style := $(abspath ./pandoc/style.css) style := pandoc/style.css
article_list := $(abspath ./articles.json) article_list := articles.json
list_template := $(abspath ./pandoc/meta-json-template.txt) list_template := pandoc/meta-json-template.txt
articles := $(patsubst %.md,%.html,$(wildcard articles/*.md)) articles := $(patsubst %.md,%.html,$(wildcard articles/*.md))
@ -14,13 +14,13 @@ clean:
rm index.html about.html; rm index.html about.html;
$(articles): %.html: %.md $(articles): %.html: %.md
pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $@; \ pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $(notdir $@); \
jq '.articles += [$(shell pandoc $< --template $(list_template))]' $(article_list) > articles.json.tmp; jq '.articles += [$(shell pandoc $< --template $(list_template))]' $(article_list) > articles.json.tmp;
cat ./articles.json.tmp > articles.json; cat ./articles.json.tmp > articles.json;
rm ./articles.json.tmp; rm ./articles.json.tmp;
index.html: index.md $(articles) index.html: index.md $(articles)
pandoc $< --template $(template) --css $(style) --metadata-file $(article_list) --output $@ pandoc $< --template $(template) --css $(style) --metadata-file $(article_list) --highlight-style zenburn --mathml --toc --output $@
about.html: about.md about.html: about.md
pandoc $< --template $(template) --css $(style) --output $@ pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $@

View file

@ -20,9 +20,8 @@
margin: 0 0.8em 0.2em -1.6em; margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle; vertical-align: middle;
} }
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style> </style>
<link rel="stylesheet" href="/home/never/Documents/nevereverever.de/public_html/eh/eh/eh/eh-eh/pandoc/style.css" /> <link rel="stylesheet" href="pandoc/style.css" />
</head> </head>
<body> <body>
<header id="page-header"> <header id="page-header">
@ -41,10 +40,14 @@
<h1 class="title">About</h1> <h1 class="title">About</h1>
</header> </header>
<section id="content"> <section id="content">
<nav id="TOC" role="doc-toc">
<ul>
<li><a href="#stuff" id="toc-stuff">Stuff</a></li>
</ul>
</nav>
<article> <article>
<h2 id="stuff">Stuff</h2> <h2 id="stuff">Stuff</h2>
<p><span class="math display">$$ \sum_{i=1}^k i = \frac{k(k+1)}{2} <p><math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><munderover><mo></mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>k</mi></munderover><mi>i</mi><mo>=</mo><mfrac><mrow><mi>k</mi><mrow><mo stretchy="true" form="prefix">(</mo><mi>k</mi><mo>+</mo><mn>1</mn><mo stretchy="true" form="postfix">)</mo></mrow></mrow><mn>2</mn></mfrac></mrow><annotation encoding="application/x-tex"> \sum_{i=1}^k i = \frac{k(k+1)}{2} </annotation></semantics></math></p>
$$</span></p>
</article> </article>
</section> </section>

View file

@ -22,9 +22,8 @@
vertical-align: middle; vertical-align: middle;
} }
/* CSS for syntax highlighting */ /* CSS for syntax highlighting */
html { -webkit-text-size-adjust: 100%; }
pre > code.sourceCode { white-space: pre; position: relative; } pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; } pre > code.sourceCode > span { line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; } pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; } .sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; } code.sourceCode > span { color: inherit; text-decoration: inherit; }
@ -35,7 +34,7 @@
} }
@media print { @media print {
pre > code.sourceCode { white-space: pre-wrap; } pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; } pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
} }
pre.numberSource code pre.numberSource code
{ counter-reset: source-line 0; } { counter-reset: source-line 0; }
@ -86,7 +85,7 @@
code span.vs { color: #cc9393; } /* VerbatimString */ code span.vs { color: #cc9393; } /* VerbatimString */
code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */ code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */
</style> </style>
<link rel="stylesheet" href="/home/never/Documents/nevereverever.de/public_html/eh/eh/eh/eh-eh/pandoc/style.css" /> <link rel="stylesheet" href="pandoc/style.css" />
</head> </head>
<body> <body>
<header id="page-header"> <header id="page-header">

View file

@ -20,9 +20,8 @@
margin: 0 0.8em 0.2em -1.6em; margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle; vertical-align: middle;
} }
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style> </style>
<link rel="stylesheet" href="/home/never/Documents/nevereverever.de/public_html/eh/eh/eh/eh-eh/pandoc/style.css" /> <link rel="stylesheet" href="pandoc/style.css" />
</head> </head>
<body> <body>
<header id="page-header"> <header id="page-header">

View file

@ -22,9 +22,8 @@
vertical-align: middle; vertical-align: middle;
} }
/* CSS for syntax highlighting */ /* CSS for syntax highlighting */
html { -webkit-text-size-adjust: 100%; }
pre > code.sourceCode { white-space: pre; position: relative; } pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; } pre > code.sourceCode > span { line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; } pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; } .sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; } code.sourceCode > span { color: inherit; text-decoration: inherit; }
@ -35,7 +34,7 @@
} }
@media print { @media print {
pre > code.sourceCode { white-space: pre-wrap; } pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; } pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
} }
pre.numberSource code pre.numberSource code
{ counter-reset: source-line 0; } { counter-reset: source-line 0; }
@ -86,7 +85,7 @@
code span.vs { color: #cc9393; } /* VerbatimString */ code span.vs { color: #cc9393; } /* VerbatimString */
code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */ code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */
</style> </style>
<link rel="stylesheet" href="/home/never/Documents/nevereverever.de/public_html/eh/eh/eh/eh-eh/pandoc/style.css" /> <link rel="stylesheet" href="pandoc/style.css" />
</head> </head>
<body> <body>
<header id="page-header"> <header id="page-header">