Skip to content

Commit 26e2c2c

Browse files
fix check for flaky links in readme (#20910)
* fix check for flaky links in readme * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update ci-check-md-links.yml * force-check-all: "yes" * fix & skip * Empty-Commit * fixing * fixing * fixing --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 3693432 commit 26e2c2c

File tree

17 files changed

+34
-27
lines changed

17 files changed

+34
-27
lines changed

.github/CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ In case you are adding new dependencies, make sure that they are compatible with
130130

131131
### Documentation
132132

133-
To learn about development of docs, check out the docs [README.md](https://github.com/Lightning-AI/lightning/blob/master/docs/README.md).
133+
To learn about development of docs, check out the docs [README.md](https://github.com/Lightning-AI/pytorch-lightning/blob/master/docs/README.md).
134134

135135
### Testing
136136

137-
To learn about tests, check out the tests [README.md](https://github.com/Lightning-AI/lightning/blob/master/tests/README.md).
137+
To learn about tests, check out the tests [README.md](https://github.com/Lightning-AI/pytorch-lightning/blob/master/tests/README.md).
138138

139139
### Pull Request
140140

@@ -165,8 +165,8 @@ We welcome any useful contribution! For your convenience here's a recommended wo
165165

166166
1. If any of the existing tests fail in your PR on our CI, refer to the following READMEs to identify what's failing and try to address it.
167167

168-
- [Test README](https://github.com/Lightning-AI/lightning/blob/master/tests/README.md)
169-
- [CI/CD README](https://github.com/Lightning-AI/lightning/blob/master/.github/workflows/README.md)
168+
- [Test README](https://github.com/Lightning-AI/pytorch-lightning/blob/master/tests/README.md)
169+
- [CI/CD README](https://github.com/Lightning-AI/pytorch-lightning/tree/master/.github/workflows#readme)
170170

171171
1. When you feel ready for integrating your work, mark your PR "Ready for review".
172172

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Fixes #\<issue_number>
1818
<summary><b>Before submitting</b></summary>
1919

2020
- Was this **discussed/agreed** via a GitHub issue? (not for typos and docs)
21-
- [ ] Did you read the [contributor guideline](https://github.com/Lightning-AI/lightning/blob/master/.github/CONTRIBUTING.md), **Pull Request** section?
21+
- [ ] Did you read the [contributor guideline](https://github.com/Lightning-AI/pytorch-lightning/blob/master/.github/CONTRIBUTING.md), **Pull Request** section?
2222
- [ ] Did you make sure your **PR does only one thing**, instead of bundling different changes together?
2323
- Did you make sure to **update the documentation** with your changes? (if necessary)
2424
- Did you write any **new necessary tests**? (not for typos and docs)

.github/markdown-links-config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"ignorePatterns": [
33
{
44
"pattern": "^https://github.com/Lightning-AI/pytorch-lightning/pull/"
5+
},
6+
{
7+
"pattern": "^https://dev.azure.com/Lightning-AI/lightning/_apis/build/status"
8+
},
9+
{
10+
"pattern": "^https://codecov.io/gh/Lightning-AI/pytorch-lightning/graph/badge.svg"
511
}
612
],
713
"httpHeaders": [

.github/workflows/ci-check-md-links.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ on:
99
types: [opened, reopened, ready_for_review, synchronize]
1010
paths:
1111
- ".github/workflows/ci-check-md-links.yml"
12-
- ".github/workflows/markdown.links.config.json"
12+
- ".github/markdown-links-config.json"
1313
- "**/*.md"
1414

1515
jobs:
1616
check-md-links:
17-
uses: Lightning-AI/utilities/.github/workflows/check-md-links.yml@v0.14.3
17+
uses: Lightning-AI/utilities/.github/workflows/check-md-links.yml@main # can be pin with >=0.14.4
1818
with:
1919
config-file: ".github/markdown-links-config.json"
2020
base-branch: "master"
21+
force-check-all: "yes"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ______________________________________________________________________
3131

3232
[![Discord](https://img.shields.io/discord/1077906959069626439?style=plastic)](https://discord.gg/VptPCZkGNa)
3333
![GitHub commit activity](https://img.shields.io/github/commit-activity/w/lightning-ai/lightning)
34-
[![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/Lightning-AI/lightning/blob/master/LICENSE)
34+
[![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/Lightning-AI/pytorch-lightning/blob/master/LICENSE)
3535

3636
<!--
3737
[![CodeFactor](https://www.codefactor.io/repository/github/Lightning-AI/lightning/badge)](https://www.codefactor.io/repository/github/Lightning-AI/lightning)

docs/source-fabric/_templates/theme_variables.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{%- set external_urls = {
22
'github': 'https://github.com/Lightning-AI/lightning',
33
'github_issues': 'https://github.com/Lightning-AI/pytorch-lightning/issues',
4-
'contributing': 'https://github.com/Lightning-AI/lightning/blob/master/.github/CONTRIBUTING.md',
4+
'contributing': 'https://github.com/Lightning-AI/pytorch-lightning/blob/master/.github/CONTRIBUTING.md',
55
'governance': 'https://lightning.ai/docs/pytorch/latest/community/governance.html',
66
'docs': 'https://lightning.ai/docs/fabric/',
77
'twitter': 'https://twitter.com/LightningAI',

docs/source-fabric/advanced/compile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ needed to achieve the equivalent of `compile(distributed(quantized(model)))`:
221221
222222
model = fabric.setup(model)
223223
224-
For a full example, see our `FP8 Distributed Transformer example <https://github.com/Lightning-AI/lightning/blob/master/examples/fabric/fp8_distributed_transformer>`_.
224+
For a full example, see our `FP8 Distributed Transformer example <https://github.com/Lightning-AI/pytorch-lightning/blob/master/examples/fabric/fp8_distributed_transformer>`_.
225225

226226
----
227227

docs/source-fabric/advanced/multiple_setup.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ You can pair up as many models and optimizers as you want. For example, two mode
113113
# Set up discriminator
114114
discriminator, optimizer_dis = fabric.setup(discriminator, optimizer_dis)
115115
116-
For a full example of this use case, see our `GAN example <https://github.com/Lightning-AI/lightning/blob/master/examples/fabric/dcgan>`_.
116+
For a full example of this use case, see our `GAN example <https://github.com/Lightning-AI/pytorch-lightning/blob/master/examples/fabric/dcgan>`_.

docs/source-fabric/examples/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@ Examples
1010
.. displayitem::
1111
:header: Image Classification
1212
:description: Train an image classifier on the MNIST dataset
13-
:button_link: https://github.com/Lightning-AI/lightning/blob/master/examples/fabric/image_classifier
13+
:button_link: https://github.com/Lightning-AI/pytorch-lightning/blob/master/examples/fabric/image_classifier
1414
:col_css: col-md-4
1515
:height: 200
1616
:tag: basic
1717

1818
.. displayitem::
1919
:header: Transformer Language Model
2020
:description: A simple language model that learns to predict the next word in a sentence
21-
:button_link: https://github.com/Lightning-AI/lightning/blob/master/examples/fabric/language_model
21+
:button_link: https://github.com/Lightning-AI/pytorch-lightning/blob/master/examples/fabric/language_model
2222
:col_css: col-md-4
2323
:height: 200
2424
:tag: basic
2525

2626
.. displayitem::
2727
:header: GAN
2828
:description: Train a GAN that generates realistic human faces
29-
:button_link: https://github.com/Lightning-AI/lightning/blob/master/examples/fabric/dcgan
29+
:button_link: https://github.com/Lightning-AI/pytorch-lightning/blob/master/examples/fabric/dcgan
3030
:col_css: col-md-4
3131
:height: 200
3232
:tag: intermediate
3333

3434
.. displayitem::
3535
:header: Meta-Learning
3636
:description: Distributed training with the MAML algorithm on the Omniglot and MiniImagenet datasets
37-
:button_link: https://github.com/Lightning-AI/lightning/blob/master/examples/fabric/meta_learning
37+
:button_link: https://github.com/Lightning-AI/pytorch-lightning/blob/master/examples/fabric/meta_learning
3838
:col_css: col-md-4
3939
:height: 200
4040
:tag: intermediate
@@ -50,7 +50,7 @@ Examples
5050
.. displayitem::
5151
:header: Reinforcement Learning
5252
:description: Implementation of the Proximal Policy Optimization (PPO) algorithm with multi-GPU support
53-
:button_link: https://github.com/Lightning-AI/lightning/blob/master/examples/fabric/reinforcement_learning
53+
:button_link: https://github.com/Lightning-AI/pytorch-lightning/blob/master/examples/fabric/reinforcement_learning
5454
:col_css: col-md-4
5555
:height: 200
5656
:tag: intermediate

docs/source-fabric/fundamentals/convert.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ All steps combined, this is how your code will change:
8484
8585
8686
That's it! You can now train on any device at any scale with a switch of a flag.
87-
Check out our before-and-after example for `image classification <https://github.com/Lightning-AI/lightning/blob/master/examples/fabric/image_classifier/README.md>`_ and many more :doc:`examples <../examples/index>` that use Fabric.
87+
Check out our before-and-after example for `image classification <https://github.com/Lightning-AI/pytorch-lightning/blob/master/examples/fabric/image_classifier/README.md>`_ and many more :doc:`examples <../examples/index>` that use Fabric.
8888

8989

9090
----

0 commit comments

Comments
 (0)