Skip to content

Conversation

@miss-islington
Copy link
Contributor

  • Don't parse content as arg in the impl-detail directive

This does not change the (untranslated) output,
but ensures that the doctree node metadata is correct.
which fixesgh-97607 with the text not being translated.
It also simplifies the code and logic
and makes it consistant with the docutils built-in directives.

  • Remove unused branch from impl-detail directive handling no-content case

This is not used anywhere in the docs and lacks a clear use case,
and is more likely a mistake which is now flagged at build time.
This simplifies the logic from two code paths to one,
and makes the behavior consistant with similar built-in directives
(e.g. the various admonition types).

  • Further simplify impl-detail reST directive code
    (cherry picked from commit e8165d4)

Co-authored-by: C.A.M. Gerlach CAM.Gerlach@Gerlach.CAM

…pythonGH-97652) * Don't parse content as arg in the impl-detail directive This does not change the (untranslated) output, but ensures that the doctree node metadata is correct. which fixespythongh-97607 with the text not being translated. It also simplifies the code and logic and makes it consistant with the docutils built-in directives. * Remove unused branch from impl-detail directive handling no-content case This is not used anywhere in the docs and lacks a clear use case, and is more likely a mistake which is now flagged at build time. This simplifies the logic from two code paths to one, and makes the behavior consistant with similar built-in directives (e.g. the various admonition types). * Further simplify impl-detail reST directive code (cherry picked from commit e8165d4) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
@miss-islington
Copy link
ContributorAuthor

Status check is done, and it's a success ✅.

@miss-islingtonmiss-islington merged commit 5ee8344 into python:3.10Oct 2, 2022
@miss-islingtonmiss-islington deleted the backport-e8165d4-3.10 branch October 2, 2022 05:28
@miss-islington
Copy link
ContributorAuthor

Status check is done, and it's a success ✅.

Sign up for freeto 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.

4 participants

@miss-islington@ezio-melotti@bedevere-bot@CAM-Gerlach