Skip to content

Use grid-style tables for member lists - #105

Closed
jnothman wants to merge 2 commits into
numpy:masterfrom
jnothman:multiline-member
Closed

jnothman wants to merge 2 commits into
numpy:masterfrom
jnothman:multiline-member

Conversation

@jnothman

Copy link
Copy Markdown
Member

However: this causes the PDF build for scikit-learn to fail:

writing...
Markup is unsupported in LaTeX:
modules/generated/sklearn.model_selection.GridSearchCV:: nested tables are not yet implemented.

IIUC, the main reason to be using tables rather than definition lists is for consistency with the autosummary listing. Is there any problem with reimplementing the autosummary listing as a definition list? If we don't have .. autosummary will the doc pages for attributes not be generated?

Ping @amueller

jnothman added 2 commits July 25, 2017 10:22
Supports multi-line attribute descriptions (Fixes numpy#104)

- Attribute type spec is now on a separate line to description
@jnothman

Copy link
Copy Markdown
Member Author

Reimplementing autosummary is going to be a bit hacky, in order to get signatures and documentation summaries right, but might still be the best approach to meet all our needs.

@jnothman

Copy link
Copy Markdown
Member Author

I think this is a strict improvement on the status quo. But it still doesn't satisfy scikit-learn's needs.

@amueller

Copy link
Copy Markdown
Contributor

What needs are not met by this? The PDF issue?
How does this look?

out += [hdr]
desc = [param_type, ''] + desc
table.append(["**" + param.strip() + "**", desc])
out += ['', ''] + _grid_table_rst(table)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jnothman

jnothman commented Aug 1, 2017 via email •

Copy link
Copy Markdown
Member Author

@amueller

amueller commented Aug 1, 2017

Copy link
Copy Markdown
Contributor

Off topic: It would be great if github's email detection would be better. Or maybe there's something you could change about your email formatting? Having the the full quote on the website sometimes makes me overlook parts that you actually wrote.

I can live with the sub-ideal points if the alternative is touching autosummary. I think using the other table format might make this PR a bit lighter.

@amueller

amueller commented Aug 1, 2017

Copy link
Copy Markdown
Contributor

We could move the table to the notes or the top level section?

@jnothman

jnothman commented Aug 1, 2017 via email

Copy link
Copy Markdown
Member Author

@amueller

amueller commented Aug 1, 2017 via email

Copy link
Copy Markdown
Contributor

@jnothman

jnothman commented Aug 1, 2017 via email

Copy link
Copy Markdown
Member Author

@jnothman

Copy link
Copy Markdown
Member Author

Closing following merge of #106

@jnothman jnothman closed this Sep 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants