Skip to content
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

Polish docs and change theme #4758

Merged
merged 11 commits into from
Oct 7, 2017
Merged

Conversation

pradyunsg
Copy link
Member

@pradyunsg pradyunsg commented Oct 2, 2017

Toward pypa/pypa-docs-theme#8

Closes #4752 (at least)


List of changes:

  • switch themes and enable sidebar themed like pydoc
  • use build directory instead of _build
  • remove .. contents:: since sidebar now has navigation
  • disable smart quotes
  • reduce tree depths in toctree directives
  • supress a small redirection message

@pradyunsg pradyunsg added the type: docs Documentation related label Oct 2, 2017
@pradyunsg
Copy link
Member Author

I think that some pages need some restructuring now...

@pradyunsg pradyunsg changed the title Move over to pypa-docs-theme [WIP] Move over to pypa-docs-theme Oct 2, 2017
@pradyunsg pradyunsg self-assigned this Oct 2, 2017
@pradyunsg
Copy link
Member Author

pradyunsg commented Oct 4, 2017

Only thing remaining is figuring out what should be there in the landing index page and its sidebar.

(I've cancelled the CI jobs to save time)

@pradyunsg pradyunsg changed the title [WIP] Move over to pypa-docs-theme [WIP] Polish docs and change theme Oct 4, 2017
@pradyunsg pradyunsg requested review from ncoghlan and a team October 4, 2017 06:56
Copy link
Member

@ncoghlan ncoghlan left a comment

Choose a reason for hiding this comment

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

The basic approach seems reasonable to me, and I figure there can still be further iterations after folks see the impact on the live docs.

@pradyunsg
Copy link
Member Author

Thanks a lot for the review @ncoghlan! ^>^

@pradyunsg pradyunsg changed the title [WIP] Polish docs and change theme Polish docs and change theme Oct 4, 2017
@pradyunsg
Copy link
Member Author

Only thing remaining is figuring out what should be there in the landing index page and its sidebar.

More polish can be applied later. 🤷‍♂️

@ncoghlan
Copy link
Member

ncoghlan commented Oct 4, 2017

@pfmoore @dstufft This change (switching to the PyPA docs theme) looks good to me, but needs review from a pip committer :)

@dstufft
Copy link
Member

dstufft commented Oct 4, 2017 via email

@pfmoore
Copy link
Member

pfmoore commented Oct 5, 2017

Happy to check, but how can I see the rendered results? (Whenever I've built the docs locally in the past I get a different theme from the website - probably me doing something wrong, but it makes it hard for me to check changes like this PR 😄)

@pradyunsg
Copy link
Member Author

@pfmoore sphinx_rtd_theme package needs to be installed and used to have the RTD theme when building locally. It wasn't installed into the tox environment, causing a difference in the final theme rendered.

This is no longer the case since we use pypa_theme now. :)

@pfmoore
Copy link
Member

pfmoore commented Oct 5, 2017

Thanks

@pradyunsg pradyunsg removed their assignment Oct 5, 2017
@pradyunsg
Copy link
Member Author

I might have been a little bored and so, here's screenshots:

screen shot 2017-10-05 at 6 28 45 pm

screen shot 2017-10-05 at 6 29 00 pm

screen shot 2017-10-05 at 7 00 20 pm

screen shot 2017-10-05 at 7 00 30 pm

screen shot 2017-10-05 at 7 00 42 pm

screen shot 2017-10-05 at 7 00 55 pm

screen shot 2017-10-05 at 7 01 03 pm

The extra whitespace in usage is fixed by #4762.

@pfmoore
Copy link
Member

pfmoore commented Oct 5, 2017

Hmm, OK. I now understand the complaint that the page isn't limited in width (and I agree with it).

I can see the value in having a unified style, but personally I'd prefer that we hold off on this till the width issue is resolved upstream (assuming we're not OK with making a local change for that on the PyPA pages).

@pradyunsg
Copy link
Member Author

I'd prefer that we hold off on this till the width issue is resolved upstream

I'm cool with that. :)

@theacodes
Copy link
Member

I staged a preview of this here: http://temp.theadora.io/pip/index.html

This LGTM, @pradyunsg requested guidance on the landing page but it's fine for now. If anything create a separate bug and @ncoghlan, @pfmoore and myself can write a short introduction to what pip is.

@pradyunsg
Copy link
Member Author

pradyunsg commented Oct 6, 2017

@jonparrott What about this?

@pfmoore said:

I'd prefer that we hold off on this till the width issue is resolved upstream

@pradyunsg
Copy link
Member Author

I staged a preview of this here

Thank you! ^>^

@pfmoore
Copy link
Member

pfmoore commented Oct 6, 2017

Having now seen a live preview, I can live with this if others are OK with it (I use a larger font, which means there's less text across the page anyway - and that fixes the problem the original screenshot had for me of too few, too long lines).

I don't know what good web design principles say about designing pages suitable for everything from portrait-format phone and tablet screens to landscape high resolution laptop and desktop screens. The ideal would be to get such guidance. But in its absence I'm going to go with "it looks tolerable to me on my commonly used devices" and not worry.

@pradyunsg
Copy link
Member Author

if others are OK with it

I am okay with it. It's bearable. I'd like to see the fixed width change come through. I do mildly prefer not holding off this PR for it.

FWIW, any change in pypa_theme would propagate to us whenever it merges there; we'd just need some push to trigger the docs build, which would happen anyway.

@pradyunsg
Copy link
Member Author

pradyunsg commented Oct 7, 2017

@pfmoore If you think this good to go, let's go ahead and make this theme switch. :)

@pfmoore pfmoore merged commit df083c7 into pypa:master Oct 7, 2017
@pfmoore
Copy link
Member

pfmoore commented Oct 7, 2017

OK let's go for it

@pradyunsg pradyunsg deleted the docs/switch-themes branch October 7, 2017 16:53
@ncoghlan
Copy link
Member

ncoghlan commented Oct 8, 2017

I confess my working theory regarding the line width issue is that the more opportunities we give it to irritate people, the more opportunities we create for it to annoy someone enough for them to decide to invest time in figuring out how to fix it :)

In the meantime, running my own browser in a non-maximised window is the main technique I use for getting text widths that I like, regardless of what individual sites do.

@pradyunsg
Copy link
Member Author

pradyunsg commented Oct 8, 2017

Okay. http://readthedocs.org/projects/pip/

The docs build failed on ReadTheDocs. XD

@ncoghlan or @jonparrott -- is packaging.python.org served via RTD or is it on it's own build pipeline? Can we move pip's docs to the same configuration?

@pypa/pip-committers Do you guys this we should revert this or just simply wait and get it fixed?

@pradyunsg
Copy link
Member Author

Ugh. That was premature. They've been failing for a while on master. Looking into it. :)

@theacodes
Copy link
Member

theacodes commented Oct 8, 2017 via email

@pradyunsg
Copy link
Member Author

Oh, I forgot to mention here. Sorry!

I made #4778.

Holler if you need help

Definitely will. :)

TIL - Holler

@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation type: docs Documentation related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

minor, docs: "edit on github" 404
5 participants