diff --git a/Makefile b/Makefile index 9749fec..163ae5a 100644 --- a/Makefile +++ b/Makefile @@ -1,36 +1,52 @@ SHELL = /bin/sh -INSTALLDIR_HTML := ./public_html/eh/eh/eh/eh-eh/ -INSTALLDIR_ANSI := ./public_ansi/ + +SRCDIR := src +BUILDDIR := build + +INSTALLDIR_HTML := public_html/eh/eh/eh/eh-eh/ +INSTALLDIR_ANSI := public_ansi/ + +ARTICLEDIR := articles +PANDOCDIR := pandoc +STYLEDIR := styles +IMAGEDIR := images # The name of the stylesheet. This needs to be copied to any directory containing html files that use it. -style := style.css -images := images +style := $(STYLEDIR)/style.css # Main html template that pandoc uses to generate .html from .md files -template_html := pandoc/template.html -template_ansi := pandoc/template +template_html := $(PANDOCDIR)/template.html +template_ansi := $(PANDOCDIR)/template # Template for extracting metadata of .md files in json format -list_template := pandoc/meta-json-template.txt +list_template := $(PANDOCDIR)/meta-json-template.txt + +# Location of the shark.js +shark_js := $(PANDOCDIR)/shark.js # List of articles with their metadata to be used in the creation of the article list in index.html -article_list := articles.json +article_list := $(SRCDIR)/articles.json # article targets -articles_html := $(patsubst %.md,%.html,$(wildcard articles/*.md)) -articles_ansi := $(patsubst %.md,%,$(wildcard articles/*.md)) +articles_md := $(wildcard $(SRCDIR)/$(ARTICLEDIR)/*.md) -all: index.html index about.html about +articles_html := $(patsubst $(SRCDIR)/%.md, $(BUILDDIR)/%.html, $(articles_md)) +articles_ansi := $(patsubst $(SRCDIR)/%.md, $(BUILDDIR)/%, $(articles_md)) + +all: $(BUILDDIR)/index.html $(BUILDDIR)/index install: - cp -r index.html about.html shark.js shark.png $(articles_html) $(style) $(images) $(INSTALLDIR_HTML); \ - cp -r index about $(articles_ansi) $(INSTALLDIR_ANSI); + cp -r $(BUILDDIR)/index.html $(articles_html) $(STYLEDIR) $(IMAGEDIR) $(INSTALLDIR_HTML); \ + cp -r $(BUILDDIR)/index $(articles_ansi) $(INSTALLDIR_ANSI); clean: echo '{"articles": []}' > $(article_list); \ - rm index.html about.html $(articles_html) $(articles_ansi); + rm -r $(BUILDDIR) -$(articles_html): %.html: %.md +$(BUILDDIR): + mkdir $(BUILDDIR) $(BUILDDIR)/$(ARTICLEDIR) + +$(BUILDDIR)/$(ARTICLEDIR)/%.html: $(SRCDIR)/$(ARTICLEDIR)/%.md | $(BUILDDIR) jq 'del(.articles[] | select(.filename == "$(notdir $@)"))' $(article_list) > articles.json.tmp; \ mv ./articles.json.tmp $(article_list); \ @@ -42,18 +58,12 @@ $(articles_html): %.html: %.md jq '.articles += [$(shell pandoc $< --template $(list_template) | jq '. += {"filename": "$(patsubst %.html, %, $(notdir $@))"}')]' $(article_list) > articles.json.tmp; \ mv ./articles.json.tmp $(article_list); \ -$(articles_ansi): %: %.md +$(BUILDDIR)/$(ARTICLEDIR)/%: $(SRCDIR)/$(ARTICLEDIR)/%.md | $(BUILDDIR) pandoc $< --template $(template_ansi) --to ansi --output $@ -index.html: index.md $(articles_html) +$(BUILDDIR)/index.html: $(SRCDIR)/index.md $(articles_html) | $(BUILDDIR) # Build index.html with metadata injected from articles_list - pandoc $< --template $(template_html) --include-after-body shark.js --css $(style) --metadata-file $(article_list) --highlight-style zenburn --mathml --toc --output $@; \ + pandoc $< --template $(template_html) --include-after-body $(shark_js) --css $(style) --metadata-file $(article_list) --highlight-style zenburn --mathml --toc --output $@; \ -index: index.md $(articles_html) $(articles_ansi) +$(BUILDDIR)/index: $(SRCDIR)/index.md $(articles_ansi) | $(BUILDDIR) pandoc $< --template $(template_ansi) --metadata-file $(article_list) --to ansi --output $@ - -about.html: about.md - pandoc $< --template $(template_html) --css $(style) --highlight-style zenburn --mathml --toc --output $@ - -about: about.md - pandoc $< --template $(template_ansi) --to ansi --output $@ diff --git a/about b/about deleted file mode 100644 index 25d7268..0000000 --- a/about +++ /dev/null @@ -1,10 +0,0 @@ - About - - ──────────────────── - -]8;;https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.html\Rsync Android]8;;\ - -Stuff - -$$ \sum_{i=1}^k i = \frac{k(k+1)}{2} $$ -]8;;\ \ No newline at end of file diff --git a/about.md b/about.md deleted file mode 100644 index 73adbf2..0000000 --- a/about.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: About ---- - -[Rsync Android](https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.html) - -## Stuff - -$$ \sum_{i=1}^k i = \frac{k(k+1)}{2} $$ - diff --git a/articles/latex-endeavors b/build/articles/latex-endeavors similarity index 100% rename from articles/latex-endeavors rename to build/articles/latex-endeavors diff --git a/build/articles/latex-endeavors.html b/build/articles/latex-endeavors.html new file mode 100644 index 0000000..6e860b1 --- /dev/null +++ b/build/articles/latex-endeavors.html @@ -0,0 +1,68 @@ + + + + + + + + Latex Endeavors + + + + + + + +
+

