$title$
+$title$
$if(subtitle)$ -$subtitle$
+$subtitle$
$endif$ $for(author)$ - + $endfor$ $if(date)$ -$date$
+$date$
$endif$ -diff --git a/doc/Makefile b/doc/Makefile index d8145fdd..249095a9 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -28,13 +28,14 @@ synopsis.txt: MkSynopsis.hs MkExxTable.hs $(INCLUDES) $(EXAMPLES_OUT) $(SRC_FILE runghc -i.. MkSynopsis.hs TMP=tmp.html -synopsis.html: synopsis.txt - txt2tags --target=html --no-headers --quiet --toc --outfile=$@ --infile=$^ +synopsis.html: synopsis.txt _template.html + txt2tags --target=html --no-headers --quiet --toc --outfile=$@ --infile=$< pandoc \ --from=html \ --to=html5 \ --standalone \ --template=_template.html \ + --css=synopsis.css \ --metadata='title:"GF Resource Grammar Library: Synopsis"' \ --variable='rel-root:../..' \ --output=$(TMP) \ diff --git a/doc/MkSynopsis.hs b/doc/MkSynopsis.hs index a843f5a2..e07dec14 100644 --- a/doc/MkSynopsis.hs +++ b/doc/MkSynopsis.hs @@ -49,8 +49,6 @@ main = do append "%!postproc(html): '(SRC=\"categories.png\")' '\\1 USEMAP=\"#categories\"'" append "%!postproc(html): '#LParadigms' ''" append "%!postproc(tex): '#LParadigms' ''" - append "%!postproc(html): '#quicklinks' ''" - append "%!postproc(tex): '#quicklinks' ''" delimit $ addToolTips cs include "synopsis-intro.txt" -- TODO dynamic language list title "Categories" @@ -101,8 +99,6 @@ main = do space append "%%toc" space - append "#quicklinks" - space addToolTips :: Cats -> [String] addToolTips = map f diff --git a/doc/_template.html b/doc/_template.html index f94ac841..49c58d28 100644 --- a/doc/_template.html +++ b/doc/_template.html @@ -2,8 +2,7 @@
- - + $for(author-meta)$ $endfor$ @@ -29,32 +28,41 @@ $for(header-includes)$ $endfor$ -