File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,14 +43,16 @@ jobs:
4343 - name : Install system dependencies
4444 run : |
4545 sudo apt-get update
46- sudo apt-get install -y make
46+ sudo apt-get install -y make texlive texlive-xetex texlive-latex-extra texlive-fonts-extra texlive-science
4747
4848 - name : Build preprocessor with dependencies
4949 run : |
5050 stack build --resolver lts-14.20
5151
5252 - name : Generate HTML documentation
5353 run : |
54+ # Set title metadata to avoid warning
55+ export PANDOC_OPTS="--metadata title='What I Wish I Knew When Learning Haskell'"
5456 stack exec --resolver lts-14.20 -- make html
5557 # Create a directory for GitHub Pages
5658 mkdir -p _site
6062 cp -r img _site/ || true
6163 cp -r resources _site/ || true
6264
65+ - name : Generate PDF documentation
66+ run : |
67+ # Generate web PDF with colored links
68+ stack exec --resolver lts-14.20 -- make webpdf
69+ # Copy PDF to site directory
70+ cp tutorial.pdf _site/
71+
6372 - name : Upload artifact
6473 uses : actions/upload-pages-artifact@v3
6574 with :
Original file line number Diff line number Diff line change 55</p >
66
77[ ![ MIT License] ( http://img.shields.io/badge/license-mit-blue.svg )] ( https://github.com/sdiehl/wiwinwlh/blob/master/LICENSE )
8- [ ![ Build Status] ( https://travis-ci.org /sdiehl/wiwinwlh. svg?branch=master )] ( https://travis-ci.org /sdiehl/wiwinwlh )
8+ [ ![ Build Status] ( https://github.com /sdiehl/wiwinwlh/actions/workflows/build-and-deploy.yml/badge. svg )] ( https://github.com /sdiehl/wiwinwlh/actions/workflows/build-and-deploy.yml )
99
1010Read Online:
1111
@@ -18,6 +18,7 @@ Read Online:
1818-->
1919* [ ** Example Code** ] ( https://github.com/sdiehl/wiwinwlh/tree/master/src )
2020
21+ <!--
2122If you'd like a physical copy of the text you can either print it out for
2223yourself (see Printable PDF) or purchase one from a publisher. The price is
2324at-cost since the text is open source and free.
@@ -30,6 +31,7 @@ The current published version is:
3031Date: February 16, 2020
3132Git: d429c2e21b9636cffa27a8d4f063644b8bcecf1a
3233```
34+ -->
3335
3436Contributing
3537------------
You can’t perform that action at this time.
0 commit comments