Pages Source
Codeberg Pages reads the entire content of the repository as a website. To use any sort of static site generation the source needs to be in a different repo. This, pages-source, contains the source to generate my pages site.
Steps
So long as repository is set in _config.yaml the following should work. It
uses the docker image from the github-pages gem repository but executes
github-pages instead of jekyll serve. Longer term I would like to remove all
of the assumptions of github-pages to make some sort of “hubless-pages” tool
but I don’t have the patience right now nor the ability (I don’t know much about
Ruby).
export SOURCE="$(pwd)"
export TARGET="${SOURCE}/../JacksonBailey.codeberg.page/"
cd ${TARGET}
git ls-files | xargs git rm
cd ${SOURCE}
docker run --rm \
-p 4000:4000 \
-u `id -u`:`id -g` \
-v `realpath $(pwd)`:/src/site \
ghcr.io/github/pages-gem:v232 \
/src/gh/pages-gem/bin/github-pages build --verbose
cp -R _site/ ../JacksonBailey.codeberg.page/