Commit 4c3f649d authored by PoroCYon's avatar PoroCYon

__

parent 94aa66df
......@@ -7,29 +7,28 @@
default: all
DATE="$(shell date "+%B %e, %Y")"
DATE:="$(shell date "+%B %e, %Y")"
MAINTITLE="lo kibystu pe la poros"
MAINTITLE:="lo kibystu pe la poros"
MATHJAX=https://github.com/mathjax/MathJax/raw/master/MathJax.js
PANDOC ?= pandoc
SCSSC ?= sassc
PDMARKDOWN_BASE=markdown_github+smart+raw_tex+yaml_metadata_block+table_captions+implicit_figures+simple_tables+multiline_tables+grid_tables+tex_math_dollars+fenced_code_attributes+inline_code_attributes+markdown_attribute+fancy_lists+all_symbols_escapable+superscript+subscript+header_attributes-emoji
SCSSC ?= sassc
PDMARKDOWN:=markdown_github+raw_tex+yaml_metadata_block+table_captions+implicit_figures+simple_tables+multiline_tables+grid_tables+tex_math_dollars+fenced_code_attributes+inline_code_attributes+markdown_attribute+fancy_lists+all_symbols_escapable+superscript+subscript+header_attributes-emoji
PDFLAGS=-s --ascii -M date=$(DATE) \
-V maintitle=$(MAINTITLE) -c /stc/style-light.css --mathml \
--template=tpl/template -H tpl/header.html #-B tpl/before.html -A tpl/after.html
--template=tpl/template -H tpl/header.html
#-B tpl/before.html -A tpl/after.html
# dev machine has 2.0, prod one has 1.7
ifeq ($(shell $(PANDOC) --version | head -1 | grep -Fo " 2" && echo new || echo old),new)
ifeq ($(shell $(PANDOC) --version | head -1 | grep -Fq " 2" && echo new || echo old),new)
# '+=' automatically inserts a space >__>
PDMARKDOWN=$(PDMARKDOWN_BASE)+smart
PDMARKDOWN:=$(PDMARKDOWN)+smart
else
PDMARKDOWN=$(PDMARKDOWN_BASE)
PDFLAGS+=-S
PDFLAGS += -S
endif
INPUT_FILES=$(shell find src/ -type f -name "*.md")
OUTPUT_FILES=$(patsubst src/%.md, out/%.html, $(INPUT_FILES))
INPUT_FILES:=$(shell find src/ -type f -name "*.md")
OUTPUT_FILES:=$(patsubst src/%.md, out/%.html, $(INPUT_FILES))
%/:
mkdir -p "$@"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment