Skip to content

Commit 18bbb24

Browse files
committed
make webpdf and upload
1 parent 3e7f18a commit 18bbb24

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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
@@ -60,6 +62,13 @@ jobs:
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:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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

1010
Read Online:
1111

@@ -18,6 +18,7 @@ Read Online:
1818
-->
1919
* [**Example Code**](https://github.com/sdiehl/wiwinwlh/tree/master/src)
2020

21+
<!--
2122
If you'd like a physical copy of the text you can either print it out for
2223
yourself (see Printable PDF) or purchase one from a publisher. The price is
2324
at-cost since the text is open source and free.
@@ -30,6 +31,7 @@ The current published version is:
3031
Date: February 16, 2020
3132
Git: d429c2e21b9636cffa27a8d4f063644b8bcecf1a
3233
```
34+
-->
3335

3436
Contributing
3537
------------

0 commit comments

Comments
 (0)