bpo-37860: Add netlify deploy preview for docs (GH-15288)
authorAshwin Ramaswami <aramaswamis@gmail.com>
Wed, 21 Aug 2019 13:08:47 +0000 (06:08 -0700)
committerCarol Willing <carolcode@willingconsulting.com>
Wed, 21 Aug 2019 13:08:47 +0000 (22:08 +0900)
* 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 [new file with mode: 0644]
Doc/runtime.txt [new file with mode: 0644]
netlify.toml [new file with mode: 0644]

diff --git a/Doc/requirements.txt b/Doc/requirements.txt
new file mode 100644 (file)
index 0000000..e0d7ca8
--- /dev/null
@@ -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 (file)
index 0000000..548d713
--- /dev/null
@@ -0,0 +1 @@
+3.7
\ No newline at end of file
diff --git a/netlify.toml b/netlify.toml
new file mode 100644 (file)
index 0000000..387c8f9
--- /dev/null
@@ -0,0 +1,4 @@
+[build]
+    base = "Doc/"
+    command = "make html"
+    publish = "Doc/build/html"
\ No newline at end of file