Skip to content
Snippets Groups Projects
Commit 302c4a78 authored by Hym Samuel's avatar Hym Samuel
Browse files

Arrête la conversion au stade JSON

La conversion vers le format markdown est bugguée, le fichier n’est plus
relu comme la structure de donnée écrite...
parent f2d738b0
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ PROMOTIONTITRE := ../stages/moulinette/promotion-titre
# Les .md dans l’ordre où ils ont été ajoutés
SRC := $(shell for i in *-*.md; do git log --pretty=format:"%ct $$i%n" "$$i" | tail -n1; done | sort | cut -d ' ' -f2-)
all: web web/index.mdwn $(addprefix web/, $(addsuffix wn, $(SRC)))
all: web web/index.mdwn $(patsubst %.md,web/%.pandocjson, $(SRC))
web:
mkdir -p web
......@@ -12,5 +12,10 @@ web:
web/index.mdwn: $(SRC)
$(MOULINETTE) $^ | pandoc -f json -t markdown -s -o $@
web/%.mdwn: %.md
$(PROMOTIONTITRE) $< | pandoc -f json -t markdown -s -o $@
web/%.pandocjson: %.md
$(PROMOTIONTITRE) $< > $@
clean:
rm -rf web
.PHONY: clean all
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment