This is a static site generator for my boardgames hobby.
composer install
make
(the BGG_USERNAME
environment variable with your BoardGameGeek username has to be set)build/index.html
in your browser(The deployment to GitHub pages is handled by the GitHub action in .github/workflows/pages.yml
)
The download-bgg-data.php
script reads the Board Game Geek XML API to retrieve my profile data and stores that as serialized PHP objects on disk (see assets/*.serialized.txt
)
The generate-html.php
script unserializes the PHP objects and uses them to generate an HTML file in the build/
directory.
The build/
directory will be missing required assets such as CSS and JS files.
Use the make
command to copy those into the build/
directory.
Run make download-bgg-data
to just download the data from the BGG API.
Run make generate-html
to just generate the HTML from the downloaded data (useful for faster development after the data was downloaded once).
Run make clean
to cleanup any builds.