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
45 changes: 0 additions & 45 deletions .github/workflows/casket-pages.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ jobs:
repository: hyperpolymath/ddraig-ssg
path: .ddraig-ssg
- name: Compile Ddraig
# Best-effort: a failed Idris build must not stop the repo publishing.
continue-on-error: true
working-directory: .ddraig-ssg
run: idris2 Ddraig.idr -o ddraig
- name: Build site
continue-on-error: true
run: |
mkdir -p src
if [ ! -f src/index.md ] && [ -f README.md ]; then
Expand All @@ -38,6 +41,32 @@ jobs:
echo "# ${GITHUB_REPOSITORY}" > src/index.md
fi
./.ddraig-ssg/build/exec/ddraig build src _site https://hyperpolymath.github.io/${GITHUB_REPOSITORY#*/}
- name: Overlay the canonical www bundle
shell: bash
run: |
set -euo pipefail
# Publish the canonical bundle alongside whatever the SSG produced.
#
# www/public/ -> the servable site root, used as a fallback
# www/.well-known/ -> must be reachable at /.well-known/ on this
# origin (RFC 9116, and RSR check
# www/.well-known/security.txt)
#
# Everything else under www/ (dns/, policies/, profiles/, runbooks/,
# errors/) is source material and is deliberately NOT published, so
# only these two subtrees are copied rather than all of www/.
mkdir -p _site
# -n (no-clobber): a page the SSG did produce always wins, so the
# bundle can never regress a working site. It only fills the gaps.
if [ -d www/public ]; then
cp -an www/public/. _site/
fi
if [ -d www/.well-known ]; then
mkdir -p _site/.well-known
cp -a www/.well-known/. _site/.well-known/
fi
echo "published tree:"
find _site -maxdepth 2 | sort
- name: Upload artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
with:
Expand Down
30 changes: 30 additions & 0 deletions www/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>git-reticulator</title>
<style>
:root{color-scheme:light dark}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:grid;place-items:center;font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:#fafafa;color:#111}
@media (prefers-color-scheme:dark){body{background:#0d0d0f;color:#e8e8ea}}
.card{max-width:34rem;padding:2.5rem;text-align:center}
h1{font-size:clamp(2rem,6vw,3.2rem);margin:0 0 .4rem;letter-spacing:-.02em}
.dom{font-family:ui-monospace,monospace;font-size:.85rem;opacity:.5}
p{margin:1.4rem 0 0;opacity:.8}
.tag{display:inline-block;margin-top:1.8rem;padding:.35rem .9rem;border:1px solid currentColor;border-radius:999px;font-size:.8rem;opacity:.55}
footer{margin-top:2.6rem;font-size:.76rem;opacity:.4}
a{color:inherit}
</style>
</head>
<body>
<main class="card">
<h1>git-reticulator</h1>
<div class="dom">hyperpolymath.github.io/git-reticulator</div>
<p>Site in preparation.</p>
<div class="tag">Coming soon</div>
<footer>part of the hyperpolymath estate &middot; <a href="/.well-known/security.txt">security.txt</a></footer>
</main>
</body>
</html>
Loading