Tracking things using static site generators
Find a file
2024-06-05 21:05:43 +01:00
build Add meaningless close buttons to filters 2024-06-05 21:05:43 +01:00
.gitignore Fully working version (?) 2024-03-24 17:26:33 +00:00
backlog.py Fully working version (?) 2024-03-24 17:26:33 +00:00
cardstring.py Fully working version (?) 2024-03-24 17:26:33 +00:00
demo.org Add demo org file 2024-02-18 22:48:26 +00:00
gamesort.py Customisable start year 2024-03-29 10:43:16 +00:00
generate.py Fully working version (?) 2024-03-24 17:26:33 +00:00
history.py RSS date problem? 2024-05-26 07:48:34 +01:00
init.py Fix server upload issue 2024-03-24 17:37:32 +00:00
library.py Rebuild in modular fashion 2024-02-18 22:38:53 +00:00
README.org Replace google fonts with fonts hosted on the server 2024-04-27 23:22:07 +01:00
skeleton.py Replace google fonts with fonts hosted on the server 2024-04-27 23:22:07 +01:00
sublibrary.py Add meaningless close buttons to filters 2024-06-05 21:05:43 +01:00
UNLICENSE Standing on the shoulders of giants 2024-03-24 21:15:39 +00:00
variables-template.py Fix wrongly named variable 2024-03-29 11:18:58 +00:00

Trackers

Dependencies

  • python3
  • orgparse (install via pip)
  • rclone (for syncing to the server)

Tracking games with a backloggery clone

Setup

Fonts

Upload the fonts Lato, Titillium Web, and Material Icons to the directory /fonts on your server (I recommend google-webfonts-helper). Check the filenames are consistent with those in build/backloggery.css. Alternatively, you can load the fonts remotely and adjust the page head HTML generated by skeleton.py.

Setting the variables

Rename variables-template.py to variables.py and edit:

  • endlessgames: a list of “endless” games in the format title (console)
  • orgpath: absolute path to the root directory in which .org files are stored, including trailing slash
  • localpath: absolute path to this directory, including trailing slash
  • serverpath: path to directory on the server where files will be uploaded, including trailing slash
  • domain: https://yourdomain.tld without trailing slash
  • rclonesiteroot: path rclone uses to access your webserver
  • description: content for the “about” section (can include HTML tags)
  • startyear: year from which to begin tracking (an integer)
  • hue: theme colour expressed as a hue from 0 to 360
  • consoles: add or remove consoles following the format provided (.png images must be added to the build directory with a filename corresponding with the value of "img" for each console)

The rest

  • Run python3 init.py and then chmod +x build.sh.
  • Create the directory on the server.

Generating the files

  • Run python3 generate.py local to build in the local build directory.
  • Run ./build.sh to build and upload to the server.