bavbavhaus.net/README.md

34 lines
843 B
Markdown
Raw Normal View History

2024-05-17 08:52:18 +02:00
Zapiski in skripte za pretvarjanje zapiskov v različne formate in generiranje
<https://bavbavhaus.net>. Glavni repozitorij se nahaja na
<https://git.kompot.si/urosm/bavbavhaus.net>.
2024-03-19 01:29:25 +01:00
2024-05-17 08:52:18 +02:00
Recepti za generiranje <https://bavbavhaus.net> so opisani v `Makefile`:
```make
.PHONY: all
2024-06-21 15:32:15 +02:00
all: dependencies.mk
dependencies.mk:
pandoc lua pandoc/dependencies.lua index.md $@
include dependencies.mk
PANDOCFLAGS := --data-dir pandoc
BAVBAVHAUSFLAGS = $(PANDOCFLAGS) -M slug=$*
2024-05-17 08:52:18 +02:00
2024-06-21 15:32:15 +02:00
public_html/%.html: parts = $(filter-out $<,$^)
public_html/%.html: %.md
pandoc $(BAVBAVHAUSFLAGS) -d bavbavhaus.net.yaml $(patsubst %,-M parts=%,$(parts)) -o $@ $<
2024-05-17 08:52:18 +02:00
2024-05-17 15:36:03 +02:00
public_html/%.html.part: %.md
2024-06-21 15:32:15 +02:00
pandoc $(BAVBAVHAUSFLAGS) -d bavbavhaus.net.part.yaml --id-prefix $* -o $@ $<
2024-05-17 15:36:03 +02:00
```
2024-03-19 01:29:25 +01:00
2024-04-12 22:33:48 +02:00
Navodila za uporabo:
2024-03-19 01:29:25 +01:00
2024-04-12 22:33:48 +02:00
```sh
2024-05-17 15:36:03 +02:00
# install dependencies (debian)
sudo apt install pandoc
2024-04-12 22:33:48 +02:00
make
2024-03-19 01:29:25 +01:00
```