Skip to content

Modified copyright, privacy, terms in docs#1160

Draft
mollyxu wants to merge 3 commits intometa-pytorch:mainfrom
mollyxu:oss-requirements
Draft

Modified copyright, privacy, terms in docs#1160
mollyxu wants to merge 3 commits intometa-pytorch:mainfrom
mollyxu:oss-requirements

Conversation

@mollyxu
Copy link
Contributor

@mollyxu mollyxu commented Jan 9, 2026

Modified copyright, privacy, terms in homepage to comply with Meta Open Source policies

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 9, 2026
</script>

<script type="text/javascript">
// Override footer links to Meta's Terms and Privacy Policy
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently, we use pytorch-sphinx-theme, which have these links to privacy and terms in raw html. We can't directly override it in our layout.html. As such, we would have to use javascript to replace those links.

We could also ask pytorch-sphinx-theme if they could wrap these links in an overridable block but Im not sure if it makes sense for them to support that.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the search and replace approach makes sense, but is somewhat fragile. If the pytorch_sphinx_theme footer updates, we will no longer update the link to have the correct policy.

The fix should probably be upstream, where this link is currently set.


# General information about the project.
copyright = "2023-present, TorchCodec Contributors"
copyright = "©2023 Meta Platforms, Inc"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Meta Open Source policy has a script regex that requires the copyright symbol to appear after "Copyright." This will result in a double copyright symbol effectively and render as © Copyright ©2023 Meta Platforms, Inc.The official PyTorch docs also have a double copyright symbol

Alternatively, we could replace the footer's copyright section using JavaScript

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems on the official pytorch docs, the first copyright symbol precedes "PyTorch", but ours only precedes the word "Copyright"?
'© PyTorch. Copyright © The Linux Foundation®'

Either way, it's probably fine to have two copyright symbols.

Torchaudio keeps the year current, lets reuse this code: https://github.com/pytorch/audio/blob/e1232690308a6b5297fcd06e925899a9b64f7280/docs/source/conf.py#L174

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.

2 participants