From e2532cebaf30153ac30d834e8efe191f414887bd Mon Sep 17 00:00:00 2001 From: Joan Josep Ordinas Rosa Date: Sun, 4 Sep 2016 14:09:43 +0200 Subject: [PATCH] Fix: chicken egg problem #2 --- docs/Makefile | 16 ++++++++++++++-- docs/content/content.md | 2 +- docs/content/engine.md | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index 552d898..2932b06 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -148,10 +148,22 @@ $(Destination)/jqt.css: $(Styles)/jqt.css $(Styles)/github.css $(info ==> $@) jqt -P CSS-min -I$(Styles) <$< >$@ -# Man page +# Man page (to be build without callig `jqt`!) +GPP_MD := \ + -U '<%' '>' '\B' '\B' '\W>' '<' '>' '$$' '' \ + -M '<%' '>' '\B' '\B' '\W>' '<' '>' \ + +sccc '&\n' '' '' \ + +sccc '<\#' '\#>\n' '' \ + +siqi "'" "'" '\' \ + +siQi '"' '"' '\' \ + +ssss '' '' \ + +ssss '`' '`' '' \ + +ssss '\n```' '\n```' '' \ + +ssss '\n~~~' '\n~~~' '' \ + $(ManPage): $(Content)/jqt.1.markdown $(info ==> $@) - jqt -P MarkDown -I$(Content) <$< \ + gpp $(GPP_MD) -I$(Content) <$< \ | pandoc --standalone --from markdown --to man \ | gzip > $@ diff --git a/docs/content/content.md b/docs/content/content.md index 6b3f4df..23f8019 100644 --- a/docs/content/content.md +++ b/docs/content/content.md @@ -1,5 +1,5 @@ --- -title: Authored content +title: Authoring content updated: "2016-08-28T10:27:09Z" --- <%include macros.m>& diff --git a/docs/content/engine.md b/docs/content/engine.md index d99cb75..768dd49 100644 --- a/docs/content/engine.md +++ b/docs/content/engine.md @@ -1,5 +1,5 @@ --- -title: Operating the engine +title: Template engine updated: "2016-08-28T10:27:09Z" --- <%include macros.m>&