Skip to content

Update CONTRIBUTING.md for building docs from a GPU env. - #9374

Merged
NicolasHug merged 3 commits into
mainfrom
zy1git-patch-1
Feb 4, 2026
Merged

NicolasHug merged 3 commits into
mainfrom
zy1git-patch-1

Conversation

@zy1git

@zy1git zy1git commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

Added the procedure on how to build docs on a remote server and visualize the docs on local computer.

@pytorch-bot

pytorch-bot Bot commented Feb 3, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9374

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

✅ No Failures

As of commit af19a51 with merge base 91b3aa6 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@meta-cla meta-cla Bot added the cla signed label Feb 3, 2026

@NicolasHug NicolasHug left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @zy1git , this LGTM but before merging, make sure the line length sticks to <80 characters like in the rest of the file. It makes it easier to review and edit, and more consistent with the rest of the file. There are options in your IDE for that.

(this file in TV doesn't always strictly follow 80 character width, unlike in TC, but we should still try to preserve that).

Comment thread CONTRIBUTING.md Outdated
for formatting docstrings. Length of line inside docstrings block must be limited to 120 characters.

Please, follow the instructions to build and deploy the documentation locally.
All documentation is built for each PR and contains a preview on the PR. However, this takes a while (~8 minutes) and you should first build docs from your local machine. Please, follow the instructions to build and deploy the documentation locally.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we should avoid asking users to build locally all the time, because this is a bit more nuanced. Something along those lines could work:

All documentation is built for each PR and contains a preview on the PR. However, it is often useful to build the docs locally when making a lot of documentation changes.

@NicolasHug NicolasHug left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @zy1git !

@NicolasHug
NicolasHug merged commit b7d9102 into main Feb 4, 2026
62 checks passed
@NicolasHug
NicolasHug deleted the zy1git-patch-1 branch February 4, 2026 12:41
@github-actions

github-actions Bot commented Feb 4, 2026

Copy link
Copy Markdown

Hey @NicolasHug!

You merged this PR, but no labels were added.
The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants