Skip to content
This repository
Browse code

updated docs for rtd, again

  • Loading branch information...
commit d9bf4aa019e79e3be255c1ad3a6c984740218cd6 1 parent ec269d7
Blaise Laflamme authored
3  .gitmodules
... ...
@@ -1,3 +0,0 @@
1  
-[submodule "pylons/docs/en/_themes"]
2  
-	path = pylons/docs/en/_themes
3  
-	url = git://github.com/Pylons/pylons_sphinx_theme.git
2  pylons/docs/en/.gitignore
... ...
@@ -1,2 +1,2 @@
1 1
 _build
2  
-
  2
+_themes
4  pylons/docs/en/Makefile
@@ -25,7 +25,7 @@ help:
25 25
 clean:
26 26
 	-rm -rf _build/*
27 27
 
28  
-html: _themes
  28
+html:
29 29
 	mkdir -p _build/html _build/doctrees
30 30
 	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
31 31
 	@echo
@@ -67,5 +67,3 @@ linkcheck:
67 67
 	@echo "Link check complete; look for any errors in the above output " \
68 68
 	      "or in _build/linkcheck/output.txt."
69 69
 
70  
-_themes:
71  
-	cd ../../..; git submodule update --init; cd pylons/docs/en
1  pylons/docs/en/_themes
... ...
@@ -1 +0,0 @@
1  
-Subproject commit 03e5e5aaaeddc4c9aea887478c7e7b379a127b6f
20  pylons/docs/en/conf.py
@@ -80,10 +80,28 @@
80 80
 # -----------------------
81 81
 
82 82
 # Add and use Pylons theme
  83
+from subprocess import call, Popen, PIPE
  84
+
  85
+p = Popen('which git', shell=True, stdout=PIPE)
  86
+git = p.stdout.read().strip()
  87
+cwd = os.getcwd()
  88
+_themes = os.path.join(cwd, '_themes')
  89
+
  90
+if not os.path.isdir(_themes):
  91
+    call([git, 'clone', 'git://github.com/Pylons/pylons_sphinx_theme.git',
  92
+            '_themes'])
  93
+else:
  94
+    os.chdir(_themes)
  95
+    call([git, 'checkout', 'master'])
  96
+    call([git, 'pull'])
  97
+    os.chdir(cwd)
  98
+
83 99
 sys.path.append(os.path.abspath('_themes'))
84 100
 html_theme_path = ['_themes']
85 101
 html_theme = 'pylonsfw'
86  
-html_theme_options = {'github_url':'http://github.com/Pylons/pylons'}
  102
+html_theme_options = dict(
  103
+    github_url='https://github.com/Pylons/pylons'
  104
+    )
87 105
 
88 106
 # The style sheet to use for HTML and HTML Help pages. A file of that name
89 107
 # must exist either in Sphinx' static/ path, or in one of the custom paths
1  rtd.txt
... ...
@@ -0,0 +1 @@
  1
+repoze.sphinx.autointerface

0 notes on commit d9bf4aa

Please sign in to comment.
Something went wrong with that request. Please try again.