Created
October 24, 2019 19:03
-
-
Save simongarisch/07750941f3097734d76943fef0727d1d to your computer and use it in GitHub Desktop.
Commands for creating a site with Nikola
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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