Update wiki files

master
Hektor Misplon 2023-04-15 16:28:20 +02:00
parent ffad2c3148
commit a70f933a3b
3 changed files with 2139 additions and 35 deletions

6
.gitignore vendored
View File

@ -82,3 +82,9 @@ dkms.conf
# Dotenv # Dotenv
.env .env
.wiki/*
!.wiki/Makefile
!.wiki/pandoc.css
!.wiki/scripts/
!.wiki/filters/

View File

@ -1,40 +1,34 @@
entries := $(wildcard *.md) NOTES := $(wildcard *.md)
AUXFILES := ./img/
target=wiki target=wiki
exports= \ exports=$(NOTES:.md=.html)
$(entries:.md=.html) \
# $(target).pdf \
VIMWIKI_DIR=/home/h/.wiki WIKI_DIR=/home/h/.wiki
all: $(exports) %.html : %.md
%.html:%.md
pandoc \ pandoc \
-f markdown+latex_macros-yaml_metadata_block \ -f markdown+latex_macros-yaml_metadata_block+abbreviations+emoji+pipe_tables \
-t html5 \ -t html5 \
-c pandoc.css \ -c pandoc.css \
--pdf-engine=xelatex \
--bibliography $(VIMWIKI_DIR)/references.bib \
--citeproc \ --citeproc \
--resource-path=$(VIMWIKI_DIR)/img/ \ --metadata-file=meta.yaml \
--lua-filter=$(VIMWIKI_DIR)/filters/html-links.lua \ --template=$(WIKI_DIR)/template \
--lua-filter=$(VIMWIKI_DIR)/lua-filters/diagram-generator/diagram-generator.lua \ --bibliography $(WIKI_DIR)/references.bib \
--lua-filter=$(VIMWIKI_DIR)/lua-filters/lilypond/lilypond.lua \ --resource-path=$(WIKI_DIR)/img/ \
--mathjax \ --lua-filter=$(WIKI_DIR)/filters/html-links.lua \
--lua-filter=$(WIKI_DIR)/filters/tikz.lua \
--lua-filter=$(WIKI_DIR)/filters/zotero.lua \
--lua-filter=$(WIKI_DIR)/lua-filters/diagram-generator/diagram-generator.lua \
--lua-filter=$(WIKI_DIR)/lua-filters/lilypond/lilypond.lua \
--toc \
--markdown-headings=atx \
--extract-media=img \ --extract-media=img \
--strip-comments \ --strip-comments \
-s -o $@ $< --file-scope \
-s -o "$@" "$<"
$(target).pdf:$(entries) .PHONY: all clean
pandoc \
-f markdown $(entries) \
--pdf-engine=xelatex \
--bibliography $(VIMWIKI_DIR)/references.bib \
--citeproc \
--table-of-contents \
-o $@
clean: all: $(exports)
rm -f *.html clean: rm $(exports)
# rm wiki.pdf

2104
.wiki/filters/zotero.lua Normal file

File diff suppressed because it is too large Load Diff