mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Merge pull request #191 from agjohnson/sphinx-1.3-compat
Sphinx 1.3 compat
This commit is contained in:
commit
a61976af31
7
demo_docs/source/api.rst
Normal file
7
demo_docs/source/api.rst
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
:mod:`test_py_module`
|
||||||
|
=====================
|
||||||
|
|
||||||
|
.. automodule:: test_py_module.test
|
||||||
|
:members:
|
||||||
|
:private-members:
|
||||||
|
:special-members:
|
|
@ -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
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
sphinx>=1.1
|
sphinx>=1.3
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
Loading…
Reference in New Issue
Block a user