Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
gevent
Commits
ce34f672
Commit
ce34f672
authored
Feb 26, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove website-specific stuff from doc/conf.py
parent
40802d39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
70 deletions
+3
-70
doc/_static/index.css_t
doc/_static/index.css_t
+0
-20
doc/conf.py
doc/conf.py
+3
-50
No files found.
doc/_static/index.css_t
deleted
100644 → 0
View file @
40802d39
@import url("default.css");
body.homepage {
background-color: #ffffff;
width: 805px;
margin: 40px auto 20px auto;
}
div.body h1,
div.body h2,
div.body h3,
div.body h4,
div.body h5,
div.body h6 {
background-color: #ffffff;
}
em {
font-style: normal;
}
doc/conf.py
View file @
ce34f672
...
...
@@ -11,19 +11,17 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import
sys
,
os
,
traceback
import
sys
,
os
sys
.
path
.
append
(
'.'
)
# for mysphinxext
try
:
if
not
os
.
path
.
exists
(
'changelog.rst'
)
and
os
.
path
.
exists
(
'../changelog.rst'
):
print
'Linking ../changelog.rst to changelog.rst'
if
hasattr
(
os
,
'symlink'
):
os
.
symlink
(
'../changelog.rst'
,
'changelog.rst'
)
else
:
import
shutil
shutil
.
copyfile
(
'../changelog.rst'
,
'changelog.rst'
)
except
Exception
,
ex
:
if
'File exists'
not
in
str
(
ex
):
traceback
.
print_exc
()
# If extensions (or modules to document with autodoc) are in another directory,
...
...
@@ -245,48 +243,3 @@ class MyClassDocumenter(ClassDocumenter):
autodoc
.
ClassDocumenter
=
MyClassDocumenter
# overload StandaloneHTMLBuilder to take custom_page_templates into account
custom_page_templates
=
{
'index'
:
'index.html'
}
from
sphinx.builders.html
import
StandaloneHTMLBuilder
class
MyStandaloneHTMLBuilder
(
StandaloneHTMLBuilder
):
def
handle_page
(
self
,
pagename
,
addctx
,
templatename
=
'page.html'
,
outfilename
=
None
,
event_arg
=
None
):
templatename
=
custom_page_templates
.
get
(
pagename
,
templatename
)
return
super
(
MyStandaloneHTMLBuilder
,
self
).
handle_page
(
pagename
=
pagename
,
addctx
=
addctx
,
templatename
=
templatename
,
outfilename
=
outfilename
,
event_arg
=
event_arg
)
from
sphinx.builders
import
html
html
.
StandaloneHTMLBuilder
=
MyStandaloneHTMLBuilder
# link to jquery.js hosted at ajax.googleapis.com
index
=
html
.
StandaloneHTMLBuilder
.
script_files
.
index
(
'_static/jquery.js'
)
html
.
StandaloneHTMLBuilder
.
script_files
[
index
]
=
(
'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'
)
# don't add permalinks on index.html
disable_permalinks
=
[
'index'
]
disable_permalinks
=
[
os
.
path
.
abspath
(
x
+
source_suffix
)
for
x
in
disable_permalinks
]
from
sphinx.writers.html
import
HTMLTranslator
orig_depart_title
=
HTMLTranslator
.
depart_title
def
HTMLTranslator_depart_title
(
self
,
node
):
if
node
.
source
in
disable_permalinks
:
stored_add_permalinks
=
self
.
add_permalinks
self
.
add_permalinks
=
False
else
:
stored_add_permalinks
=
None
try
:
return
orig_depart_title
(
self
,
node
)
finally
:
if
stored_add_permalinks
is
not
None
:
self
.
add_permalinks
=
stored_add_permalinks
HTMLTranslator
.
depart_title
=
HTMLTranslator_depart_title
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