Skip to content

Fixing documentation lists indentation (#21518) #21519

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

Merged
merged 1 commit into from
Jun 20, 2018
Merged

Fixing documentation lists indentation (#21518) #21519

merged 1 commit into from
Jun 20, 2018

Conversation

datapythonista
Copy link
Member

@jreback
Copy link
Contributor

jreback commented Jun 18, 2018

  • does this change the rendering anywhere?
  • do you have a script to check this? (e.g. we can add to lint.sh)

@jreback jreback added the Docs label Jun 18, 2018
@jreback jreback added this to the 0.23.2 milestone Jun 18, 2018
@datapythonista
Copy link
Member Author

There is a subtle change in the margins with the current template. The change is mainly to have a correct rendering with other markdowns that change the font of blockquotes.

With the current theme, it will make lists like the one in:

Render with the margins of lists like:

The lists that currently have spaces before the * like the one in the overview page have a greater left indentation, that with this change will be removed. The resulting indentation will be the one in the visualization page.

I don't have any script that checks the rendering. Are you thinking on something for visual regression testing, or something simpler?

@jreback
Copy link
Contributor

jreback commented Jun 18, 2018

@datapythonista I meant a script to check the indentation of the lists. (checking rendering is extremely hard and out of scope)

@datapythonista
Copy link
Member Author

Oh, I understand now, I mixed the two questions; Monday morning... :)

I did the changes looking for the indentation manually. I think a script is a good idea, not sure if it's trivial. I'll create a separate ticket for implementing the script if that's all right.

@jreback
Copy link
Contributor

jreback commented Jun 18, 2018

@datapythonista sure np.

@jreback jreback requested a review from TomAugspurger June 18, 2018 10:22
@datapythonista
Copy link
Member Author

Created #21520

@jorisvandenbossche jorisvandenbossche modified the milestones: 0.23.2, 0.24.0 Jun 18, 2018
@jorisvandenbossche
Copy link
Member

Long time to do item of me to fix those indentations :-) So +1 !

My only question: I see you also have changed correct indentations but for switching - to *. I am not sure we should impose that? (it's not a restriction of the rst standard)

@datapythonista
Copy link
Member Author

Ups, forgot to mention about using stars... In the first files I reviewed, all lists were using stars, so when I found the first hyphens I changed them for consistency, expecting to be very few cases. At the end there were many, so I think the change wasn't that much of a good idea, and just adds noise to the PR. But as I already changed them I didn't want to revert.

@jreback
Copy link
Contributor

jreback commented Jun 18, 2018

@jorisvandenbossche I put this on 0.23.2 as it other changes touch the docs might be a slight diff, but no big deal.

@jreback jreback merged commit 2625759 into pandas-dev:master Jun 20, 2018
@jreback
Copy link
Contributor

jreback commented Jun 20, 2018

thanks @datapythonista

@jorisvandenbossche
Copy link
Member

@jorisvandenbossche I put this on 0.23.2 as it other changes touch the docs might be a slight diff, but no big deal.

Yep, will decide on it when backporting

Sup3rGeo pushed a commit to Sup3rGeo/pandas that referenced this pull request Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: Fix indentation of lists in rst files
3 participants