Skip to content

DOC: autosummary table summary lines (sphinx 1.2.1) #6030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jorisvandenbossche opened this issue Jan 21, 2014 · 7 comments
Closed

DOC: autosummary table summary lines (sphinx 1.2.1) #6030

jorisvandenbossche opened this issue Jan 21, 2014 · 7 comments
Labels

Comments

@jorisvandenbossche
Copy link
Member

Related to #5899.

With the release of Sphinx 1.2.1, there is also a change in the behaviour of sphinx.ext.autosummary in how to define the text shown in the autosummary table (the tables you see here: http://pandas.pydata.org/pandas-docs/dev/api.html).

See:

Summary: the regex to define the part (idea: the first sentence) of the docstring that is used as the summary line in the tables has changed to allow the first sentence to be longer than the first line.

Consequence for pandas: The new regex searches for the end of the first sentence on all lines. In case of pandas docstrings, which are not that cleaned up to always have a period . at the end of the first line, this will sometimes give a first sentence including part of the parameter explanations.
Result: messy table in api.html

To do: go over all docstrings of public functions to adapt first sentence.
They should look like this:

Short summary line.

Optionally longer explanation.
bla bla

Parameters
----------
...

where especially the period . after the first short line is important.

@jreback
Copy link
Contributor

jreback commented Mar 22, 2014

0.14 for this?

@jorisvandenbossche
Copy link
Member Author

As long as we build the docs with sphinx 1.1.3, it doesn't matter. So not a blocker.

@jreback jreback added this to the 0.15.0 milestone Mar 23, 2014
@jorisvandenbossche
Copy link
Member Author

OK, this was fixed in Sphinx itself, in version 1.2.2 (http://sphinx-doc.org/changes.html#release-1-2-2-released-mar-2-2014), so closing!

@jorisvandenbossche jorisvandenbossche removed this from the 0.16.0 milestone Nov 9, 2014
@jreback
Copy link
Contributor

jreback commented Nov 9, 2014

should update the dev install docs then?

@jorisvandenbossche
Copy link
Member Author

I was just looking at those :-)
It says at least 1.2.1, I will make that 1.2.2 then

@jorisvandenbossche
Copy link
Member Author

Here: http://pandas.pydata.org/pandas-docs/stable/contributing.html#requirements
Do you know of other places where this is mentioned?

@jreback
Copy link
Contributor

jreback commented Nov 9, 2014

maybe on pandas-website somewhere.

Actually easiest way to do this is to create a public conda recipe for doing this and post here: https://github.com/conda/conda-recipes (then point the docs to this recipe) (then you can simply specify a minimum version for libraries, eg. sphinx)

then ``conda build recipe_dir; conda install <package> --use-local will install deps

@cpcloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants