[Python-checkins] bpo-37860: Add netlify deploy preview for docs (GH-15288)
Carol Willing
webhook-mailer at python.org
Wed Aug 21 09:08:51 EDT 2019
https://github.com/python/cpython/commit/87bc3b7a0b0c41ea5da2aa137c4145f437a1c9fd
commit: 87bc3b7a0b0c41ea5da2aa137c4145f437a1c9fd
branch: master
author: Ashwin Ramaswami <aramaswamis at gmail.com>
committer: Carol Willing <carolcode at willingconsulting.com>
date: 2019-08-21T22:08:47+09:00
summary:
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
files:
A Doc/requirements.txt
A Doc/runtime.txt
A netlify.toml
diff --git a/Doc/requirements.txt b/Doc/requirements.txt
new file mode 100644
index 000000000000..e0d7ca869af8
--- /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 000000000000..548d71365f0e
--- /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 000000000000..387c8f954ada
--- /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
More information about the Python-checkins
mailing list