diff --git a/docs/source/conf.py b/docs/source/conf.py index 11a0d2a0538bb..633f4617ae6af 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -178,8 +178,8 @@ def _transform_changelog(path_in: str, path_out: str) -> None: # documentation. html_theme_options = { - 'pytorch_project': info.__homepage__, - 'canonical_url': info.__homepage__, + 'pytorch_project': 'https://pytorchlightning.ai', + 'canonical_url': info.__docs_url__, 'collapse_navigation': False, 'display_version': True, 'logo_only': False, diff --git a/pytorch_lightning/info.py b/pytorch_lightning/info.py index 0e7a1c25a74f1..b00d1946424e7 100644 --- a/pytorch_lightning/info.py +++ b/pytorch_lightning/info.py @@ -7,6 +7,7 @@ __license__ = 'Apache-2.0' __copyright__ = f'Copyright (c) 2018-{_this_year}, {__author__}.' __homepage__ = 'https://github.com/PyTorchLightning/pytorch-lightning' +__docs_url__ = "https://pytorch-lightning.readthedocs.io/en/stable/" # this has to be simple string, see: https://github.com/pypa/twine/issues/522 __docs__ = ( "PyTorch Lightning is the lightweight PyTorch wrapper for ML researchers."