Make sure you have python
and pip
3 installed on your host OS. Start by installing pipenv
:
pip3 install --user pipenv
Clone the repository:
git clone --recurse-submodules git@github.com:kiyui/dont-reinvent-bicycle.git dont-reinvent-велосипед
Install the dependencies:
pipenv install
This outputs the site to a temporary directory with a live-preview at http://localhost:8000
pipenv run pelican -s ./pelicanconf.py -lr --relative-urls -o $(mktemp -d)
Build the site to the output/
directory by running:
pipenv run pelican -s ./pelicanconf.py
After reviewing and committing the changes to the directory, publish it by pushing it to the gh-pages
subtree:
git subtree push --prefix output origin gh-pages
Build the site with the desired output and then run:
docker build -t dafnelately/dont-reinvent-bicycle:latest .
You can preview the container at http://localhost:8000 by running:
docker run --rm -p 8000:80 dafnelately/dont-reinvent-bicycle:latest
Generating a pygment theme:
pipenv run pygmentize -S perldoc -f html -a .highlight > theme/static/css/pygment.css