#!/bin/bash # This script demonstrates how to use coppewebite to build a blog from gemtext, including RSS feeds. # # This scripts uses "uv --process .. run coppewebite-*" to run the coppewebite commands from the source in this repository. # If you have installed coppewebite following the instructions, then you can replace that by only "coppewebite-*". set -eu # Ensure target is an empty directory. rm -rf target mkdir target # Copy all content to target. cp -r source/* target/ # Create an index page with all posts, from a header followed by the results of coppewebite-indexer. { cat <
target/index.gmi # Generate an RSS feed. uv --project .. run coppewebite-to-rss