2020-03-10 12:39:35 +00:00
|
|
|
Index: venusian-3.0.0/docs/conf.py
|
2019-02-08 09:46:15 +00:00
|
|
|
===================================================================
|
2020-03-10 12:39:35 +00:00
|
|
|
--- venusian-3.0.0.orig/docs/conf.py 2020-03-10 12:14:58.987113508 +0100
|
|
|
|
+++ venusian-3.0.0/docs/conf.py 2020-03-10 12:21:03.213085906 +0100
|
|
|
|
@@ -16,40 +16,10 @@ import sys
|
|
|
|
import os
|
2019-02-08 09:46:15 +00:00
|
|
|
import datetime
|
|
|
|
import pkg_resources
|
2020-03-10 12:39:35 +00:00
|
|
|
+import pylons_sphinx_themes
|
2019-02-08 09:46:15 +00:00
|
|
|
|
|
|
|
-# Add and use Pylons theme
|
2020-03-10 12:39:35 +00:00
|
|
|
-if "sphinx-build" in " ".join(sys.argv): # protect against dumb importers
|
2019-02-08 09:46:15 +00:00
|
|
|
- from subprocess import call, Popen, PIPE
|
2020-03-10 12:39:35 +00:00
|
|
|
-
|
|
|
|
- p = Popen("which git", shell=True, stdout=PIPE)
|
2019-02-08 09:46:15 +00:00
|
|
|
- git = p.stdout.read().strip()
|
|
|
|
- cwd = os.getcwd()
|
2020-03-10 12:39:35 +00:00
|
|
|
- _themes = os.path.join(cwd, "_themes")
|
2019-02-08 09:46:15 +00:00
|
|
|
-
|
|
|
|
- if not os.path.isdir(_themes):
|
2020-03-10 12:39:35 +00:00
|
|
|
- call(
|
|
|
|
- [git, "clone", "git://github.com/Pylons/pylons_sphinx_theme.git", "_themes"]
|
|
|
|
- )
|
2019-02-08 09:46:15 +00:00
|
|
|
- else:
|
|
|
|
- os.chdir(_themes)
|
2020-03-10 12:39:35 +00:00
|
|
|
- call([git, "checkout", "master"])
|
|
|
|
- call([git, "pull"])
|
2019-02-08 09:46:15 +00:00
|
|
|
- os.chdir(cwd)
|
|
|
|
-
|
2020-03-10 12:39:35 +00:00
|
|
|
- sys.path.append(os.path.abspath("_themes"))
|
2019-02-08 09:46:15 +00:00
|
|
|
-
|
|
|
|
- parent = os.path.dirname(os.path.dirname(__file__))
|
|
|
|
- sys.path.append(os.path.abspath(parent))
|
|
|
|
- wd = os.getcwd()
|
|
|
|
- os.chdir(parent)
|
|
|
|
- sys.path.append(parent)
|
|
|
|
-
|
|
|
|
-# Options for HTML output
|
|
|
|
-# -----------------------
|
|
|
|
-
|
2020-03-10 12:39:35 +00:00
|
|
|
-sys.path.append(os.path.abspath("_themes"))
|
|
|
|
-html_theme_path = ["_themes"]
|
|
|
|
html_theme = "pylons"
|
2019-02-08 09:46:15 +00:00
|
|
|
+html_theme_path = pylons_sphinx_themes.get_html_themes_path()
|
2020-03-10 12:39:35 +00:00
|
|
|
html_theme_options = dict(github_url="https://github.com/Pylons/venusian")
|
2019-02-08 09:46:15 +00:00
|
|
|
|
|
|
|
# If your extensions are in another directory, add it here. If the
|