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
35fdaca7
Commit
35fdaca7
authored
May 02, 2013
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get Pylons theme working in Sphinx build.
parent
d7165154
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
docs/_themes
docs/_themes
+1
-1
docs/conf.py
docs/conf.py
+26
-0
No files found.
_themes
@
de1ebd27
Subproject commit
03e5e5aaaeddc4c9aea887478c7e7b379a127b6f
Subproject commit
de1ebd27d5a699e60e13947f479266e70020dd79
docs/conf.py
View file @
35fdaca7
...
@@ -92,6 +92,32 @@ today_fmt = '%B %d, %Y'
...
@@ -92,6 +92,32 @@ today_fmt = '%B %d, %Y'
# The name of the Pygments (syntax highlighting) style to use.
# The name of the Pygments (syntax highlighting) style to use.
pygments_style
=
'sphinx'
pygments_style
=
'sphinx'
# Add and use Pylons theme
if
'sphinx-build'
in
' '
.
join
(
sys
.
argv
):
# protect against dumb importers
from
subprocess
import
call
,
Popen
,
PIPE
p
=
Popen
(
'which git'
,
shell
=
True
,
stdout
=
PIPE
)
git
=
p
.
stdout
.
read
().
strip
()
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__
))
sys
.
path
.
append
(
os
.
path
.
abspath
(
parent
))
wd
=
os
.
getcwd
()
os
.
chdir
(
parent
)
sys
.
path
.
append
(
parent
)
# 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