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

Patch github link in torchtune docs header #1914

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

ebsmothers
Copy link
Contributor

@ebsmothers ebsmothers commented Oct 28, 2024

Fixes #1843

In our live docs we currently use the default PyTorch Sphinx theme for our header. This includes a Github icon that points to the main PyTorch repo by default, but for torchtune this isn't really where we want to point. This PR takes a similar approach to what is done in torchaudio here: adding a script to the footer to patch the href pointing to the PyTorch GH page. Unlike in torchaudio, however, we do not pin to an older version of the PyTorch Sphinx theme, so we identify the object to patch slightly differently.

Test plan:

Building docs locally and mousing over the GH icon we can see that it now points to the torchtune page.

Screenshot 2024-10-28 at 4 49 58 PM

Copy link

pytorch-bot bot commented Oct 28, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/1914

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 25b9713 with merge base d0c6460 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 28, 2024
Copy link
Contributor

@joecummings joecummings left a comment

Choose a reason for hiding this comment

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

He's an HTML GOD

Copy link
Contributor

@svekars svekars left a comment

Choose a reason for hiding this comment

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

It looks like it can be all indented to the left but otherwise looks good and seems to be working.

@ebsmothers ebsmothers merged commit d338066 into pytorch:main Oct 29, 2024
17 checks passed
@ebsmothers ebsmothers deleted the update-docs-gh-link branch October 29, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Point Github link at top right of documentation to pytorch/torchtune
5 participants