This is the static site generator for Dwelling of Duels.
- Install Python 3
- Ensure that you can run
python
andpip
in your terminal - Download and unzip the latest release of this software
- Open a terminal to the unzipped release
- Install python packages:
pip install -r requirements.txt
Edit site.cfg
to configure your build of the site. It has the following
settings:
voting
controls whether or not the site is in voting mode. Valid values areon
andoff
.deadline_date
is the date displayed in the deadline section of the sidebar. It must be a date of the formYYYY-MM-DD
. For example:2016-01-31
.deadline_time
is the time displayed in the deadline section of the sidebar.archive_dir
is the name of the local directory that holds the DoD archive folder. It defaults tododarchive
. You probably don't need to change this.
The deadline_*
settings refer to the voting deadline when voting
is set to
on
and the submission deadline when voting
is set to off.
Add artist links to the artist-links.csv
file.
Ensure that the archive_dir
you specified in site.cfg
directory is in the
same directory as build.py
.
To build for deploying to a web server:
python build.py
To build for local testing:
python build.py test
In either of the above scenarios, you will find a deploy
directory containing
the newly-built site.
Edit front-page.md
to add content to the front page of the site under the
banner image. This file will be parsed as Markdown when you run build.py
.
Below are instructions on how to use the site through the different phases of a duel.
- Ensure that all tagged songs and ancillary files (banner image, listening
log, etc) for the duel that just ended are in the
archive_dir
both locally and on the server. - Set
voting
tooff
insite.cfg
. - Edit front page content in
front-page.md
. - Regenerate the site (see Usage section above).
- Create the new duel's directory in
archive_dir
. - Add anonymous MP3s and
banner.jpg
to the new duel's directory. - Set
voting
toon
insite.cfg
. - Regenerate the site (see Usage section above).