From 87bc3b7a0b0c41ea5da2aa137c4145f437a1c9fd Mon Sep 17 00:00:00 2001 From: Ashwin Ramaswami Date: Wed, 21 Aug 2019 06:08:47 -0700 Subject: [PATCH] bpo-37860: Add netlify deploy preview for docs (GH-15288) * add netlify deploy preview * fix publish path * install python3 venv * add sudo * try without venv * install right dependencies * use python3, not python * use pip3 * python3.7 * use requirements.txt * move requirements.txt to Doc * use python 3.7 in runtime.txt * move runtime.txt * Update requirements.txt --- Doc/requirements.txt | 5 +++++ Doc/runtime.txt | 1 + netlify.toml | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 Doc/requirements.txt create mode 100644 Doc/runtime.txt create mode 100644 netlify.toml diff --git a/Doc/requirements.txt b/Doc/requirements.txt new file mode 100644 index 00000000000..e0d7ca869af --- /dev/null +++ b/Doc/requirements.txt @@ -0,0 +1,5 @@ +# Requirements for docs build on netlify +# Pin sphinx to version specified in .travis.yml +sphinx==2.0.1 +blurb +python-docs-theme diff --git a/Doc/runtime.txt b/Doc/runtime.txt new file mode 100644 index 00000000000..548d71365f0 --- /dev/null +++ b/Doc/runtime.txt @@ -0,0 +1 @@ +3.7 \ No newline at end of file diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000000..387c8f954ad --- /dev/null +++ b/netlify.toml @@ -0,0 +1,4 @@ +[build] + base = "Doc/" + command = "make html" + publish = "Doc/build/html" \ No newline at end of file