Merge pull request #191 from agjohnson/sphinx-1.3-compat

Sphinx 1.3 compat
This commit is contained in:
Eric Holscher 2015-04-22 19:11:29 -07:00
commit a61976af31
8 changed files with 22 additions and 12 deletions

7
demo_docs/source/api.rst Normal file
View File

@ -0,0 +1,7 @@
:mod:`test_py_module`
=====================
.. automodule:: test_py_module.test
:members:
:private-members:
:special-members:

View File

@ -24,6 +24,7 @@ Contents:
:caption: This is an incredibly long caption for a long menu :caption: This is an incredibly long caption for a long menu
long long
api
Maaaaath! Maaaaath!
========= =========
@ -57,14 +58,6 @@ Giant tables
| body row 1 | column 2 | column 3 | body row 1 | column 2 | column 3 | body row 1 | column 2 | column 3 | body row 1 | column 2 | column 3 | | body row 1 | column 2 | column 3 | body row 1 | column 2 | column 3 | body row 1 | column 2 | column 3 | body row 1 | column 2 | column 3 |
+------------+------------+-----------+------------+------------+-----------+------------+------------+-----------+------------+------------+-----------+ +------------+------------+-----------+------------+------------+-----------+------------+------------+-----------+------------+------------+-----------+
API Test
========
.. automodule:: test_py_module.test
:members:
:private-members:
:special-members:
Optional parameter args Optional parameter args
----------------------- -----------------------

View File

@ -26,6 +26,10 @@ class Foo:
print(myclass) print(myclass)
Here is a link to :py:meth:`capitalize`.
Here is a link to :py:meth:`__init__`.
""" """
#: Doc comment for class attribute Foo.bar. #: Doc comment for class attribute Foo.bar.

View File

@ -1 +1 @@
sphinx>=1.1 sphinx>=1.3

View File

@ -52,6 +52,12 @@
padding: $gutter / 4 $gutter * 1.5 padding: $gutter / 4 $gutter * 1.5
&:hover &:hover
background: darken($section-background-color, 15%) background: darken($section-background-color, 15%)
code
border: none
background: inherit
color: inherit
padding-left: 0
padding-right: 0
// On state for the first level // On state for the first level
li.on a, li.current > a li.on a, li.current > a
color: $text-color color: $text-color

View File

@ -196,7 +196,7 @@
.xref, a & .xref, a &
font-weight: bold font-weight: bold
// If the literal is inside an a tag, let's color it like a link // If the literal is inside an a tag, let's color it like a link
a tt a tt, a code
color: $link-color color: $link-color
dl dl
margin-bottom: $base-line-height margin-bottom: $base-line-height

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long