[doc] Added pydoctheme
This commit is contained in:
parent
f9b9aff4a9
commit
1f88631ae3
5 changed files with 245 additions and 2 deletions
11
LICENSE
11
LICENSE
|
@ -35,6 +35,17 @@ are, unless specified as other by the file's contents, generated by sphinx
|
||||||
full license can be found in SPHINX-LICENSE.
|
full license can be found in SPHINX-LICENSE.
|
||||||
|
|
||||||
|
|
||||||
|
Python 3 Sphinx Theme
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
The files (an asterisk "*" indicates wildcard substitution)
|
||||||
|
|
||||||
|
doc/source/_themes/
|
||||||
|
|
||||||
|
are from the python 3 sphinx documentation source code and are licensed under
|
||||||
|
the PSF. For the full license, see the file PSF-PY3.3-LICENSE.
|
||||||
|
|
||||||
|
|
||||||
Copyright Inventory
|
Copyright Inventory
|
||||||
===================
|
===================
|
||||||
|
|
||||||
|
|
39
PSF-PY3.3-LICENSE
Normal file
39
PSF-PY3.3-LICENSE
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
========================================
|
||||||
|
PSF LICENSE AGREEMENT FOR PYTHON 3.3.3
|
||||||
|
========================================
|
||||||
|
|
||||||
|
1. This LICENSE AGREEMENT is between the Python Software Foundation (“PSF”),
|
||||||
|
and the Individual or Organization (“Licensee”) accessing and otherwise
|
||||||
|
using Python 3.3.3 software in source or binary form and its associated
|
||||||
|
documentation.
|
||||||
|
2. Subject to the terms and conditions of this License Agreement, PSF hereby
|
||||||
|
grants Licensee a nonexclusive, royalty-free, world-wide license to
|
||||||
|
reproduce, analyze, test, perform and/or display publicly, prepare
|
||||||
|
derivative works, distribute, and otherwise use Python 3.3.3 alone or in
|
||||||
|
any derivative version, provided, however, that PSF’s License Agreement and
|
||||||
|
PSF’s notice of copyright, i.e., “Copyright © 2001-2013 Python Software
|
||||||
|
Foundation; All Rights Reserved” are retained in Python 3.3.3 alone or in
|
||||||
|
any derivative version prepared by Licensee.
|
||||||
|
3. In the event Licensee prepares a derivative work that is based on or
|
||||||
|
incorporates Python 3.3.3 or any part thereof, and wants to make the
|
||||||
|
derivative work available to others as provided herein, then Licensee
|
||||||
|
hereby agrees to include in any such work a brief summary of the changes
|
||||||
|
made to Python 3.3.3.
|
||||||
|
4. PSF is making Python 3.3.3 available to Licensee on an “AS IS” basis. PSF
|
||||||
|
MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF
|
||||||
|
EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION
|
||||||
|
OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR
|
||||||
|
THAT THE USE OF PYTHON 3.3.3 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
|
||||||
|
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 3.3.3 FOR
|
||||||
|
ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
|
||||||
|
MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 3.3.3, OR ANY DERIVATIVE
|
||||||
|
THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
||||||
|
6. This License Agreement will automatically terminate upon a material breach
|
||||||
|
of its terms and conditions.
|
||||||
|
7. Nothing in this License Agreement shall be deemed to create any
|
||||||
|
relationship of agency, partnership, or joint venture between PSF and
|
||||||
|
Licensee. This License Agreement does not grant permission to use PSF
|
||||||
|
trademarks or trade name in a trademark sense to endorse or promote
|
||||||
|
products or services of Licensee, or any third party.
|
||||||
|
8. By copying, installing or otherwise using Python 3.3.3, Licensee agrees to
|
||||||
|
be bound by the terms and conditions of this License Agreement.
|
170
doc/source/_themes/pydoctheme/static/pydoctheme.css
Normal file
170
doc/source/_themes/pydoctheme/static/pydoctheme.css
Normal file
|
@ -0,0 +1,170 @@
|
||||||
|
@import url("default.css");
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: white;
|
||||||
|
margin-left: 1em;
|
||||||
|
margin-right: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.related {
|
||||||
|
margin-bottom: 1.2em;
|
||||||
|
padding: 0.5em 0;
|
||||||
|
border-top: 1px solid #ccc;
|
||||||
|
margin-top: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.related a:hover {
|
||||||
|
color: #0095C4;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.related:first-child {
|
||||||
|
border-top: 0;
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
border-radius: 5px;
|
||||||
|
line-height: 130%;
|
||||||
|
font-size: smaller;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar h3, div.sphinxsidebar h4 {
|
||||||
|
margin-top: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebarwrapper > h3:first-child {
|
||||||
|
margin-top: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebarwrapper > ul > li > ul > li {
|
||||||
|
margin-bottom: 0.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar a:hover {
|
||||||
|
color: #0095C4;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar input {
|
||||||
|
font-family: 'Lucida Grande',Arial,sans-serif;
|
||||||
|
border: 1px solid #999999;
|
||||||
|
font-size: smaller;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar input[type=text] {
|
||||||
|
max-width: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body {
|
||||||
|
padding: 0 0 0 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body p {
|
||||||
|
line-height: 140%;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body h1, div.body h2, div.body h3, div.body h4, div.body h5, div.body h6 {
|
||||||
|
margin: 0;
|
||||||
|
border: 0;
|
||||||
|
padding: 0.3em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body hr {
|
||||||
|
border: 0;
|
||||||
|
background-color: #ccc;
|
||||||
|
height: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body pre {
|
||||||
|
border-radius: 3px;
|
||||||
|
border: 1px solid #ac9;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body div.admonition, div.body div.impl-detail {
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body div.impl-detail > p {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body div.seealso {
|
||||||
|
border: 1px solid #dddd66;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body a {
|
||||||
|
color: #00608f;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body a:visited {
|
||||||
|
color: #30306f;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body a:hover {
|
||||||
|
color: #00B0E4;
|
||||||
|
}
|
||||||
|
|
||||||
|
tt, pre {
|
||||||
|
font-family: monospace, sans-serif;
|
||||||
|
font-size: 96.5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body tt {
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body tt.descname {
|
||||||
|
font-size: 120%;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body tt.xref, div.body a tt {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.deprecated {
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.docutils {
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
min-width: 20%;
|
||||||
|
border-radius: 3px;
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.docutils td, table.docutils th {
|
||||||
|
border: 1px solid #ddd !important;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table p, table li {
|
||||||
|
text-align: left !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.docutils th {
|
||||||
|
background-color: #eee;
|
||||||
|
padding: 0.3em 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.docutils td {
|
||||||
|
background-color: white;
|
||||||
|
padding: 0.3em 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.footnote, table.footnote td {
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.footer {
|
||||||
|
line-height: 150%;
|
||||||
|
margin-top: -2em;
|
||||||
|
text-align: right;
|
||||||
|
width: auto;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.footer a:hover {
|
||||||
|
color: #0095C4;
|
||||||
|
}
|
23
doc/source/_themes/pydoctheme/theme.conf
Normal file
23
doc/source/_themes/pydoctheme/theme.conf
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
[theme]
|
||||||
|
inherit = default
|
||||||
|
stylesheet = pydoctheme.css
|
||||||
|
pygments_style = sphinx
|
||||||
|
|
||||||
|
[options]
|
||||||
|
bodyfont = 'Lucida Grande', Arial, sans-serif
|
||||||
|
headfont = 'Lucida Grande', Arial, sans-serif
|
||||||
|
footerbgcolor = white
|
||||||
|
footertextcolor = #555555
|
||||||
|
relbarbgcolor = white
|
||||||
|
relbartextcolor = #666666
|
||||||
|
relbarlinkcolor = #444444
|
||||||
|
sidebarbgcolor = white
|
||||||
|
sidebartextcolor = #444444
|
||||||
|
sidebarlinkcolor = #444444
|
||||||
|
bgcolor = white
|
||||||
|
textcolor = #222222
|
||||||
|
linkcolor = #0090c0
|
||||||
|
visitedlinkcolor = #00608f
|
||||||
|
headtextcolor = #1a1a1a
|
||||||
|
headbgcolor = white
|
||||||
|
headlinkcolor = #aaaaaa
|
|
@ -91,7 +91,7 @@ pygments_style = 'sphinx'
|
||||||
|
|
||||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||||
# a list of builtin themes.
|
# a list of builtin themes.
|
||||||
html_theme = 'default'
|
html_theme = 'pydoctheme'
|
||||||
|
|
||||||
# Theme options are theme-specific and customize the look and feel of a theme
|
# Theme options are theme-specific and customize the look and feel of a theme
|
||||||
# further. For a list of options available for each theme, see the
|
# further. For a list of options available for each theme, see the
|
||||||
|
@ -99,7 +99,7 @@ html_theme = 'default'
|
||||||
#html_theme_options = {}
|
#html_theme_options = {}
|
||||||
|
|
||||||
# Add any paths that contain custom themes here, relative to this directory.
|
# Add any paths that contain custom themes here, relative to this directory.
|
||||||
#html_theme_path = []
|
html_theme_path = ['_themes']
|
||||||
|
|
||||||
# The name for this set of Sphinx documents. If None, it defaults to
|
# The name for this set of Sphinx documents. If None, it defaults to
|
||||||
# "<project> v<release> documentation".
|
# "<project> v<release> documentation".
|
||||||
|
|
Loading…
Reference in a new issue