Skip to content

Commit 780feef

Browse files
authored
Fix documentation links (#3940)
Fixes: #3933
1 parent 8f56b0c commit 780feef

12 files changed

+34
-27
lines changed

.config/requirements-docs.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
mkdocs-ansible[lock]>=0.1.4
22
pipdeptree>=2.4.0
3+
linkchecker

.config/requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ cryptography==40.0.2
3030
csscompressor==0.9.5
3131
cssselect2==0.7.0
3232
defusedxml==0.7.1
33+
dnspython==2.3.0
3334
enrich==1.2.7
3435
exceptiongroup==1.1.1
3536
execnet==1.9.0
@@ -44,6 +45,7 @@ jinja2==3.1.2
4445
jinja2-time==0.2.0
4546
jsmin==3.0.1
4647
jsonschema==4.17.3
48+
linkchecker==10.2.1
4749
markdown==3.3.7
4850
markdown-exec==1.4.0
4951
markdown-include==0.8.1

.github/ISSUE_TEMPLATE/bug_report.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ labels: bug
66

77
<!--- Verify first that your issue is not already reported on GitHub -->
88
<!--- Do not report bugs before reproducing them with the code of the main branch! -->
9-
<!--- Please also check https://molecule.readthedocs.io/en/latest/faq.html --->
10-
<!--- Please use https://groups.google.com/forum/#!forum/molecule-users for usage questions -->
9+
<!--- Please also check https://ansible.readthedocs.io/projects/molecule/faq/ --->
10+
<!--- Please use https://github.com/ansible-community/molecule/discussions for usage questions -->
1111

1212
# Issue Type
1313

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# About Ansible Molecule
22

33
[![PyPI Package](https://img.shields.io/pypi/v/molecule)](https://pypi.org/project/molecule/)
4-
[![Documentation Status](https://readthedocs.org/projects/molecule/badge/?version=latest)](https://molecule.readthedocs.io/en/latest/)
4+
[![Documentation Status](https://readthedocs.org/projects/molecule/badge/?version=latest)](https://ansible.readthedocs.io/projects/molecule)
55
[![image](https://github.com/ansible-community/molecule/workflows/tox/badge.svg)](https://github.com/ansible-community/molecule/actions)
66
[![Python Black Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
77
[![Ansible Code of Conduct](https://img.shields.io/badge/Code%20of%20Conduct-silver.svg)](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html)

docs/ci.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,11 @@ pipeline {
340340

341341
## Tox
342342

343-
[Tox](https://tox.readthedocs.io/en/latest) is a generic virtualenv
343+
[Tox](https://tox.wiki/en/latest/) is a generic virtualenv
344344
management, and test command line tool.
345-
[Tox](https://tox.readthedocs.io/en/latest) can be used in conjunction
345+
[Tox](https://tox.wiki/en/latest/) can be used in conjunction
346346
with
347-
[Factors](http://tox.readthedocs.io/en/latest/config.html#factors-and-factor-conditional-settings)
347+
[Factors](https://tox.wiki/en/latest/config.html#factors-and-factor-conditional-settings)
348348
and Molecule, to perform scenario tests.
349349

350350
To test the role against multiple versions of Ansible.
@@ -369,7 +369,7 @@ commands =
369369
To view the factor generated tox environments run `tox -l`.
370370

371371
If using the [\--parallel
372-
functionality](https://tox.readthedocs.io/en/latest/config.html#cmdoption-tox-p)
372+
functionality](https://tox.wiki/en/latest/config.html#cmdoption-tox-p)
373373
of Tox (version 3.7 onwards), Molecule must be made aware of the
374374
parallel testing by setting a `MOLECULE_EPHEMERAL_DIRECTORY` environment
375375
variable per environment. In addition, we export a `TOX_ENVNAME`

docs/contributing.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
group](https://github.com/ansible/community/wiki/molecule) if you
77
would like to influence the direction of the project.
88
- Join us in `#ansible-devtools` on
9-
[libera.chat](https://web.libera.chat/?channel=#ansible-molecule) irc,
10-
or [molecule-users
11-
Forum](https://groups.google.com/forum/#!forum/molecule-users).
9+
[libera.chat](https://web.libera.chat/?channel=#ansible-molecule) matrix/irc,
10+
or [molecule discussions](https://github.com/ansible-community/molecule/discussions).
1211
- The full list of Ansible email lists and IRC channels can be found in
1312
the [communication
1413
page](https://docs.ansible.com/ansible/latest/community/communication.html).
@@ -50,15 +49,15 @@ document.
5049
## Testing
5150

5251
Molecule has an extensive set of unit and functional tests. Molecule
53-
uses [Tox](https://tox.readthedocs.io/en/latest/) factors to generate a
52+
uses [Tox](https://tox.wiki/en/latest/) factors to generate a
5453
matrix of python x Ansible x unit/functional tests. Manual setup
5554
required as of this time.
5655

5756
### Dependencies
5857

5958
Tests will be skipped when the driver's binary is not present.
6059

61-
Install the test framework [Tox](https://tox.readthedocs.io/en/latest/).
60+
Install the test framework [Tox](https://tox.wiki/en/latest/).
6261

6362
```bash
6463
$ python3 -m pip install tox

docs/faq.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ the scenario's molecule.yml.
5757

5858
## Can I run Molecule processes in parallel?
5959

60-
Please see [parallel-usage-example](/examples.md/#docker-with-non-privileged-user) for
60+
Please see [parallel-usage-example](examples.md#docker-with-non-privileged-user) for
6161
usage.
6262

6363
## Can I specify random instance IDs in my molecule.yml?
@@ -97,7 +97,7 @@ Yes, roles contained in a
9797
[monorepo](https://en.wikipedia.org/wiki/Monorepo) with other roles are
9898
automatically picked up and `ANSIBLE_ROLES_PATH` is set accordingly. See
9999
[this
100-
page](https://molecule.readthedocs.io/en/latest/examples/#monolith-repo)
100+
page](examples.md#monolith-repo)
101101
for more information.
102102

103103
## How can I add development/testing-only dependencies?

docs/getting-started.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ INSTALL.rst molecule.yml converge.yml verify.yml
6565
role. Molecule will invoke this playbook with `ansible-playbook` and
6666
run it against an instance created by the driver.
6767
- `verify.yml` is the Ansible file used for testing as Ansible is the
68-
default [verifier](/configuration/#verifier). This allows you to
68+
default [verifier](configuration.md#verifier). This allows you to
6969
write specific tests against the state of the container after your
7070
role has finished executing. Other verifier tools are available
7171
Note that [testinfra](https://testinfra.readthedocs.io/en/latest/) was the default verifier prior to molecule version 3.
@@ -98,24 +98,24 @@ The `molecule.yml` is for configuring Molecule. It is a
9898
[YAML](https://yaml.org/) file whose keys represent the high level
9999
components that Molecule provides. These are:
100100

101-
- The [dependency](/configuration/#dependency) manager. Molecule
101+
- The [dependency](configuration.md#dependency) manager. Molecule
102102
uses [galaxy development guide]
103103
by default to resolve your role dependencies.
104-
- The [driver](/configuration/#driver) provider. Molecule uses
104+
- The [driver](configuration.md#driver) provider. Molecule uses
105105
[Docker](https://docs.docker.com/) by default. Molecule uses the
106106
driver to delegate the task of creating instances.
107-
- The [platforms](/configuration/#platforms) definitions. Molecule
107+
- The [platforms](configuration.md#platforms) definitions. Molecule
108108
relies on this to know which instances to create, name and to which
109109
group each instance belongs. If you need to test your role against
110110
multiple popular distributions (CentOS, Fedora, Debian), you can
111111
specify that in this section.
112-
- The [provisioner](/configuration/#provisioner). Molecule only
112+
- The [provisioner](configuration.md#provisioner). Molecule only
113113
provides an Ansible provisioner. Ansible manages the life cycle of
114114
the instance based on this configuration.
115115
- The [scenario][] definition.
116116
Molecule relies on this configuration to control the scenario
117117
sequence order.
118-
- The [verifier](/configuration/#verifier) framework. Molecule
118+
- The [verifier](configuration.md#verifier) framework. Molecule
119119
uses Ansible by default to provide a way to write specific state
120120
checking tests (such as deployment smoke tests) on the target
121121
instance.

docs/usage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ molecule list
6767

6868
Matrix will display the subcommand's ordered list of actions, which can
6969
be changed in
70-
[scenario](https://molecule.readthedocs.io/en/latest/configuration.html#scenario)
70+
[scenario](configuration.md#scenario)
7171
configuration.

linkcheckerrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[filtering]
2+
checkextern=1
3+
ignore=
4+
xml.gz$
5+
404.html
6+
7+
[checking]
8+
robotstxt=0
9+
localwebroot=./

mkdocs.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
site_name: Ansible Molecule
3-
site_url: https://molecule.readthedocs.io/
3+
site_url: https://ansible.readthedocs.io/projects/molecule/
44
repo_url: https://github.com/ansible-community/molecule
55
edit_uri: blob/main/docs/
66
copyright: Copyright © 2023 Red Hat, Inc.
@@ -83,13 +83,8 @@ plugins:
8383
import:
8484
- url: https://docs.ansible.com/ansible/latest/objects.inv
8585
domains: [py, std, "std:doc", "std:label"]
86-
# - https://virtualenv.pypa.io/en/latest/objects.inv
87-
# - https://yamllint.readthedocs.io/en/latest/objects.inv
88-
# - https://jinja.palletsprojects.com/objects.inv
8986
- url: https://pip.pypa.io/en/latest/objects.inv
9087
domains: [py, std]
91-
# - https://docs.python.org/3/objects.inv
92-
# - https://testinfra.readthedocs.io/en/latest/objects.inv
9388

9489
markdown_extensions:
9590
- admonition

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ passenv = *
106106
usedevelop = true
107107
commands =
108108
mkdocs build --strict
109+
linkchecker -f linkcheckerrc site
109110
extras =
110111
docs
111112

0 commit comments

Comments
 (0)