fixes
This commit is contained in:
parent
db47b232bd
commit
a8bf694a75
5 changed files with 21 additions and 21 deletions
|
|
@ -1,8 +1,8 @@
|
|||
template := $(abspath ./pandoc/template.html)
|
||||
style := $(abspath ./pandoc/style.css)
|
||||
template := pandoc/template.html
|
||||
style := pandoc/style.css
|
||||
|
||||
article_list := $(abspath ./articles.json)
|
||||
list_template := $(abspath ./pandoc/meta-json-template.txt)
|
||||
article_list := articles.json
|
||||
list_template := pandoc/meta-json-template.txt
|
||||
|
||||
articles := $(patsubst %.md,%.html,$(wildcard articles/*.md))
|
||||
|
||||
|
|
@ -14,13 +14,13 @@ clean:
|
|||
rm index.html about.html;
|
||||
|
||||
$(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;
|
||||
cat ./articles.json.tmp > articles.json;
|
||||
rm ./articles.json.tmp;
|
||||
|
||||
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
|
||||
pandoc $< --template $(template) --css $(style) --output $@
|
||||
pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $@
|
||||
|
|
|
|||
|
|
@ -20,9 +20,8 @@
|
|||
margin: 0 0.8em 0.2em -1.6em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
|
||||
</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>
|
||||
<body>
|
||||
<header id="page-header">
|
||||
|
|
@ -41,10 +40,14 @@
|
|||
<h1 class="title">About</h1>
|
||||
</header>
|
||||
<section id="content">
|
||||
<nav id="TOC" role="doc-toc">
|
||||
<ul>
|
||||
<li><a href="#stuff" id="toc-stuff">Stuff</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article>
|
||||
<h2 id="stuff">Stuff</h2>
|
||||
<p><span class="math display">$$ \sum_{i=1}^k i = \frac{k(k+1)}{2}
|
||||
$$</span></p>
|
||||
<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>
|
||||
</article>
|
||||
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -22,9 +22,8 @@
|
|||
vertical-align: middle;
|
||||
}
|
||||
/* CSS for syntax highlighting */
|
||||
html { -webkit-text-size-adjust: 100%; }
|
||||
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; }
|
||||
.sourceCode { overflow: visible; }
|
||||
code.sourceCode > span { color: inherit; text-decoration: inherit; }
|
||||
|
|
@ -35,7 +34,7 @@
|
|||
}
|
||||
@media print {
|
||||
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
|
||||
{ counter-reset: source-line 0; }
|
||||
|
|
@ -86,7 +85,7 @@
|
|||
code span.vs { color: #cc9393; } /* VerbatimString */
|
||||
code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */
|
||||
</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>
|
||||
<body>
|
||||
<header id="page-header">
|
||||
|
|
@ -20,9 +20,8 @@
|
|||
margin: 0 0.8em 0.2em -1.6em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
|
||||
</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>
|
||||
<body>
|
||||
<header id="page-header">
|
||||
|
|
|
|||
|
|
@ -22,9 +22,8 @@
|
|||
vertical-align: middle;
|
||||
}
|
||||
/* CSS for syntax highlighting */
|
||||
html { -webkit-text-size-adjust: 100%; }
|
||||
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; }
|
||||
.sourceCode { overflow: visible; }
|
||||
code.sourceCode > span { color: inherit; text-decoration: inherit; }
|
||||
|
|
@ -35,7 +34,7 @@
|
|||
}
|
||||
@media print {
|
||||
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
|
||||
{ counter-reset: source-line 0; }
|
||||
|
|
@ -86,7 +85,7 @@
|
|||
code span.vs { color: #cc9393; } /* VerbatimString */
|
||||
code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */
|
||||
</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>
|
||||
<body>
|
||||
<header id="page-header">
|
||||
Loading…
Add table
Add a link
Reference in a new issue