Skip to content

Reduce size of built docs#1470

Merged
NicolasHug merged 2 commits into
meta-pytorch:mainfrom
NicolasHug:docs_smaller
Jun 1, 2026
Merged

Reduce size of built docs#1470
NicolasHug merged 2 commits into
meta-pytorch:mainfrom
NicolasHug:docs_smaller

Conversation

@NicolasHug
Copy link
Copy Markdown
Contributor

We started getting a few warnings upon upload of our docs because they started getting really, really big - about 200Mb which is unreasonable for just a bunch of html files.

The issue was that when we use play_audio or play_video, the input is checked-in into the built docs artifacts. Meaning that we were storing large raw wav files, as well as large video files. This PR skips / reduces the amount of stuff we have to keep around. The audio example went from 60Mb to ~3, and the video example went from 45 to ~3.

This should account for 100Mb * 2 (since I think they were also duplicated). Let's see.

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Jun 1, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/meta-pytorch/torchcodec/1470

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

⏳ No Failures, 15 Pending

As of commit e9685f0 with merge base 54c4091 (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 This label is managed by the Meta Open Source bot. label Jun 1, 2026
@NicolasHug
Copy link
Copy Markdown
Contributor Author

Built docs artifact is just ~20MB now, still not insignificant but mangeable, and 10X smaller than before

@NicolasHug NicolasHug merged commit 0e71f59 into meta-pytorch:main Jun 1, 2026
82 checks passed
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 Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant