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

sphinx3 renders diffrently docs.python.org for 3.10 #86208

Closed
corona10 opened this issue Oct 15, 2020 · 16 comments
Closed

sphinx3 renders diffrently docs.python.org for 3.10 #86208

corona10 opened this issue Oct 15, 2020 · 16 comments
Labels
3.8 only security fixes 3.9 only security fixes 3.10 only security fixes docs Documentation in the Doc dir performance Performance or resource usage release-blocker

Comments

@corona10
Copy link
Member

BPO 42042
Nosy @rhettinger, @ambv, @JulienPalard, @Mariatta, @corona10, @pablogsal, @miss-islington
PRs
  • bpo-42042: Use ids attribute instead of names attribute #22739
  • [3.8] bpo-42042: Use ids attribute instead of names attribute (GH-22739) #23263
  • [3.9] bpo-42042: Use ids attribute instead of names attribute (GH-22739) #23265
  • Files
  • python-391.html: Update
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-12-26.13:58:36.769>
    created_at = <Date 2020-10-15.11:57:21.365>
    labels = ['3.8', '3.9', '3.10', 'performance', 'release-blocker', 'docs']
    title = 'sphinx3 renders diffrently docs.python.org for 3.10'
    updated_at = <Date 2020-12-26.13:58:36.768>
    user = 'https://github.com/corona10'

    bugs.python.org fields:

    activity = <Date 2020-12-26.13:58:36.768>
    actor = 'corona10'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2020-12-26.13:58:36.769>
    closer = 'corona10'
    components = ['Documentation']
    creation = <Date 2020-10-15.11:57:21.365>
    creator = 'corona10'
    dependencies = []
    files = ['49682']
    hgrepos = []
    issue_num = 42042
    keywords = ['patch']
    message_count = 16.0
    messages = ['378677', '378815', '378816', '378817', '378818', '379967', '379973', '379976', '380896', '380898', '380903', '383318', '383346', '383349', '383352', '383806']
    nosy_count = 8.0
    nosy_names = ['rhettinger', 'docs@python', 'lukasz.langa', 'mdk', 'Mariatta', 'corona10', 'pablogsal', 'miss-islington']
    pr_nums = ['22739', '23263', '23265']
    priority = 'release blocker'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue42042'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    @corona10
    Copy link
    Member Author

    For example
    https://docs.python.org/3.10/c-api/bool.html?highlight=pydict_new#c.PyDict_New

    should display

    Return value: New reference.

    but not, this looks like a regression bug.

    other version display Return value: New reference. very well.

    @corona10 corona10 added the 3.10 only security fixes label Oct 15, 2020
    @corona10 corona10 added docs Documentation in the Doc dir 3.10 only security fixes labels Oct 15, 2020
    @corona10 corona10 added the docs Documentation in the Doc dir label Oct 15, 2020
    @corona10
    Copy link
    Member Author

    This is the regression bug caused by sphinx==3.2.1
    If we roll back the sphinx version(2.4.4), it is okay.
    I am investigating what causes this issue.

    @corona10
    Copy link
    Member Author

    sphinx2
    (Pdb) par[0].attributes
    {'ids': ['c._PyObject_New'], 'classes': [], 'names': ['c._PyObject_New'], 'dupnames': [], 'backrefs': [], 'first': False}

    sphinx3
    (Pdb) par[0].attributes
    {'ids': ['c._PyObject_New'], 'classes': [], 'names': [], 'dupnames': [], 'backrefs': [], 'is_multiline': True}

    We are using the names attribute for annotation.

    @corona10
    Copy link
    Member Author

    One more regression is that
    code background highlight is not applied after sphinx version3

    See
    https://docs.python.org/3.10/c-api/dict.html#c.PyDict_Next
    https://docs.python.org/3.9/c-api/dict.html#c.PyDict_Next

    @corona10 corona10 changed the title docs.python.org for 3.10 missing the new refererence record. sphinx3 renders diffrently docs.python.org for 3.10 Oct 17, 2020
    @corona10 corona10 changed the title docs.python.org for 3.10 missing the new refererence record. sphinx3 renders diffrently docs.python.org for 3.10 Oct 17, 2020
    @corona10
    Copy link
    Member Author

    Okay this is the theme bug.
    python/python-docs-theme#57

    @corona10
    Copy link
    Member Author

    @pablogsal

    Since this is the developer guide of 3.10.
    I would like to suggest as release bloker, if you don't agree you can change it ;)

    @pablogsal
    Copy link
    Member

    I would like to suggest as release bloker, if you don't agree you can change it ;)

    This is indeed a release blocker, but likely for the beta/release candidate phases.

    @corona10
    Copy link
    Member Author

    but likely for the beta/release candidate phases.

    I think so too

    @corona10
    Copy link
    Member Author

    New changeset 09490a1 by Dong-hee Na in branch 'master':
    bpo-42042: Use ids attribute instead of names attribute (GH-22739)
    09490a1

    @corona10 corona10 added 3.8 only security fixes 3.9 only security fixes labels Nov 13, 2020
    @miss-islington
    Copy link
    Contributor

    New changeset 5ad468d by Miss Islington (bot) in branch '3.8':
    bpo-42042: Use ids attribute instead of names attribute (GH-22739)
    5ad468d

    @corona10
    Copy link
    Member Author

    New changeset 0f4dd87 by Dong-hee Na in branch '3.9':
    [3.9] bpo-42042: Use ids attribute instead of names attribute (GH-22739) (GH-23265)
    0f4dd87

    @WendyjoyReynolds WendyjoyReynolds mannequin added performance Performance or resource usage labels Dec 15, 2020
    @JulienPalard
    Copy link
    Member

    Is it fixed?

    @corona10
    Copy link
    Member Author

    @mdk

    No python/python-docs-theme#57 must be fixed ;)

    @rhettinger
    Copy link
    Contributor

    The code background highlights really do need to be restored. Readability has been significantly impaired in 3.10.

    @pablogsal
    Copy link
    Member

    python/python-docs-theme#57 is landed. We just need a new release of the package to pypi

    @corona10
    Copy link
    Member Author

    @pablogsal @rhettinger @mdk @Mariatta

    Cool!! everything looks okay!
    Now I close this issue.

    Thank you to everyone who works on this issue!!

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes 3.9 only security fixes 3.10 only security fixes docs Documentation in the Doc dir performance Performance or resource usage release-blocker
    Projects
    None yet
    Development

    No branches or pull requests

    5 participants