Created
January 7, 2020 12:58
-
-
Save seandstewart/6e75e61775b3edda92faa0ccb69a4ba9 to your computer and use it in GitHub Desktop.
A Netlify config with a custom build script supporting Poetry and MkDocs
This file contains 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
[build] | |
publish = "site" | |
command = """ | |
restore_home_cache ".cache" "pip cache" && | |
restore_cwd_cache '.venv' 'python virtualenv' && | |
pip3 install -q poetry && | |
poetry config virtualenvs.in-project true && | |
poetry install -v && | |
mkdocs build -d site | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment