Skip to content

Commit 2f087ae

Browse files
Bordacarmocca
andauthored
docs: update broken links & latest/stable (#16994)
* docs: update links to PL latest * also stable * last * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Carlos Mocholí <[email protected]> * fixing * . * fabric * fixing * . --------- Co-authored-by: Carlos Mocholí <[email protected]>
1 parent a9d78dc commit 2f087ae

File tree

30 files changed

+60
-61
lines changed

30 files changed

+60
-61
lines changed

.github/ISSUE_TEMPLATE/2_refactor.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ body:
3333
3434
- [**Metrics**](https://github.com/Lightning-AI/metrics):
3535
Machine learning metrics for distributed, scalable PyTorch applications.
36-
- [**Lite**](https://pytorch-lightning.readthedocs.io/en/latest/starter/lightning_lite.html):
3736
enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.
3837
- [**Flash**](https://github.com/Lightning-AI/lightning-flash):
3938
The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.

.github/ISSUE_TEMPLATE/3_feature_request.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ body:
3939
4040
- [**Metrics**](https://github.com/Lightning-AI/metrics):
4141
Machine learning metrics for distributed, scalable PyTorch applications.
42-
- [**Lite**](https://pytorch-lightning.readthedocs.io/en/latest/starter/lightning_lite.html):
4342
enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.
4443
- [**Flash**](https://github.com/Lightning-AI/lightning-flash):
4544
The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.

.github/ISSUE_TEMPLATE/4_documentation.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ body:
2222
2323
- [**Metrics**](https://github.com/Lightning-AI/metrics):
2424
Machine learning metrics for distributed, scalable PyTorch applications.
25-
- [**Lite**](https://pytorch-lightning.readthedocs.io/en/latest/starter/lightning_lite.html):
2625
enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.
2726
- [**Flash**](https://github.com/Lightning-AI/lightning-flash):
2827
The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.

.github/stale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ pulls:
2929
markComment: >
3030
This pull request has been automatically marked as stale because it has not had recent activity.
3131
It will be closed in 7 days if no further activity occurs. If you need further help see our docs:
32-
https://pytorch-lightning.readthedocs.io/en/latest/generated/CONTRIBUTING.html#pull-request
33-
or ask the assistance of a core contributor here or on Dicord.
32+
https://lightning.ai/docs/pytorch/latest/generated/CONTRIBUTING.html#pull-request
33+
or ask the assistance of a core contributor here or on Discord.
3434
Thank you for your contributions.
3535
# Comment to post when closing a stale issue. Set to `false` to disable
3636
closeComment: >

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ______________________________________________________________________
2020
<a href="src/lightning_app/README.md">Lightning Apps</a> •
2121
<a href="https://pytorch-lightning.readthedocs.io/en/stable/">Docs</a> •
2222
<a href="#community">Community</a> •
23-
<a href="https://pytorch-lightning.readthedocs.io/en/stable/generated/CONTRIBUTING.html">Contribute</a> •
23+
<a href="https://lightning.ai/docs/pytorch/stable/generated/CONTRIBUTING.html">Contribute</a> •
2424
</p>
2525

2626
<!-- DO NOT ADD CONDA DOWNLOADS... README CHANGES MUST BE APPROVED BY EDEN OR WILL -->
@@ -32,7 +32,7 @@ ______________________________________________________________________
3232
[![DockerHub](https://img.shields.io/docker/pulls/pytorchlightning/pytorch_lightning.svg)](https://hub.docker.com/r/pytorchlightning/pytorch_lightning)
3333
[![codecov](https://codecov.io/gh/Lightning-AI/lightning/branch/master/graph/badge.svg?token=SmzX8mnKlA)](https://codecov.io/gh/Lightning-AI/lightning)
3434

35-
[![ReadTheDocs](https://readthedocs.org/projects/pytorch-lightning/badge/?version=stable)](https://pytorch-lightning.readthedocs.io/en/stable/)
35+
[![ReadTheDocs](https://readthedocs.org/projects/pytorch-lightning/badge/?version=stable)](https://lightning.ai/docs/pytorch/stable/)
3636
[![Discord](https://img.shields.io/discord/1077906959069626439?style=plastic)](https://discord.gg/VptPCZkGNa)
3737
[![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/Lightning-AI/lightning/blob/master/LICENSE)
3838

@@ -111,7 +111,7 @@ trainer.fit(autoencoder, DataLoader(train), DataLoader(val))
111111

112112
## Advanced features
113113

114-
Lightning has over [40+ advanced features](https://pytorch-lightning.readthedocs.io/en/latest/common/trainer.html#trainer-flags) designed for professional AI research at scale.
114+
Lightning has over [40+ advanced features](https://lightning.ai/docs/pytorch/stable/common/trainer.html#trainer-flags) designed for professional AI research at scale.
115115

116116
Here are some examples:
117117

@@ -479,10 +479,10 @@ ______________________________________________________________________
479479

480480
The lightning community is maintained by
481481

482-
- [10+ core contributors](https://pytorch-lightning.readthedocs.io/en/latest/governance.html) who are all a mix of professional engineers, Research Scientists, and Ph.D. students from top AI labs.
482+
- [10+ core contributors](https://lightning.ai/docs/pytorch/latest/governance.html) who are all a mix of professional engineers, Research Scientists, and Ph.D. students from top AI labs.
483483
- 590+ active community contributors.
484484

485-
Want to help us build Lightning and reduce boilerplate for thousands of researchers? [Learn how to make your first contribution here](https://pytorch-lightning.readthedocs.io/en/stable/generated/CONTRIBUTING.html)
485+
Want to help us build Lightning and reduce boilerplate for thousands of researchers? [Learn how to make your first contribution here](https://lightning.ai/docs/pytorch/stable/generated/CONTRIBUTING.html)
486486

487487
Lightning is also part of the [PyTorch ecosystem](https://pytorch.org/ecosystem/) which requires projects to have solid testing, documentation and support.
488488

docs/source-app/get_started/build_model.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Let's assume you already have a folder with those two files.
2424
train.py # your own script to train your models
2525
requirements.txt # your python requirements.
2626
27-
If you don't, simply create a ``pl_project`` folder with those two files and add the following `PyTorch Lightning <https://pytorch-lightning.readthedocs.io/en/latest/>`_ code in the ``train.py`` file. This code trains a simple ``AutoEncoder`` on `MNIST Dataset <https://en.wikipedia.org/wiki/MNIST_database>`_.
27+
If you don't, simply create a ``pl_project`` folder with those two files and add the following `PyTorch Lightning <https://lightning.ai/docs/pytorch/latest/>`_ code in the ``train.py`` file. This code trains a simple ``AutoEncoder`` on `MNIST Dataset <https://en.wikipedia.org/wiki/MNIST_database>`_.
2828

2929
.. literalinclude:: ../code_samples/convert_pl_to_app/train.py
3030

@@ -39,7 +39,7 @@ Simply run the following commands in your terminal to install the requirements a
3939
pip install -r requirements.txt
4040
python train.py
4141
42-
Get through `PyTorch Lightning Introduction <https://pytorch-lightning.readthedocs.io/en/stable/starter/introduction.html#step-1-define-lightningmodule>`_ to learn more.
42+
Get through `PyTorch Lightning Introduction <https://lightning.ai/docs/pytorch/stable/starter/introduction.html#step-1-define-lightningmodule>`_ to learn more.
4343

4444
----
4545

docs/source-fabric/_templates/theme_variables.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'github': 'https://github.com/Lightning-AI/lightning',
33
'github_issues': 'https://github.com/Lightning-AI/lightning/issues',
44
'contributing': 'https://github.com/Lightning-AI/lightning/blob/master/.github/CONTRIBUTING.md',
5-
'governance': 'https://pytorch-lightning.readthedocs.io/en/latest/governance.html',
5+
'governance': 'https://lightning.ai/docs/pytorch/latest/governance.html',
66
'docs': 'https://lightning.ai/docs/fabric/',
77
'twitter': 'https://twitter.com/LightningAI',
88
'home': 'https://lightning.ai/docs/fabric/',

docs/source-fabric/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
intersphinx_mapping = {
263263
"python": ("https://docs.python.org/3", None),
264264
"torch": ("https://pytorch.org/docs/stable/", None),
265-
"pytorch_lightning": ("https://pytorch-lightning.readthedocs.io/en/stable/", None),
265+
"pytorch_lightning": ("https://lightning.ai/docs/pytorch/stable/", None),
266266
}
267267

268268
# -- Options for todo extension ----------------------------------------------

docs/source-fabric/guide/lightning_module.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Organize Your Code
55
Any raw PyTorch can be converted to Fabric with zero refactoring required, giving maximum flexibility in how you want to organize your projects.
66

77
However, when developing a project in a team or sharing the code publicly, it can be beneficial to conform to a standard format of how core pieces of the code are organized.
8-
This is what the `LightningModule <https://pytorch-lightning.readthedocs.io/en/stable/common/lightning_module.html>`_ was made for!
8+
This is what the `LightningModule <https://lightning.ai/docs/pytorch/stable/common/lightning_module.html>`_ was made for!
99

1010
Here is how you can neatly separate the research code (model, loss, optimization, etc.) from the "trainer" code (training loop, checkpointing, logging, etc.).
1111

@@ -60,7 +60,7 @@ Take these main ingredients and put them in a LightningModule:
6060
...
6161
6262
63-
This is a minimal LightningModule, but there are `many other useful hooks <https://pytorch-lightning.readthedocs.io/en/stable/common/lightning_module.html#hooks>`_ you can use.
63+
This is a minimal LightningModule, but there are `many other useful hooks <https://lightning.ai/docs/pytorch/stable/common/lightning_module.html#hooks>`_ you can use.
6464

6565

6666
----

docs/source-fabric/index.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. include:: links.rst
2+
13
################
24
Lightning Fabric
35
################
@@ -67,20 +69,20 @@ Why Fabric?
6769
|
6870
|
6971
70-
Fabric differentiates itself from a fully-fledged trainer like Lightning's `Trainer <https://pytorch-lightning.readthedocs.io/en/stable/common/trainer.html>`_ in these key aspects:
72+
Fabric differentiates itself from a fully-fledged trainer like Lightning's `Trainer`_ in these key aspects:
7173

7274
**Fast to implement**
7375
There is no need to restructure your code: Just change a few lines in the PyTorch script and you'll be able to leverage Fabric features.
7476

7577
**Maximum Flexibility**
7678
Write your own training and/or inference logic down to the individual optimizer calls.
77-
You aren't forced to conform to a standardized epoch-based training loop like the one in Lightning `Trainer <https://pytorch-lightning.readthedocs.io/en/stable/common/trainer.html>`_.
79+
You aren't forced to conform to a standardized epoch-based training loop like the one in Lightning `Trainer`_.
7880
You can do flexible iteration based training, meta-learning, cross-validation and other types of optimization algorithms without digging into framework internals.
7981
This also makes it super easy to adopt Fabric in existing PyTorch projects to speed-up and scale your models without the compromise on large refactors.
8082
Just remember: With great power comes a great responsibility.
8183

8284
**Maximum Control**
83-
The Lightning `Trainer <https://pytorch-lightning.readthedocs.io/en/stable/common/trainer.html>`_ has many built-in features to make research simpler with less boilerplate, but debugging it requires some familiarity with the framework internals.
85+
The Lightning `Trainer`_ has many built-in features to make research simpler with less boilerplate, but debugging it requires some familiarity with the framework internals.
8486
In Fabric, everything is opt-in. Think of it as a toolbox: You take out the tools (Fabric functions) you need and leave the other ones behind.
8587
This makes it easier to develop and debug your PyTorch code as you gradually add more features to it.
8688
Fabric provides important tools to remove undesired boilerplate code (distributed, hardware, checkpoints, logging, ...), but leaves the design and orchestration fully up to you.

0 commit comments

Comments
 (0)