Skip to content

Instantly share code, notes, and snippets.

@simongarisch
Created October 24, 2019 19:03
Show Gist options
  • Save simongarisch/07750941f3097734d76943fef0727d1d to your computer and use it in GitHub Desktop.
Save simongarisch/07750941f3097734d76943fef0727d1d to your computer and use it in GitHub Desktop.
Commands for creating a site with Nikola
python -m venv env
call "./env/scripts/activate"
pip install Nikola[extras]
nikola init site_name
REM customize a bootstrap theme
REM https://bootswatch.com/
REM this will need to be placed under THEME = 'bootstrap4-jinja-darkly' in conf.py
REM nikola help subtheme
cd site_name
nikola subtheme --name=bootstrap4-jinja-darkly --parent=bootstrap4-jinja -s darkly
REM keep a record of your dependencies
pip freeze > requirements.txt
REM build and serve the site
nikola build
nikola serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment