- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
To improve accessibility, set language in conf.py using sphinx-quickstart #10062
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
Labels
Milestone
Comments
tk0miya
added a commit
to tk0miya/sphinx
that referenced
this issue
Jan 8, 2022
Change the default language to `'en'` if any language is not set in `conf.py`.
tk0miya
added a commit
to tk0miya/sphinx
that referenced
this issue
Jan 8, 2022
Change the default language to `'en'` if any language is not set in `conf.py`.
@tk0miya Thank you for addressing this a11y and i18n issue! |
tk0miya
added a commit
to tk0miya/sphinx
that referenced
this issue
Jan 11, 2022
Change the default language to `'en'` if any language is not set in `conf.py`.
tk0miya
added a commit
that referenced
this issue
Jan 12, 2022
…to_en Close #10062: Change the default language to 'en'
starlingx-github
pushed a commit
to starlingx/config
that referenced
this issue
May 31, 2022
A new version of sphinx was released May 29 2022 which requires a language setting in config otherwise a warning (treated as error) causes the sphinx operation to fail. Updating a file header to trigger zuul. Updated the sphinx config file to correct the issue. The sphinx behavioural change is mentioned here: sphinx-doc/sphinx#10062 sphinx-doc/sphinx#10474 Closes-Bug: #1976377 Signed-off-by: Al Bailey <al.bailey@windriver.com> Change-Id: I4d489a7bb8f579c894081bedba8ac3638a7eae1d
starlingx-github
pushed a commit
to starlingx/ha
that referenced
this issue
May 31, 2022
A new version of sphinx was released May 29 2022 which requires a language setting in config otherwise a warning (treated as error) causes the sphinx operation to fail. Updated the sphinx config file to correct the issue. The sphinx behavioural change is mentioned here: sphinx-doc/sphinx#10062 sphinx-doc/sphinx#10474 Partial-Bug: #1976377 Signed-off-by: Al Bailey <al.bailey@windriver.com> Change-Id: I5c5c501e23744aa0dbaf4280ed5abcd27442f20f
starlingx-github
pushed a commit
to starlingx/upstream
that referenced
this issue
May 31, 2022
A new version of sphinx was released May 29 2022 which requires a language setting in config otherwise a warning (treated as error) causes the sphinx operation to fail. Updated the sphinx config file to correct the issue. The sphinx behavioural change is mentioned here: sphinx-doc/sphinx#10062 sphinx-doc/sphinx#10474 Partial-Bug: #1976377 Signed-off-by: Al Bailey <al.bailey@windriver.com> Change-Id: I5fea877955c0d9b875c31f0b64bc8f3bced5c208
This can be closed now #10067 is merged and released. |
Thanks Hugo! |
starlingx-github
pushed a commit
to starlingx/nfv
that referenced
this issue
Jun 5, 2022
A new version of sphinx was released May 29 2022 which requires a language setting in config otherwise a warning (treated as error) causes the sphinx operation to fail. Updating a file header to trigger zuul. Updated the sphinx config file to correct the issue. The sphinx behavioural change is mentioned here: sphinx-doc/sphinx#10062 sphinx-doc/sphinx#10474 Note: The bug referenced below is for the config repo, but it affects multiple StarlingX repositories. Closes-Bug: 1976377 Change-Id: I7bb7886f27ce6190f8e23270efc1aadb7364fc90 Signed-off-by: Heitor Matsui <HeitorVieira.Matsui@windriver.com>
rennerocha
added a commit
to rennerocha/spidermon
that referenced
this issue
Jun 6, 2022
Introduced in Sphinx 5.x: sphinx-doc/sphinx#10062 We need to define a language in our conf.py
rennerocha
added a commit
to scrapinghub/spidermon
that referenced
this issue
Jun 6, 2022
Introduced in Sphinx 5.x: sphinx-doc/sphinx#10062 We need to define a language in our conf.py
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Is your feature request related to a problem? Please describe.
By default, Sphinx documentation does not include the language, for example in
docs/conf.py
language = 'en'
result in built web pages:
<html lang="en">
This leads to the following accessibility issue identified by Lighthouse:
<html> element does not have a [lang] attribute
Also, Sphinx sites thus do not by default take advantage of the features offered by setting the language.
This accessibility issue is present in major sites including NumPy.
Describe the solution you'd like
User already enters language when they run sphinx-quickstart:
so it should automatically set that
language
value in the generatedconf.py
file.It would also be nice if there was some prompt to set the
language
of existing Sphinx installations, upon an update of Sphinx version, or build of the documentation, for example.Describe alternatives you've considered
Status quo, which retains accessibility issue.
Additional context
Related issue: #10056.
The text was updated successfully, but these errors were encountered: