1
Fork 0

add source to haddock, few doc notes, tweak website build

This commit is contained in:
Jake Wheat 2019-09-21 09:18:27 +01:00
parent a55694abff
commit ac66ede538
4 changed files with 9 additions and 9 deletions

View file

@ -391,5 +391,3 @@ request.
There is a related tutorial on implementing a SQL parser here:
http://jakewheat.github.io/intro_to_parsing/

View file

@ -14,15 +14,15 @@ cp website/main.css build
cp website/ocean.css build
# index
asciidoctor website/index.asciidoc -o - | cabal -v0 exec runhaskell website/AddLinks.lhs > build/index.html
asciidoctor website/index.asciidoc -o - | cabal -v0 v2-exec runhaskell website/AddLinks.lhs > build/index.html
asciidoctor website/supported_sql.asciidoc -o - | cabal -v0 exec runhaskell website/AddLinks.lhs > build/supported_sql.html
asciidoctor website/supported_sql.asciidoc -o - | cabal -v0 v2-exec runhaskell website/AddLinks.lhs > build/supported_sql.html
# tpch sql file
# pandoc src/tpch.sql -s --highlight-style kate -o tpch.sql.html
# rendered test cases
# build the parserexe target first to fix the package database
cabal -v0 exec runhaskell -- --ghc-arg=-package=pretty-show -itools website/RenderTestCases.lhs > build/test_cases.asciidoc
cabal -v0 v2-exec runhaskell -- --ghc-arg=-package=pretty-show -itools website/RenderTestCases.lhs > build/test_cases.asciidoc
asciidoctor build/test_cases.asciidoc -o - | \
sed -e "s/max-width:62\.5em//g" \
@ -34,7 +34,7 @@ asciidoctor build/test_cases.asciidoc -o - | \
rm build/test_cases.asciidoc
# haddock
cabal v2-haddock
cabal v2-haddock --haddock-option="--hyperlinked-source"
rm -Rf build/haddock
mkdir build/haddock/