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
27c126c9
Commit
27c126c9
authored
Apr 22, 2019
by
Jason Madden
Committed by
GitHub
Apr 22, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1405 from gevent/issue1404
Fix Sphinx 2.0 warnings.
parents
4164db28
1145b3d3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
73 deletions
+34
-73
doc/conf.py
doc/conf.py
+12
-2
doc/mytheme/layout.html
doc/mytheme/layout.html
+20
-24
doc/mytheme/search.html
doc/mytheme/search.html
+0
-45
doc/mytheme/static/basic.css_t
doc/mytheme/static/basic.css_t
+1
-1
doc/mytheme/theme.conf
doc/mytheme/theme.conf
+1
-1
No files found.
doc/conf.py
View file @
27c126c9
...
...
@@ -28,6 +28,10 @@ sys.path.append(os.path.dirname(__file__)) # for mysphinxext
# -- General configuration -----------------------------------------------------
# 1.8 was the last version that runs on Python 2; 2.0+ requires Python 3.
# `autodoc_default_options` was new in 1.8
needs_sphinx
=
"1.8"
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions
=
[
...
...
@@ -53,7 +57,13 @@ extlinks = {'issue': ('https://github.com/gevent/gevent/issues/%s',
'pr'
:
(
'https://github.com/gevent/gevent/pull/%s'
,
'pull request #'
)}
autodoc_default_flags
=
[
'members'
,
'show-inheritance'
]
# Sphinx 1.8+ prefers this to `autodoc_default_flags`. It's documented that
# either True or None mean the same thing as just setting the flag, but
# only None works in 1.8 (True works in 2.0)
autodoc_default_options
=
{
'members'
:
None
,
'show-inheritance'
:
None
,
}
autodoc_member_order
=
'groupwise'
autoclass_content
=
'both'
...
...
@@ -71,7 +81,7 @@ master_doc = 'contents'
# General information about the project.
project
=
u'gevent'
copyright
=
u'2009-201
8
, gevent contributors'
copyright
=
u'2009-201
9
, gevent contributors'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
...
...
doc/mytheme/layout.html
View file @
27c126c9
...
...
@@ -105,10 +105,17 @@
{%- endif %}{% endif %}
{%- endmacro %}
{%- macro script() %}
<script
type=
"text/javascript"
id=
"documentation_options"
data-url_root=
"{{ pathto('', 1) }}"
src=
"{{ pathto('_static/documentation_options.js', 1) }}"
></script>
{%- for js in script_files %}
{{ js_tag(js) }}
{%- endfor %}
{%- endmacro %}
<html
xmlns=
"http://www.w3.org/1999/xhtml"
dir=
"ltr"
>
<head>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=UTF-8"
/>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=UTF-8"
/>
{{ metatags }}
{%- if not embedded and docstitle %}
{%- set titlesuffix = "
—
"|safe + docstitle|e %}
...
...
@@ -119,28 +126,17 @@
<link
rel=
"stylesheet"
href=
"{{ pathto('_static/' + style, 1) }}"
type=
"text/css"
/>
<link
rel=
"stylesheet"
href=
"{{ pathto('_static/pygments.css', 1) }}"
type=
"text/css"
/>
{%- if not embedded %}
{#
<script
type=
"text/javascript"
>
var
DOCUMENTATION_OPTIONS
=
{
URL_ROOT
:
'
{{ url_root }}
'
,
VERSION
:
'
{{ release|e }}
'
,
COLLAPSE_MODINDEX
:
false
,
FILE_SUFFIX
:
'
{{ file_suffix }}
'
,
HAS_SOURCE
:
{{
has_source
|
lower
}}
};
</script>
{%- for scriptfile in script_files %}
<script
type=
"text/javascript"
src=
"{{ pathto(scriptfile, 1) }}"
></script>
{%- endfor %}
{%- if use_opensearch %}
<link
rel=
"search"
type=
"application/opensearchdescription+xml"
title=
"{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
href=
"{{ pathto('_static/opensearch.xml', 1) }}"
/>
{%- endif %} #}
{%- if favicon %}
<link
rel=
"shortcut icon"
href=
"{{ pathto('_static/' + favicon, 1) }}"
/>
{%- endif %}
{%- block scripts %}
{{- script() }}
{%- endblock %}
{%- if favicon %}
<link
rel=
"shortcut icon"
href=
"{{ pathto('_static/' + favicon, 1) }}"
/>
{%- endif %}
{%- endif %}
{%- block linktags %}
{%- block linktags %}
{%- if hasdoc('about') %}
<link
rel=
"author"
title=
"{{ _('About these documents') }}"
href=
"{{ pathto('about') }}"
/>
{%- endif %}
...
...
@@ -163,7 +159,7 @@
{%- if prev %}
<link
rel=
"prev"
title=
"{{ prev.title|striptags }}"
href=
"{{ prev.link|e }}"
/>
{%- endif %}
{%- endblock %}
{%- endblock %}
{%- block extrahead %} {% endblock %}
</head>
...
...
@@ -232,7 +228,7 @@
<div
class=
"left"
id=
"footer-left"
>
<p>
version {{theme_gevent_version}}
<a
href=
"http://denisbilenko.com"
class=
"quiet-link"
>
©
2009-201
8
Denis Bilenko, gevent contributors
</a></p>
<p>
version {{theme_gevent_version}}
<a
href=
"http://denisbilenko.com"
class=
"quiet-link"
>
©
2009-201
9
Denis Bilenko, gevent contributors
</a></p>
<div
class=
"clearer"
>
</div>
...
...
doc/mytheme/search.html
deleted
100644 → 0
View file @
4164db28
{% extends "layout.html" %}
{% set title = _('Search') %}
{% set script_files = script_files + ['_static/searchtools.js'] %}
{% block body %}
<h1
id=
"search-documentation"
>
{{ _('Search') }}
</h1>
<div
id=
"fallback"
class=
"admonition warning"
>
<script
type=
"text/javascript"
>
$
(
'
#fallback
'
).
hide
();
</script>
<p>
{% trans %}Please activate JavaScript to enable the search
functionality.{% endtrans %}
</p>
</div>
<p>
{% trans %}From here you can search these documents. Enter your search
words into the box below and click "search". Note that the search
function will automatically search for all of the words. Pages
containing fewer words won't appear in the result list.{% endtrans %}
</p>
<form
action=
""
method=
"get"
>
<input
type=
"text"
name=
"q"
value=
""
/>
<input
type=
"submit"
value=
"{{ _('search') }}"
/>
<span
id=
"search-progress"
style=
"padding-left: 10px"
></span>
</form>
{% if search_performed %}
<h2>
{{ _('Search Results') }}
</h2>
{% if not search_results %}
<p>
{{ _('Your search did not match any results.') }}
</p>
{% endif %}
{% endif %}
<div
id=
"search-results"
>
{% if search_results %}
<ul>
{% for href, caption, context in search_results %}
<li><a
href=
"{{ pathto(item.href) }}"
>
{{ caption }}
</a>
<div
class=
"context"
>
{{ context|e }}
</div>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endblock %}
{% block footer %}
{{ super() }}
<script
type=
"text/javascript"
src=
"{{ pathto('searchindex.js', 1) }}"
></script>
{% endblock %}
doc/mytheme/static/basic.css_t
View file @
27c126c9
...
...
@@ -16,7 +16,7 @@ http://templates.arcsin.se/license/
Reset
------------------------------------------------------------------- */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, /*pre,*/ a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, textarea,
input,
select {margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline;}
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, /*pre,*/ a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, textarea, select {margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline;}
table {border-collapse: collapse; border-spacing: 0;}
caption, th, td {text-align: left; font-weight: normal;}
table, td, th {vertical-align: middle;}
...
...
doc/mytheme/theme.conf
View file @
27c126c9
[
theme
]
inherit
=
none
inherit
=
basic
stylesheet
=
basic
.
css
pygments_style
=
sphinx
...
...
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