-
Notifications
You must be signed in to change notification settings - Fork 663
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
Fix documentation #2407
Fix documentation #2407
Conversation
This commit fixes multiple issues with documentation. 1. Duplicated requirejs The nbsphinx extension introduced in pytorch#2393 pulled a requirejs which caused the initialization script to halt. As a result, the right side bar was left uninitialized. 2. Undefined variable error It turned out that PyTorch's theme expected the downstream projects to define `collapsedSections` variable. Currently console log shows `collapsedSections is not defined`. As a result of this fix, we start to see the + symbol on left side. 3. Fix the behavior of default expand Tweaks the right-side bar initialization behavior so that expand-all only happens once, not at every resize. 4. Overwrite the link to GitHub The `GitHub` tab in main-menu always linked PyTorch core. This commit adds overwrite to torchaudio page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes 1-3 look good.
I'm not too convinced about the GitHub override, since the tabs are all general PyTorch related links (Mobile/Tutorials/Resources etc are related to PyTorch and not torchaudio), so I think it does make sense of GitHub directed to PyTorch repo. I do see where you're coming from though and don't have a strong opinion so am ok with this change. Alternatively, thoughts on proposing for the pytorch website to have a dropdown for GitHub tab similar to Docs, for the main different repos?
That's a good idea, I was thinking to maybe making the href configurable for each project. Let me move on with this one. |
@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Hey @mthrok. |
Follow-up of pytorch#2407, the <script> was not properly closed on pages other than tutorials
This commit fixes multiple issues with documentation.
https://output.circle-artifacts.com/output/job/23245537-e57b-4b9d-9b81-b3df20996d1f/artifacts/0/docs/tutorials/audio_resampling_tutorial.html
Duplicated requirejs
The nbsphinx extension introduced in Add tutorial to use NVDEC with Stream API #2393 pulled a requirejs
which caused the initialization script to halt.
As a result, the right side bar was left uninitialized.
Undefined variable error
It turned out that PyTorch's theme expected the downstream projects
to define
collapsedSections
variable.Currently console log shows
collapsedSections is not defined
.As a result of this fix, we start to see the + symbol on left side.
Fix the behavior of default expand
Tweaks the right-side bar initialization behavior
so that expand-all only happens once, not at every resize.
Overwrite the link to GitHub
The
GitHub
tab in main-menu always linked PyTorch core.This commit adds overwrite to torchaudio page