Skip to content

Fix duplicate labels and other docs build warnings #9446

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

melissawm
Copy link

@melissawm melissawm commented Jul 4, 2025

Closes #9256

One remaining question is if the removed empty html comment block can be safely removed.

The errors fixed by this PR are:

  • Several WARNING: duplicate label
  • xla/docs/source/contribute/plugins.md:68: ERROR: Unknown directive type "=html".
  • xla/docs/source/learn/_pjrt.md: WARNING: document isn't included in any toctree
  • xla/docs/source/learn/_pjrt.md:38: WARNING: 'myst' reference target not found: #multithreading-on-tpu-v2v3
  • xla/docs/source/learn/_pjrt.md:400: WARNING: 'myst' reference target not found: ./ddp.md
  • xla/docs/source/learn/_pjrt.md:400: WARNING: 'myst' reference target not found: ../test/test_train_mp_imagenet.py
  • xla/docs/source/perf/spmd_advanced.md:6: WARNING: Non-consecutive header level increase; H1 to H3 [myst.header]
  • xla/docs/source/perf/spmd_advanced.md:41: WARNING: Non-consecutive header level increase; H1 to H3 [myst.header]

Some context:

  • MyST autogenerates header labels, and I believe the autosectionlabel extension was clashing with the MyST default configuration. What changes is that MyST normalizes anchor labels so that # My Section Name has a corresponding anchor of #my-section-name.
  • For the spmd_advanced.md file, I'm not sure that this is the correct information organization, but it does match what is currently displayed on the live docs website.

@qihqi qihqi enabled auto-merge (squash) July 7, 2025 16:22
@@ -45,7 +45,7 @@ you can test with the placeholder `LIBRARY` device type. For example:
[device(type='xla', index=0), device(type='xla', index=1), device(type='xla', index=2), device(type='xla', index=3)]

To register your device type automatically for users as well as to
handle extra setup for e.g. multiprocessing, you may implement the
handle extra setup for e.g. multiprocessing, you may implement the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"for example, ..."

auto-merge was automatically disabled July 7, 2025 17:50

Head branch was pushed to by a user without write access

@melissawm
Copy link
Author

Thanks for the reviews - please let me know if I can address any other feedback. Cheers!

@qihqi
Copy link
Collaborator

qihqi commented Jul 11, 2025

@melissawm please rebase to head, we did some fix on the CI. thanks!

@melissawm melissawm force-pushed the docs-build-warnings branch from 1a01be9 to ed466c0 Compare July 11, 2025 14:06
@melissawm
Copy link
Author

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs build issues errors / warnings on duplicate labels (anchors)
4 participants