bpo-10716: Migrating pydoc to html5. by JulienPalard · Pull Request #28651 · python/cpython (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation29 Commits5 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

JulienPalard

I tried myself at porting pydoc to html5.

I though (hoped?) the commit would be smaller, I tried to keep it as small as possible. I did not tried to enhance the graphical result, I just focused on HTML modernisation as a fist step.

https://bugs.python.org/issue10716

@JulienPalard

Ohhh, interesting, cgitb depends on pydoc, so if I use css in pydoc... oh wow.

@JulienPalard

So I modified cgitb a bit to not depend on html rendered by pydoc.

I also had to modify pydoc test which were extremely strict in the output expected, I tried to still check that every bit of important info are given, while not being strict on the HTML used.

@JulienPalard

TIL about ServerHTMLDoc...

merwok

merwok

merwok

@JulienPalard

I'd like to merge this, does someone still want to proof-read first?

@merwok

I haven’t had a chance to run it locally to see the results yet.
Maybe you have screenshots?

merwok

@merwok

This could get a note in the release notes (for pydoc and xmlrpc — cgitb is unchanged)

@JulienPalard

Here come the screenshots, side by side:

multiprocessing
index

There's a few differences, in the height of the title bar for example.

@JulienPalard

@JulienPalard

This could get a note in the release notes (for pydoc and xmlrpc — cgitb is unchanged)

True, done.

merwok

merwok

merwok

merwok

merwok

@merwok

Thank you for your efforts in tackling this! It was needed and is the basis for future improvements.

I have added some final questions on some details. (If you make changes, please avoid force-pushing to make reviewing easier.)

rhettinger

@JulienPalard