Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/ci-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
|| '${{ github.base_ref }}' == 'master' ]]; then
# Pick Agda version for master
echo "AGDA_COMMIT=tags/v2.6.4" >> $GITHUB_ENV;
echo "AGDA_HTML_DIR=html" >> $GITHUB_ENV
echo "AGDA_HTML_DIR=html/master" >> $GITHUB_ENV
elif [[ '${{ github.ref }}' == 'refs/heads/experimental' \
|| '${{ github.base_ref }}' == 'experimental' ]]; then
# Pick Agda version for experimental
Expand Down Expand Up @@ -125,6 +125,7 @@ jobs:
run: cabal update

- name: Install alex & happy
if: steps.cache-cabal.outputs.cache-hit != 'true'
run: |
${{ env.CABAL_INSTALL }} alex
${{ env.CABAL_INSTALL }} happy
Expand Down Expand Up @@ -177,6 +178,9 @@ jobs:
rm -f '${{ env.AGDA_HTML_DIR }}'/*.css
${{ env.AGDA }} --html --html-dir ${{ env.AGDA_HTML_DIR }} index.agda

cp travis/* .
./landing.sh

- name: Deploy HTML
uses: JamesIves/[email protected]
if: ${{ success() && env.AGDA_DEPLOY }}
Expand Down
16 changes: 16 additions & 0 deletions travis/agda-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions travis/landing-bottom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
</ul>
</div>
</body>
</html>
24 changes: 24 additions & 0 deletions travis/landing-top.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<html>

<head>
<title>Documention for the Agda standard library</title>
</head>

<body>

<div id="container" style="width:50%;min-width:500px;margin:auto">
<img src="agda-logo.svg" style="width:80px;float:right" />
<h1>Documention for the Agda standard library</h1>

<hr />

<h2>Development versions</h2>

<ul>
<li><a href="master">master</a></li>
<li><a href="experimental">experimental</a></li>
</ul>

<h2>Released versions</h2>

<ul>
17 changes: 17 additions & 0 deletions travis/landing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
set -eu
set -o pipefail

rm html/index.html

cat landing-top.html >> landing.html

find html/ -name "index.html" \
| grep -v "master\|experimental" \
| sort -r \
| sed 's|html/\([^\/]*\)/index.html| <li><a href="\1">\1</a></li>|g' \
>> landing.html

cat landing-bottom.html >> landing.html

mv landing.html html/index.html
mv agda-logo.svg html/