Skip to content

Commit

Permalink
Merge pull request #191 from agjohnson/sphinx-1.3-compat
Browse files Browse the repository at this point in the history
Sphinx 1.3 compat
  • Loading branch information
ericholscher committed Apr 23, 2015
2 parents af82c93 + c4c681b commit a61976a
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 12 deletions.
7 changes: 7 additions & 0 deletions demo_docs/source/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:mod:`test_py_module`
=====================

.. automodule:: test_py_module.test
:members:
:private-members:
:special-members:
9 changes: 1 addition & 8 deletions demo_docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Contents:
:caption: This is an incredibly long caption for a long menu

long
api

Maaaaath!
=========
Expand Down Expand Up @@ -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 |
+------------+------------+-----------+------------+------------+-----------+------------+------------+-----------+------------+------------+-----------+

API Test
========

.. automodule:: test_py_module.test
:members:
:private-members:
:special-members:

Optional parameter args
-----------------------

Expand Down
4 changes: 4 additions & 0 deletions demo_docs/source/test_py_module/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class Foo:
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.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sphinx>=1.1
sphinx>=1.3
6 changes: 6 additions & 0 deletions sass/_theme_layout.sass
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
padding: $gutter / 4 $gutter * 1.5
&:hover
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
li.on a, li.current > a
color: $text-color
Expand Down
2 changes: 1 addition & 1 deletion sass/_theme_rst.sass
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
.xref, a &
font-weight: bold
// If the literal is inside an a tag, let's color it like a link
a tt
a tt, a code
color: $link-color
dl
margin-bottom: $base-line-height
Expand Down
2 changes: 1 addition & 1 deletion sphinx_rtd_theme/static/css/theme.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sphinx_rtd_theme/static/css/theme.css.map

Large diffs are not rendered by default.

0 comments on commit a61976a

Please sign in to comment.