Latex Endeavors

+

Some unintuitive quirks of Latex

+

Never

+

9.1.2026

+
+
+ +
+

BibLaTeX and Biber

+

Biber doesn’t run

+

Biber doens’t run if the (fedora) package +libxcrypt-compat is missing. It will fail with the error +message

+
biber: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
+
+
+ + + diff --git a/articles/random-linux-utils b/build/articles/random-linux-utils similarity index 100% rename from articles/random-linux-utils rename to build/articles/random-linux-utils diff --git a/articles/random-linux-utils.html b/build/articles/random-linux-utils.html similarity index 86% rename from articles/random-linux-utils.html rename to build/articles/random-linux-utils.html index f2193c8..a04f711 100644 --- a/articles/random-linux-utils.html +++ b/build/articles/random-linux-utils.html @@ -87,23 +87,12 @@ code span.vs { color: #cc9393; } /* VerbatimString */ code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */ - +

Random linux utilities

@@ -132,15 +121,14 @@ class="sourceCode bash"> -sOUTPUTFILE=output.pdf \ -dBATCH 1.pdf 2.pdf - diff --git a/articles/rsync-android b/build/articles/rsync-android similarity index 100% rename from articles/rsync-android rename to build/articles/rsync-android diff --git a/articles/rsync-android.html b/build/articles/rsync-android.html similarity index 93% rename from articles/rsync-android.html rename to build/articles/rsync-android.html index d9c9594..d291267 100644 --- a/articles/rsync-android.html +++ b/build/articles/rsync-android.html @@ -87,23 +87,12 @@ code span.vs { color: #cc9393; } /* VerbatimString */ code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */ - +

Using rsync on Android to syncronise my Music @@ -213,15 +202,14 @@ class="sourceCode sh">
adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN -d file:///data/data/com.termux/files/home/storage/music/
-
- -

- Previous - CUPS - Next -

+ +

+Previous +CUPS +Next +

diff --git a/index b/build/index similarity index 100% rename from index rename to build/index diff --git a/index.html b/build/index.html similarity index 63% rename from index.html rename to build/index.html index 60c28dc..3d7ae73 100644 --- a/index.html +++ b/build/index.html @@ -22,23 +22,12 @@ vertical-align: middle; } - +

Home

@@ -48,43 +37,42 @@

Hello World

-
- -

- Previous - CUPS - Next -

+ +

+Previous +CUPS +Next +

diff --git a/images/recursion.gif b/images/recursion.gif deleted file mode 100644 index 2012eac..0000000 Binary files a/images/recursion.gif and /dev/null differ diff --git a/images/sand.png b/images/sand.png deleted file mode 100644 index c0ba49c..0000000 Binary files a/images/sand.png and /dev/null differ diff --git a/public_html/eh/eh/eh/eh-eh/shark.png b/images/shark.png similarity index 100% rename from public_html/eh/eh/eh/eh-eh/shark.png rename to images/shark.png diff --git a/public_html/eh/eh/eh/eh-eh/shark.js b/pandoc/shark.js similarity index 97% rename from public_html/eh/eh/eh/eh-eh/shark.js rename to pandoc/shark.js index 7310868..3f4557c 100644 --- a/public_html/eh/eh/eh/eh-eh/shark.js +++ b/pandoc/shark.js @@ -16,7 +16,7 @@ let dvd = { (function main(){ canvas = document.getElementById("tv-screen"); ctx = canvas.getContext("2d"); - dvd.img.src = 'shark.png'; + dvd.img.src = 'images/shark.png'; //Draw the "tv screen" canvas.width = window.innerWidth; diff --git a/pandoc/template.html b/pandoc/template.html index c854246..2b5e99c 100644 --- a/pandoc/template.html +++ b/pandoc/template.html @@ -22,7 +22,7 @@ $endif$ $styles.html()$ $for(css)$ - + $endfor$ $for(header-includes)$ $header-includes$ @@ -37,18 +37,7 @@ $endif$ $for(include-before)$ $include-before$ @@ -87,41 +76,40 @@ $body$ $if(articles)$ $endif$ - $for(include-after)$ $include-after$ $endfor$
- -

- Previous - CUPS - Next -

+ +

+Previous +CUPS +Next +

diff --git a/public_ansi/index b/public_ansi/index index fd78578..d127fcf 100644 --- a/public_ansi/index +++ b/public_ansi/index @@ -2,29 +2,25 @@ ──────────────────── - - +Hello World ARTICLES Latex Endeavors (latex-endeavors) -Never Latex undoubtedly has some quirks. Some of them have a rather unintuitive solution. In this article I cover some quirks and solutions I have encountered. - 9.1.2026 + Never - 9.1.2026 Random linux utilities (random-linux-utils) -Never Tricks and tools I learned about, while tweaking my Linux sytem or trying to do productive things. - 25.7.2025 + Never - 25.7.2025 Using rsync on Android to syncronise my Music library (rsync-android) -Never As Spotify is getting enshittified by capitalism, keeping a music library is kind of essential. Here I use rsync to syncronise my library with my Android smartphone. - 12.01.2026 + Never - 12.01.2026 ]8;;\ \ No newline at end of file diff --git a/public_html/eh/eh/eh/eh-eh/about.html b/public_html/eh/eh/eh/eh-eh/about.html deleted file mode 100644 index 204c245..0000000 --- a/public_html/eh/eh/eh/eh-eh/about.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - About - - - - - - - -
-

About

-
-
- -
-

Rsync -Android

-

Stuff

-

i=1ki=k(k+1)2 \sum_{i=1}^k i = \frac{k(k+1)}{2}

-
- -
-
- -

- Previous - CUPS - Next -

-
- - diff --git a/public_html/eh/eh/eh/eh-eh/dvd-logo.png b/public_html/eh/eh/eh/eh-eh/dvd-logo.png deleted file mode 100644 index 7d04e11..0000000 Binary files a/public_html/eh/eh/eh/eh-eh/dvd-logo.png and /dev/null differ diff --git a/public_html/eh/eh/eh/eh-eh/images/recursion.gif b/public_html/eh/eh/eh/eh-eh/images/recursion.gif deleted file mode 100644 index 2012eac..0000000 Binary files a/public_html/eh/eh/eh/eh-eh/images/recursion.gif and /dev/null differ diff --git a/public_html/eh/eh/eh/eh-eh/images/sand.png b/public_html/eh/eh/eh/eh-eh/images/sand.png deleted file mode 100644 index c0ba49c..0000000 Binary files a/public_html/eh/eh/eh/eh-eh/images/sand.png and /dev/null differ diff --git a/shark.png b/public_html/eh/eh/eh/eh-eh/images/shark.png similarity index 100% rename from shark.png rename to public_html/eh/eh/eh/eh-eh/images/shark.png diff --git a/public_html/eh/eh/eh/eh-eh/index.html b/public_html/eh/eh/eh/eh-eh/index.html index 1bc5267..3d7ae73 100644 --- a/public_html/eh/eh/eh/eh-eh/index.html +++ b/public_html/eh/eh/eh/eh-eh/index.html @@ -22,72 +22,57 @@ vertical-align: middle; } - +

Home

-
- +

Hello World

-
- -

- Previous - CUPS - Next -

+ +

+Previous +CUPS +Next +

diff --git a/public_html/eh/eh/eh/eh-eh/latex-endeavors.html b/public_html/eh/eh/eh/eh-eh/latex-endeavors.html index df33063..6e860b1 100644 --- a/public_html/eh/eh/eh/eh-eh/latex-endeavors.html +++ b/public_html/eh/eh/eh/eh-eh/latex-endeavors.html @@ -23,23 +23,12 @@ vertical-align: middle; } - +

Latex Endeavors

@@ -66,15 +55,14 @@ run message

biber: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
-
- -

- Previous - CUPS - Next -

+ +

+Previous +CUPS +Next +

diff --git a/public_html/eh/eh/eh/eh-eh/random-linux-utils-2.html b/public_html/eh/eh/eh/eh-eh/random-linux-utils-2.html deleted file mode 100644 index 9a137d4..0000000 --- a/public_html/eh/eh/eh/eh-eh/random-linux-utils-2.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - Random linux utilities 2 - - - - - - -
-

Random linux utilities 2

-

Neat things I picked up along the way

-

Never Gude

-

4.1.2026

-
-
- -
-

Merge pdfs

-

Using Ghostscript

-

Ghostscript has a feature to merge multiple pdf files into one. -Although ImageMagick also has this feature, I prefer this one, as it -doesn’t rasterize and scales down the pdf files.

-
gs -dNOPAUSE -sDEVICE=pdfwrite \
-    -sOUTPUTFILE=output.pdf \
-    -dBATCH 1.pdf 2.pdf
-
- -
-
- -

- Previous - CUPS - Next -

-
- - diff --git a/public_html/eh/eh/eh/eh-eh/random-linux-utils.html b/public_html/eh/eh/eh/eh-eh/random-linux-utils.html index f2193c8..a04f711 100644 --- a/public_html/eh/eh/eh/eh-eh/random-linux-utils.html +++ b/public_html/eh/eh/eh/eh-eh/random-linux-utils.html @@ -87,23 +87,12 @@ code span.vs { color: #cc9393; } /* VerbatimString */ code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */ - +

Random linux utilities

@@ -132,15 +121,14 @@ class="sourceCode bash"> -sOUTPUTFILE=output.pdf \ -dBATCH 1.pdf 2.pdf -
- -

- Previous - CUPS - Next -

+ +

+Previous +CUPS +Next +

diff --git a/public_html/eh/eh/eh/eh-eh/rsync-android.html b/public_html/eh/eh/eh/eh-eh/rsync-android.html index d9c9594..d291267 100644 --- a/public_html/eh/eh/eh/eh-eh/rsync-android.html +++ b/public_html/eh/eh/eh/eh-eh/rsync-android.html @@ -87,23 +87,12 @@ code span.vs { color: #cc9393; } /* VerbatimString */ code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */ - +

Using rsync on Android to syncronise my Music @@ -213,15 +202,14 @@ class="sourceCode sh">
adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN -d file:///data/data/com.termux/files/home/storage/music/
-
- -

- Previous - CUPS - Next -

+ +

+Previous +CUPS +Next +

diff --git a/public_html/eh/eh/eh/eh-eh/styles/images/cups_left.svg b/public_html/eh/eh/eh/eh-eh/styles/images/cups_left.svg new file mode 100644 index 0000000..2412435 --- /dev/null +++ b/public_html/eh/eh/eh/eh-eh/styles/images/cups_left.svg @@ -0,0 +1,79 @@ + + + + + + + + + + + diff --git a/public_html/eh/eh/eh/eh-eh/styles/images/cups_left_dark.svg b/public_html/eh/eh/eh/eh-eh/styles/images/cups_left_dark.svg new file mode 100644 index 0000000..7ae7a67 --- /dev/null +++ b/public_html/eh/eh/eh/eh-eh/styles/images/cups_left_dark.svg @@ -0,0 +1,101 @@ + + + + + + + + + + + + diff --git a/public_html/eh/eh/eh/eh-eh/styles/images/cups_logo.svg b/public_html/eh/eh/eh/eh-eh/styles/images/cups_logo.svg new file mode 100644 index 0000000..cecb1db --- /dev/null +++ b/public_html/eh/eh/eh/eh-eh/styles/images/cups_logo.svg @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public_html/eh/eh/eh/eh-eh/styles/images/cups_logo_dark.svg b/public_html/eh/eh/eh/eh-eh/styles/images/cups_logo_dark.svg new file mode 100644 index 0000000..d01e673 --- /dev/null +++ b/public_html/eh/eh/eh/eh-eh/styles/images/cups_logo_dark.svg @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public_html/eh/eh/eh/eh-eh/styles/images/cups_right.svg b/public_html/eh/eh/eh/eh-eh/styles/images/cups_right.svg new file mode 100644 index 0000000..7da7c88 --- /dev/null +++ b/public_html/eh/eh/eh/eh-eh/styles/images/cups_right.svg @@ -0,0 +1,79 @@ + + + + + + + + + + + diff --git a/public_html/eh/eh/eh/eh-eh/styles/images/cups_right_dark.svg b/public_html/eh/eh/eh/eh-eh/styles/images/cups_right_dark.svg new file mode 100644 index 0000000..5770ecf --- /dev/null +++ b/public_html/eh/eh/eh/eh-eh/styles/images/cups_right_dark.svg @@ -0,0 +1,101 @@ + + + + + + + + + + + + diff --git a/images/shark-top-small.png b/public_html/eh/eh/eh/eh-eh/styles/images/shark-top-small.png similarity index 100% rename from images/shark-top-small.png rename to public_html/eh/eh/eh/eh-eh/styles/images/shark-top-small.png diff --git a/images/shark-top-small.xcf b/public_html/eh/eh/eh/eh-eh/styles/images/shark-top-small.xcf similarity index 100% rename from images/shark-top-small.xcf rename to public_html/eh/eh/eh/eh-eh/styles/images/shark-top-small.xcf diff --git a/images/shark_top.xcf b/public_html/eh/eh/eh/eh-eh/styles/images/shark_top.xcf similarity index 100% rename from images/shark_top.xcf rename to public_html/eh/eh/eh/eh-eh/styles/images/shark_top.xcf diff --git a/public_html/eh/eh/eh/eh-eh/style.css b/public_html/eh/eh/eh/eh-eh/styles/style.css similarity index 100% rename from public_html/eh/eh/eh/eh-eh/style.css rename to public_html/eh/eh/eh/eh-eh/styles/style.css diff --git a/shark.js b/shark.js deleted file mode 100644 index 7310868..0000000 --- a/shark.js +++ /dev/null @@ -1,68 +0,0 @@ - diff --git a/articles.json b/src/articles.json similarity index 100% rename from articles.json rename to src/articles.json diff --git a/articles/latex-endeavors.md b/src/articles/latex-endeavors.md similarity index 100% rename from articles/latex-endeavors.md rename to src/articles/latex-endeavors.md diff --git a/src/articles/random-linux-utils b/src/articles/random-linux-utils new file mode 100644 index 0000000..27d3079 --- /dev/null +++ b/src/articles/random-linux-utils @@ -0,0 +1,18 @@ + Latex Endeavors + Some unintuitive quirks of Latex + + Never + + 9.1.2026 + + ──────────────────── + +BIBLATEX AND BIBER + +Biber doesn’t run + +Biber doens’t run if the (fedora) package  libxcrypt-compat  is missing. +It will fail with the error message + + biber: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory +]8;;\ \ No newline at end of file diff --git a/articles/latex-endeavors.html b/src/articles/random-linux-utils.html similarity index 100% rename from articles/latex-endeavors.html rename to src/articles/random-linux-utils.html diff --git a/articles/random-linux-utils.md b/src/articles/random-linux-utils.md similarity index 100% rename from articles/random-linux-utils.md rename to src/articles/random-linux-utils.md diff --git a/src/articles/rsync-android b/src/articles/rsync-android new file mode 100644 index 0000000..27d3079 --- /dev/null +++ b/src/articles/rsync-android @@ -0,0 +1,18 @@ + Latex Endeavors + Some unintuitive quirks of Latex + + Never + + 9.1.2026 + + ──────────────────── + +BIBLATEX AND BIBER + +Biber doesn’t run + +Biber doens’t run if the (fedora) package  libxcrypt-compat  is missing. +It will fail with the error message + + biber: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory +]8;;\ \ No newline at end of file diff --git a/about.html b/src/articles/rsync-android.html similarity index 72% rename from about.html rename to src/articles/rsync-android.html index 204c245..df33063 100644 --- a/about.html +++ b/src/articles/rsync-android.html @@ -4,7 +4,8 @@ - About + + Latex Endeavors