Skip to content

Commit 09a70c1

Browse files
committed
adding automodule and autosummary
1 parent a6820dc commit 09a70c1

File tree

5 files changed

+61
-230
lines changed

5 files changed

+61
-230
lines changed

docs/changelog.rst

+1-207
Original file line numberDiff line numberDiff line change
@@ -8,210 +8,4 @@ master
88
New Features
99
-------------
1010

11-
Fixes
12-
-----
13-
14-
* Fix definition lists looking different with Sphinx 2.0+
15-
16-
Other Changes
17-
--------------
18-
19-
* Add the ``navigation`` template block around the navigation area.
20-
* Added Spanish translation
21-
* Added i18n support using Babel
22-
* Moved build system from Grunt and friends to Webpack
23-
24-
0.4.3
25-
======
26-
27-
:Date: Feb 12, 2019
28-
29-
New Features
30-
-------------
31-
32-
Fixes
33-
-----
34-
35-
* Fix scrolling to active item in sidebar on load (#214)
36-
* Style caption link for code and literal blocks
37-
* Fix inconsistent font size and line height for autodoc "raises" and "returns" (#267)
38-
* Fix last_updated notice appearing in same line as copyright notice (#704)
39-
40-
41-
Other Changes
42-
--------------
43-
44-
v0.4.2
45-
======
46-
47-
:Date: Oct 5, 2018
48-
49-
New Features
50-
-------------
51-
52-
Fixes
53-
-----
54-
55-
* Set base font size on <html> (#668)
56-
* Fix HTML search not working with Sphinx-1.8 (#672)
57-
58-
Other Changes
59-
--------------
60-
61-
* Upload signed packages to PyPI with twine (#651)
62-
* Do not enforce period at the end of copyright statement (666)
63-
64-
v0.4.1
65-
======
66-
67-
:Date: July 27, 2018
68-
69-
New Features
70-
-------------
71-
72-
Fixes
73-
-----
74-
75-
* Line height adjustments for Liberation Mono (#656)
76-
77-
Other Changes
78-
--------------
79-
80-
* Add Sphinx as a dependency
81-
82-
v0.4.0
83-
======
84-
85-
This version made some changes to how JS and CSS were included
86-
when the theme is used on Read the Docs.
87-
88-
89-
New Features
90-
-------------
91-
92-
Fixes
93-
-----
94-
95-
* Do not rely on readthedocs.org for CSS/JS (#614)
96-
* Color accessibility improvements on the left navigation
97-
98-
Other Changes
99-
---------------
100-
101-
* Write theme version and build date at top of JavaScript and CSS
102-
* Changed code and literals to use a native font stack (#612)
103-
* Fix small styling issues
104-
105-
v0.3.1
106-
======
107-
108-
Fixes
109-
-----
110-
111-
* Revert part of #576 causing display issues with version selector menu
112-
* Backwards compatibility fixes for pre-0.3.0 releases (#623)
113-
* Fix mkdocs version selector (#622)
114-
* Add open list spacing (#591)
115-
* Fix table centering (#599)
116-
117-
v0.3.0
118-
======
119-
120-
**Note**: this version resulted in some JavaScript incompatibilities when used on readthedocs.org
121-
122-
New Features
123-
-------------
124-
125-
* Add html language attribute
126-
* Allow setting 'rel' and 'title' attributes for stylesheets (#551)
127-
* Add option to style external links
128-
* Add github, gitlab, bitbucket page arguments option
129-
* Add pygments support
130-
* Add setuptools entry point allowing to use ``sphinx_rtd_theme`` as
131-
Sphinx ``html_theme`` directly.
132-
* Add language to the JS output variable
133-
134-
Fixes
135-
-----
136-
137-
* Fix some HTML warnings and errors
138-
* Fix many styling issues
139-
* Fix many sidebar glitches
140-
* Fix line number spacing to align with the code lines
141-
* Hide Edit links on auto created pages
142-
* Include missing font files with the theme
143-
144-
Other Changes
145-
--------------
146-
147-
* Significant improvement of our documentation
148-
* Compress our Javascript files
149-
* Updated dependencies
150-
151-
v0.2.4
152-
======
153-
154-
* Yet another patch to deal with extra builders outside Spinx, such as the
155-
singlehtml builders from the Read the Docs Sphinx extension
156-
157-
v0.2.3
158-
======
159-
160-
* Temporarily patch Sphinx issue with ``singlehtml`` builder by inspecting the
161-
builder in template.
162-
163-
v0.2.2
164-
======
165-
166-
* Roll back toctree fix in 0.2.1 (#367). This didn't fix the issue and
167-
introduced another bug with toctrees display.
168-
169-
v0.2.1
170-
======
171-
172-
* Add the ``rel`` HTML attribute to the footer links which point to
173-
the previous and next pages.
174-
* Fix toctree issue caused by Sphinx singlehtml builder (#367)
175-
176-
v0.2.0
177-
======
178-
179-
* Adds the ``comments`` block after the ``body`` block in the template
180-
* Added "Edit on GitLab" support
181-
* Many bug fixes
182-
183-
v0.1.10-alpha
184-
=============
185-
186-
.. note:: This is a pre-release version
187-
188-
* Removes Sphinx dependency
189-
* Fixes hamburger on mobile display
190-
* Adds a ``body_begin`` block to the template
191-
* Added ``prev_next_buttons_location``
192-
193-
v0.1.9
194-
======
195-
196-
* Intermittent scrollbar visibility bug fixed. This change introduces a
197-
backwards incompatible change to the theme's layout HTML. This should only be
198-
a problem for derivative themes that have overridden styling of nav elements
199-
using direct descendant selectors. See `#215`_ for more information.
200-
* Safari overscroll bug fixed
201-
* Version added to the nav header
202-
* Revision id was added to the documentation footer if you are using RTD
203-
* An extra block, ``extrafooter`` was added to allow extra content in the
204-
document footer block
205-
* Fixed modernizr URL
206-
* Small display style changes on code blocks, figure captions, and nav elements
207-
208-
.. _#215: https://github.com/rtfd/sphinx_rtd_theme/pull/215
209-
210-
v0.1.8
211-
======
212-
213-
* Start keeping changelog :)
214-
* Support for third and fourth level headers in the sidebar
215-
* Add support for Sphinx 1.3
216-
* Add sidebar headers for :caption: in Sphinx toctree
217-
* Clean up sidebar scrolling behavior so it never scrolls out of view
11+
* The theme now exists...

docs/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
# ones.
3333

3434
extensions = [
35+
'sphinx.ext.autodoc',
36+
'sphinx.ext.autosummary'
3537
]
3638

3739
# Add any paths that contain templates here, relative to this directory.

docs/demo/api.rst

+25-5
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,35 @@
22
API documentation and generated content
33
***************************************
44

5+
This page contains general code elements that are common
6+
for package documentation.
7+
58
.. contents:: Table of Contents
69

7-
:mod:`test_py_module`
8-
=====================
10+
Pandas DataFrame
11+
================
12+
13+
.. currentmodule:: pandas
14+
15+
.. autosummary::
16+
:toctree: api/
17+
18+
DataFrame
19+
DataFrame.index
20+
DataFrame.columns
21+
DataFrame.dtypes
22+
DataFrame.ftypes
23+
DataFrame.get_dtype_counts
24+
DataFrame.get_ftype_counts
25+
DataFrame.select_dtypes
26+
DataFrame.values
27+
28+
29+
:mod:`pandas.datetime`
30+
======================
931

10-
.. automodule:: test_py_module.test
32+
.. automodule:: pandas.datetime
1133
:members:
12-
:private-members:
13-
:special-members:
1434

1535

1636
C++ API

docs/demo/index.rst

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
=========
2+
Demo site
3+
=========
4+
5+
This is a simple demonstration site to show off a few visual
6+
and structural elements of the theme. Click the sections on
7+
the left sidebar to see how various elements look on this theme.
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:numbered:
12+
:caption: Demo Documentation
13+
14+
structure
15+
api
16+
demo
17+
lists_tables
18+
19+
.. toctree::
20+
:maxdepth: 3
21+
:numbered:
22+
:caption: This is an incredibly long caption for a long menu
23+
24+
long

docs/index.rst

+9-18
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
.. include:: ../README.rst
1+
=======================
2+
The Pandas Sphinx Theme
3+
=======================
4+
5+
This is a simple Sphinx theme for use by the Pandas and
6+
PyData community. This site is a guide for using the theme,
7+
and a demo for how it looks with various elements.
28

39
.. toctree::
410
:caption: Theme Documentation
@@ -9,24 +15,9 @@
915
contributing
1016

1117
.. toctree::
12-
:maxdepth: 1
18+
:maxdepth: 2
1319
:hidden:
1420

21+
demo/index
1522
changelog
1623

17-
.. toctree::
18-
:maxdepth: 2
19-
:numbered:
20-
:caption: Demo Documentation
21-
22-
demo/structure
23-
demo/demo
24-
demo/lists_tables
25-
demo/api
26-
27-
.. toctree::
28-
:maxdepth: 3
29-
:numbered:
30-
:caption: This is an incredibly long caption for a long menu
31-
32-
demo/long

0 commit comments

Comments
 (0)