GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [DOC] Warnings/notes in docs including most of the page · Issue #91483 · python/cpython

[DOC] Warnings/notes in docs including most of the page #91483

New issue
Copy link
New issue
Copy link
Closed
Closed
[DOC] Warnings/notes in docs including most of the page#91483
Copy link
Assignees
JulienPalard
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@jakirkham
jakirkham
opened on Apr 12, 2022
Issue body actions

Edit: This was originally notes with the pickle docs, but has also been seen on other pages since. Updating the issue to reflect that.

Not sure if something changed recently with how the docs are being generated, but it appears the warning at the top of the pickle docs is including most of the doc page in the warning. This is picking up all of the APIs and example as a result. Screenshot below:

Screen Shot 2022-04-12 at 1 09 06 PM

Reacted by Bar Harel

Activity

Next
  1. JelleZijlstra commented on Apr 12, 2022

    @JelleZijlstra
    JelleZijlstra
    on Apr 12, 2022
    Member
    More actions

    That's nasty. I see it in the 3.9 and 3.10 docs, but not 3.11 or 3.8. pickle.rst hasn't changed on the 3.10 branch since December 2020 (GH-23658), so it's probably not a change to the file. Maybe a Sphinx issue?

    Reacted by Alex Waygood and jakirkham
  2. JelleZijlstra
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Apr 12, 2022
  3. AlexWaygood
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Apr 12, 2022
  4. AlexWaygood commented on Apr 12, 2022

    @AlexWaygood
    AlexWaygood
    on Apr 12, 2022
    Member
    More actions

    @JulienPalard, any ideas on what might be causing this one? 😕

  5. saaketp commented on Apr 12, 2022

    @saaketp
    saaketp
    on Apr 12, 2022
    More actions

    It is not just the pickle page.
    The string docs are all yellow too https://docs.python.org/3/library/string.html
    Only the "see also" box should have been yellow.

    Maybe any page with a colored box is getting filled with that color.

    edit: found another page that confirms this:
    the hashlib docs https://docs.python.org/3.10/library/hashlib.html

  6. jakirkham
    changed the title [-][DOC] Warning in pickle docs including most of the page[/-] [+][DOC] Warnings/notes in docs including most of the page[/+] on Apr 12, 2022
  7. jakirkham commented on Apr 12, 2022

    @jakirkham
    jakirkham
    on Apr 12, 2022
    Author
    More actions

    Thanks for sharing that! Updated the issue to reflect it is broader than its original scope.

  8. AlexWaygood commented on Apr 12, 2022

    @AlexWaygood
    AlexWaygood
    on Apr 12, 2022
    Member
    More actions

    Ugh, the same thing with the typing docs too, now the whole page has a grey background (it should be just the first paragraph).

  9. jakirkham commented on Apr 12, 2022

    @jakirkham
    jakirkham
    on Apr 12, 2022
    Author
    More actions

    Do the docs build on CI somewhere? Maybe we can diff requirements between the last known working build and the current one to see what may have caused the issue?

  10. ned-deily
    assigned
    ned-deily
    and
    JulienPalard
    and unassigned
    ned-deily
    on Apr 13, 2022
  11. JulienPalard commented on Apr 13, 2022

    @JulienPalard
    JulienPalard
    on Apr 13, 2022
    Member
    More actions

    Found it.

    I introduced the issue while removing and re-creating the build venvs on docs.python.org yesterday after python/psf-salt@ca491a3 to close python/docsbuild-scripts#126.

    The new venv got a new version of docutils (we were having 0.17.1, we now have 0.18.1).

    Looks like there's some incompatiblity between Sphinx 3.2.1 and docutils 0.18.1, so I'm pinning this version in docsbuild-scripts.

    I'll start a rebuild of docs.python.org HTML files in a few minutes and we'll see how it goes.

    Reacted by jakirkham and Saaket Prakash
  12. JulienPalard commented on Apr 13, 2022

    @JulienPalard
    JulienPalard
    on Apr 13, 2022
    Member
    More actions

    Looks like it resolved the issue: https://docs.python.org/fr/3.9/library/pickle.html

    Rebuilding all languages for all versions may take a few ... hours though :)

    Reacted by jakirkham
    Reacted by Alex Waygood and jakirkham
  13. AlexWaygood commented on Apr 13, 2022

    @AlexWaygood
    AlexWaygood
    on Apr 13, 2022
    Member
    More actions

    @JulienPalard @JelleZijlstra, can somebody pin this issue while the docs are rebuilding? We've had 2 duplicates in 10 minutes

  14. 15 remaining items

  15. JulienPalard commented on May 25, 2022

    @JulienPalard
    JulienPalard
    on May 25, 2022
    Member
    More actions

    I checked, it's fixed on d.p.o but I don't have time to dig right now, please leave the issue open until this is understood.

    Reacted by Alex Waygood and Saaket Prakash
  16. Kenny2github commented on Aug 3, 2022

    @Kenny2github
    Kenny2github
    on Aug 3, 2022
    Contributor
    More actions

    Seeing this again in the docs for json, csv, threading, pickle, string, hashlib, typing, and probably others.

    Looking at the HTML source of typing:

    <div class="admonition note">
    <p class="admonition-title">Note</p>
    <p>The Python runtime does not enforce function and variable type annotations.
    They can be used by third party tools such as type checkers, IDEs, linters,
    etc.</p>
    </aside>

    It seems like admonitions are being opened as <div>s but closed as </aside>s. This is causing the <div> to not close and thus wrap the whole page.

    Note that these are broken only on 3.10 docs; 3.9 are fine.

    Reacted by Maciej Olko and Ilya Popov
  17. AlexWaygood commented on Aug 3, 2022

    @AlexWaygood
    AlexWaygood
    on Aug 3, 2022
    Member
    More actions

    @JelleZijlstra could you possibly pin this issue, since this is happening again? We're getting a ton of duplicates at the moment :(

    Reacted by Jelle Zijlstra and Bar Harel
  18. JelleZijlstra
    pinned this issue on Aug 3, 2022
  19. hauntsaninja
    added a commit that references this issue on Aug 5, 2022

    Run pip freeze after installing requirements

    f9e9287
  20. hauntsaninja commented on Aug 6, 2022

    @hauntsaninja
    hauntsaninja
    on Aug 6, 2022
    Contributor
    More actions

    Not sure who all have permissions on the docs setup, but I proposed a fix here: python/docsbuild-scripts#133

    Reacted by Maciej Olko
  21. gvanrossum
    unpinned this issue on Aug 7, 2022
  22. AlexWaygood commented on Aug 7, 2022

    @AlexWaygood
    AlexWaygood
    on Aug 7, 2022
    Member
    More actions

    @gvanrossum, did you mean to unpin this issue? :) it's still an ongoing problem, and we just got another duplicate filed :(

    Reacted by Bar Harel
  23. bharel commented on Aug 7, 2022

    @bharel
    bharel
    on Aug 7, 2022
    Contributor
    More actions

    Was about to file another duplicate. It's hard to find this issue while all others are getting closed, especially when it's old and doesn't show on top of the issue tracker.

  24. JelleZijlstra
    pinned this issue on Aug 7, 2022
  25. gvanrossum commented on Aug 7, 2022

    @gvanrossum
    gvanrossum
    on Aug 7, 2022
    Member
    More actions

    @gvanrossum, did you mean to unpin this issue? :) it's still an ongoing problem, and we just got another duplicate filed :(

    Sorry, I didn't mean to. I was just confused by what to me appeared to be a random issue linked at the top of some GitHub page. Maybe a pinned issue should be custom-made to have text alerting people to a something? I honestly didn't understand why this issue was important enough to be pinned.

  26. JulienPalard commented on Aug 7, 2022

    @JulienPalard
    JulienPalard
    on Aug 7, 2022
    Member
    More actions

    Sorry for the delay, I'm currently having a very limited internet connectivity (and time) so I'm not following closely those issues.

    I merged python/docsbuild-scripts#133, I don't know exactly at which version of Sphinx the issue has been fixed but it should do, thanks @hauntsaninja (if someone have the time to look at it more closely, it would be appreciated).

    I also manually restarted a build of 3.10 (English only, HTML only) to check if everything gets fixed (and it is \o/).

    More specifically I ran:

    cd /srv/docsbuild/
    ./venv-with-sphinx-3.4.3/bin/python -m pip install 'docutils<=0.17.1'
    /srv/docsbuild/venv/bin/python /srv/docsbuild/scripts/build_docs.py --branch 3.10 --languages en --quick
    

    I'm now running (in a GNU screen):

    /srv/docsbuild/venv/bin/python /srv/docsbuild/scripts/build_docs.py --branch 3.10 --quick
    

    for other languages to get fixed, and I'm shutting down my internet connectivity, hoping for the best.

    Reacted by Maciej Olko
  27. JulienPalard
    closed this as completedon Aug 7, 2022
  28. erlend-aasland
    unpinned this issue on Aug 8, 2022
  29. JulienPalard
    added a commit that references this issue on Aug 21, 2022

    Run pip freeze after installing requirements (#132)

    2d1c637
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @JulienPalard
    JulienPalard

Labels

docsDocumentation in the Doc dirDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.