Commit
Message
Changed Files (3)
-
modified .abbaye/theme/version_index.html.j2
diff --git a/.abbaye/theme/version_index.html.j2 b/.abbaye/theme/version_index.html.j2 index 349de4d..9b0afb7 100644 --- a/.abbaye/theme/version_index.html.j2 +++ b/.abbaye/theme/version_index.html.j2 @@ -44,20 +44,34 @@ <li><a href="docs.tar.gz">⬇ docs.tar.gz</a></li> {% endif %} </ul> - {% endif %} {% if has_dist %} + {% endif %} + {% if has_dist %} <h3>Downloads</h3> - <ul> - {% for file in dist_files %} - <li> - <a href="dist/{{ file.name }}">⬇ {{ file.name }}</a> - <div class="dist-meta"> - {{ file.size_human }}<br /><code title="SHA-256" - >sha256: {{ file.sha256 }}</code - > - </div> - </li> + {% for cat in dist_categories %} + {% if cat.category %} + <h4>{{ cat.category }}</h4> + {% endif %} + {% for group in cat.groups %} + {% if group.name %} + <h5>{{ group.name }}</h5> + {% endif %} + {% if group.comment %} + <p class="dist-comment">{{ group.comment }}</p> + {% endif %} + <ul> + {% for file in group.files %} + <li> + <a href="dist/{{ file.name }}">⬇ {{ file.name }}</a> + <div class="dist-meta"> + {{ file.size_human }}<br /><code title="SHA-256" + >sha256: {{ file.sha256 }}</code + > + </div> + </li> + {% endfor %} + </ul> {% endfor %} - </ul> + {% endfor %} {% endif %} </aside> <main class="release-content"> -
modified abbaye.toml
diff --git a/abbaye.toml b/abbaye.toml index 5b52783..25233ab 100644 --- a/abbaye.toml +++ b/abbaye.toml @@ -11,6 +11,8 @@ dirty_suffix = "-dirty" [changelog] +[git_ui] + [[builders]] type = "archive" ignore_patterns = [".git/", "*.tar.gz"] -
modified contrib/release.sh
diff --git a/contrib/release.sh b/contrib/release.sh index 007ef79..0ab295c 100755 --- a/contrib/release.sh +++ b/contrib/release.sh @@ -54,7 +54,21 @@ git commit -m "release: v$VERSION" echo "==> Tagging v$VERSION" git tag -a "v$VERSION" -m "release: v$VERSION" +echo "==> Building release site with abbaye" +if command -v abbaye &>/dev/null; then + rm -rf public/ + abbaye build 2>&1 || echo "warning: abbaye build failed" +else + echo "warning: abbaye not found, skipping site build" +fi + +echo "==> Uploading to server" +read -r -p "Upload public/ to ololduck@vit.am:public_html/search_hub/? [y/N] " REPLY +if [[ "$REPLY" =~ ^[Yy]$ ]]; then + rsync -avz --progress public/ ololduck@vit.am:public_html/search_hub/ 2>&1 +fi echo "" echo "Release v$VERSION ready." echo "To publish: git push --tags origin main" +echo "To upload: rsync -avz --progress public/ ololduck@vit.am:public_html/search_hub/" echo "To undo: git tag -d v$VERSION && git reset --soft HEAD~1"