Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodburi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
zodburi
Commits
22dcd6e1
Commit
22dcd6e1
authored
May 02, 2013
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apparently _themes is a submodule
parent
92c83408
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
29 deletions
+10
-29
docs/conf.py
docs/conf.py
+10
-29
No files found.
docs/conf.py
View file @
22dcd6e1
...
@@ -19,17 +19,6 @@
...
@@ -19,17 +19,6 @@
import
sys
,
os
import
sys
,
os
parent
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
sys
.
path
.
append
(
os
.
path
.
abspath
(
parent
))
wd
=
os
.
getcwd
()
os
.
chdir
(
parent
)
os
.
system
(
'%s setup.py test -q'
%
sys
.
executable
)
os
.
chdir
(
wd
)
for
item
in
os
.
listdir
(
parent
):
if
item
.
endswith
(
'.egg'
):
sys
.
path
.
append
(
os
.
path
.
join
(
parent
,
item
))
# General configuration
# General configuration
# ---------------------
# ---------------------
...
@@ -93,31 +82,23 @@ today_fmt = '%B %d, %Y'
...
@@ -93,31 +82,23 @@ today_fmt = '%B %d, %Y'
pygments_style
=
'sphinx'
pygments_style
=
'sphinx'
# Add and use Pylons theme
# Add and use Pylons theme
if
'sphinx-build'
in
' '
.
join
(
sys
.
argv
):
# protect against dumb importers
if
'sphinx-build'
in
' '
.
join
(
sys
.
argv
):
# protect against dumb importers
from
subprocess
import
call
,
Popen
,
PIPE
from
subprocess
import
call
,
Popen
,
PIPE
p
=
Popen
(
'which git'
,
shell
=
True
,
stdout
=
PIPE
)
p
=
Popen
(
'which git'
,
shell
=
True
,
stdout
=
PIPE
)
git
=
p
.
stdout
.
read
().
strip
()
wd
=
os
.
getcwd
()
cwd
=
os
.
getcwd
()
_themes
=
os
.
path
.
join
(
cwd
,
'_themes'
)
if
not
os
.
path
.
isdir
(
_themes
):
call
([
git
,
'clone'
,
'git://github.com/Pylons/pylons_sphinx_theme.git'
,
'_themes'
])
else
:
os
.
chdir
(
_themes
)
call
([
git
,
'checkout'
,
'master'
])
call
([
git
,
'pull'
])
os
.
chdir
(
cwd
)
sys
.
path
.
append
(
os
.
path
.
abspath
(
'_themes'
))
parent
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
parent
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
sys
.
path
.
append
(
os
.
path
.
abspath
(
parent
))
sys
.
path
.
append
(
os
.
path
.
abspath
(
parent
))
wd
=
os
.
getcwd
(
)
sys
.
path
.
append
(
os
.
path
.
abspath
(
'_themes'
)
)
os
.
chdir
(
parent
)
os
.
chdir
(
parent
)
sys
.
path
.
append
(
parent
)
git
=
p
.
stdout
.
read
().
strip
()
call
([
git
,
'submodule'
,
'update'
,
'--init'
,
'docs/_themes'
])
os
.
system
(
'%s setup.py test -q'
%
sys
.
executable
)
os
.
chdir
(
wd
)
for
item
in
os
.
listdir
(
parent
):
if
item
.
endswith
(
'.egg'
):
sys
.
path
.
append
(
os
.
path
.
join
(
parent
,
item
))
# Options for HTML output
# Options for HTML output
# -----------------------
# -----------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment