From 84043f82352d366262f762b2afe17ba4722d1442 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Wed, 4 Aug 2021 09:41:04 -0800 Subject: [PATCH] feat(docs): :construction_worker: add netlify.toml for docs Add netlify.toml file for automated deployed of documentation on netlify --- .vscode/settings.json | 2 +- netlify.toml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 netlify.toml diff --git a/.vscode/settings.json b/.vscode/settings.json index 6a7b9ba50..9f9cd461f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,7 +16,7 @@ "cSpell.words": ["compression", "hkotel", "performant", "postgres", "webp"], "search.mode": "reuseEditor", "python.linting.flake8Enabled": true, - "conventionalCommits.scopes": ["frontend"], + "conventionalCommits.scopes": ["frontend", "docs"], "editor.formatOnSave": true, "eslint.workingDirectories": ["./frontend"], "editor.codeActionsOnSave": { diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 000000000..6f892c7f2 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,10 @@ +[build] +publish = "docs/site/" +command = """ +restore_home_cache ".cache" "pip cache" && +restore_cwd_cache '.venv' 'python virtualenv' && +pip3 install -q poetry && +poetry config settings.virtualenvs.in-project true && +poetry install && +poetry run mkdocs build +""" \ No newline at end of file