Skip to content

Instantly share code, notes, and snippets.

@seandstewart
Created January 7, 2020 12:58
Show Gist options
  • Save seandstewart/6e75e61775b3edda92faa0ccb69a4ba9 to your computer and use it in GitHub Desktop.
Save seandstewart/6e75e61775b3edda92faa0ccb69a4ba9 to your computer and use it in GitHub Desktop.
A Netlify config with a custom build script supporting Poetry and MkDocs
[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