Skip to content

Commit 16fbb92

Browse files
committed
GHA: haddocks
* Use cabal-head in GHA for building haddocks. * Added prologue.
1 parent b6ee682 commit 16fbb92

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.github/workflows/github-page.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
url: ${{ steps.deployment.outputs.page_url }}
3232

3333
steps:
34+
- name: Install pandoc
35+
run: sudo apt install pandoc
36+
3437
- name: Checkout ouroboros-network repository
3538
uses: actions/checkout@v4
3639

@@ -39,6 +42,7 @@ jobs:
3942
id: setup-haskell
4043
with:
4144
ghc-version: ${{ matrix.ghc }}
45+
# we need unpublished `cabal` version to support sublibraries
4246
cabal-version: 'head'
4347

4448
- uses: actions/cache@v4
@@ -54,9 +58,12 @@ jobs:
5458
- name: Build plan
5559
run: cabal build --dry-run --enable-tests all
5660

61+
- name: Run pandoc
62+
run: pandoc --from=gfm --to=haddock --output=README.haddock README.md
63+
5764
- name: Build Haddock documentation 🔧
5865
run: |
59-
cabal haddock-project --hackage all
66+
cabal haddock-project --prologue=README.haddock --hackage all
6067
6168
- name: Upload artifacts
6269
uses: actions/upload-pages-artifact@v3

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
dist-newstyle/
2+
README.haddock

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ A robust session type framework which supports [protocol pipelining][protocol-pi
1212
Public content
1313
--------------
1414

15-
Duncan Coutts (@dcoutts) Haskell eXchange 2019 [talk][haskell-eXchange].
15+
[Duncan Coutts][dcoutts] Haskell eXchange 2019 [talk][haskell-eXchange].
1616

17-
Monadic party workshop by Marcin Szamotulski (@coot):
17+
Monadic party workshop by Marcin Szamotulski ([coot]):
1818
* [part 1][monadic-party-part-1]
1919
* [part 2][monadic-party-part-2]
2020
* [part 2][monadic-party-part-3]
2121

22-
Talk at [Haskell Love 2021][haskell-love] by Marcin Szamotulski (@coot), [slides][haskell-love-slides].
22+
Talk at [Haskell Love 2021][haskell-love] by Marcin Szamotulski ([coot]), [slides][haskell-love-slides].
2323

24-
An [Agda][typed-protocols-agda] implementation by Marcin Szamotulski (@coot).
24+
An [Agda][typed-protocols-agda] implementation by Marcin Szamotulski ([coot]).
2525

2626

2727
[protocol-pipelining]: https://www.wikiwand.com/en/Protocol_pipelining
@@ -32,3 +32,5 @@ An [Agda][typed-protocols-agda] implementation by Marcin Szamotulski (@coot).
3232
[haskell-love-slides]: https://coot.me/posts/typed-protocols-at-haskell-love.html
3333
[haskell-love]: https://www.youtube.com/watch?v=EbK6VAqYh3g
3434
[typed-protocols-agda]: https://coot.me/agda/posts.agda.typed-protocols.html
35+
[coot]: https://github.com/coot
36+
[dcoutts]: https://github.com/dcoutts

0 commit comments

Comments
 (0)