You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://matrix.to/#/#antsibull:ansible.com)
10
10
[](https://matrix.to/#/#docs:ansible.com)
Tooling for building Ansible documentation. This is mainly the `antsibull-docs` command and the [Sphinx extension](https://www.sphinx-doc.org/en/master/), ``sphinx_antsibull_ext``. Please check out the [documentation](https://ansible.readthedocs.io/projects/antsibull-docs/) for more information.
17
+
Tooling for building Ansible documentation. This is mainly the `antsibull-docs` command and the [Sphinx extension](https://www.sphinx-doc.org/en/master/), ``sphinx_antsibull_ext``. Please check out the [documentation](https://docs.ansible.com/projects/antsibull-docs/) for more information.
18
18
19
-
You can find a list of changes in [the antsibull-docs changelog](https://ansible.readthedocs.io/projects/antsibull-docs/changelog/).
19
+
You can find a list of changes in [the antsibull-docs changelog](https://docs.ansible.com/projects/antsibull-docs/changelog/).
20
20
21
-
antsibull-docs is covered by the [Ansible Code of Conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html).
21
+
antsibull-docs is covered by the [Ansible Code of Conduct](https://docs.ansible.com/projects/ansible/latest/community/code_of_conduct.html).
22
22
23
23
## Community
24
24
25
-
Need help or want to discuss the project? See our [Community guide](https://ansible.readthedocs.io/projects/antsibull-docs/community/) to learn how to join the conversation!
25
+
Need help or want to discuss the project? See our [Community guide](https://docs.ansible.com/projects/antsibull-docs/community/) to learn how to join the conversation!
gives you a lot of freedom to get the output you want.
319
319
320
320
In some cases, it is not sufficient though.
321
-
For example, if you want to extract YAML output, and present it in a way that [matches your yamllint configuration](https://ansible.readthedocs.io/projects/antsibull-nox/config-file/#yamllint-part-of-the-yamllint-session).
321
+
For example, if you want to extract YAML output, and present it in a way that [matches your yamllint configuration](https://docs.ansible.com/projects/antsibull-nox/config-file/#yamllint-part-of-the-yamllint-session).
322
322
The default callback's YAML output suffers from [PyYAML's list indentation issue](https://github.com/yaml/pyyaml/issues/234),
323
323
which causes problems with many yamllint configurations.
324
-
Also, the [ansible.builtin.default callback's YAML output](https://docs.ansible.com/ansible/devel/collections/ansible/builtin/default_callback.html#parameter-result_format) is indented by 4 spaces,
324
+
Also, the [ansible.builtin.default callback's YAML output](https://docs.ansible.com/projects/ansible/devel/collections/ansible/builtin/default_callback.html#parameter-result_format) is indented by 4 spaces,
325
325
while most YAML is expected to be indented by 2 spaces.
326
326
327
327
If you use the above settings (`skip_first_lines` / `skip_last_lines`) to extract only the YAML content of one task of the playbook's output,
To install collections, you can either use [`ansible-galaxy collection install`](https://docs.ansible.com/ansible/latest/collections_guide/collections_installing.html), or you can provide the collection repositories in a path structure that allows ansible-core to access them. If you work on collections, the second approach is usually preferred. One way of doing this is create a directory structure `ansible_collections/<namespace>/<name>` for a collection `<namespace>.<name>` and point Ansible's [`ANSIBLE_COLLECTIONS_PATH`](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#collections-paths) to the directory containing `ansible_collections`. Then you can directly use the collection in Ansible.
22
+
To install collections, you can either use [`ansible-galaxy collection install`](https://docs.ansible.com/projects/ansible/latest/collections_guide/collections_installing.html), or you can provide the collection repositories in a path structure that allows ansible-core to access them. If you work on collections, the second approach is usually preferred. One way of doing this is create a directory structure `ansible_collections/<namespace>/<name>` for a collection `<namespace>.<name>` and point Ansible's [`ANSIBLE_COLLECTIONS_PATH`](https://docs.ansible.com/projects/ansible/latest/reference_appendices/config.html#collections-paths) to the directory containing `ansible_collections`. Then you can directly use the collection in Ansible.
23
23
24
24
For example, if you want to store the collection tree in `~/collections/`, and you want to work on say `community.crypto`, which is stored in the [ansible-collections/community.crypto GitHub repository](https://github.com/ansible-collections/community.crypto/), you can clone it as follows:
25
25
```console
@@ -60,7 +60,7 @@ antsibull-docs internally uses `ansible-doc` and its JSON output to extract coll
60
60
61
61
## Linting collection docs
62
62
63
-
While the [`validate-modules` sanity test](https://docs.ansible.com/ansible/latest/dev_guide/testing/sanity/validate-modules.html) provided by `ansible-test` already does some validation of module and plugin documentation, it does not check filter and test plugins, for example, and does not check cross-references to other plugins, modules, and roles. antsibull-docs provides the `lint-collection-docs` subcommand that allows you to extensively validate collection documentation, including extra documentation and collection-level links (see the corresponding sections below). The basic usage is as follows:
63
+
While the [`validate-modules` sanity test](https://docs.ansible.com/projects/ansible/latest/dev_guide/testing/sanity/validate-modules.html) provided by `ansible-test` already does some validation of module and plugin documentation, it does not check filter and test plugins, for example, and does not check cross-references to other plugins, modules, and roles. antsibull-docs provides the `lint-collection-docs` subcommand that allows you to extensively validate collection documentation, including extra documentation and collection-level links (see the corresponding sections below). The basic usage is as follows:
Copy file name to clipboardExpand all lines: docs/community.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ Join the [Ansible Forum](https://forum.ansible.com) as a single starting point a
14
14
15
15
*[Posts tagged with 'antsibull'](https://forum.ansible.com/tag/antsibull): subscribe to participate in project-related conversations.
16
16
*[Social Spaces](https://forum.ansible.com/c/chat/4): gather and interact with fellow enthusiasts.
17
-
*[News & Announcements](https://forum.ansible.com/c/news/5): track project-wide announcements including social events. The [Bullhorn newsletter](https://docs.ansible.com/ansible/devel/community/communication.html#the-bullhorn), which is used to announce releases and important changes, can also be found here.
17
+
*[News & Announcements](https://forum.ansible.com/c/news/5): track project-wide announcements including social events. The [Bullhorn newsletter](https://docs.ansible.com/projects/ansible/devel/community/communication.html#the-bullhorn), which is used to announce releases and important changes, can also be found here.
18
18
19
19
For more information on the forum navigation, see the [Navigating the Ansible forum](https://forum.ansible.com/t/navigating-the-ansible-forum-tags-categories-and-concepts/39) post.
20
20
21
21
## Matrix
22
22
23
-
For real-time interactions, join the [#antsibull:ansible.com Matrix room](https://matrix.to/#/#antsibull:ansible.com). See the [Ansible communication guide](https://docs.ansible.com/ansible/devel/community/communication.html#real-time-chat) for more information on Matrix.
23
+
For real-time interactions, join the [#antsibull:ansible.com Matrix room](https://matrix.to/#/#antsibull:ansible.com). See the [Ansible communication guide](https://docs.ansible.com/projects/ansible/devel/community/communication.html#real-time-chat) for more information on Matrix.
Copy file name to clipboardExpand all lines: docs/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ This package provides tooling for validating and building Ansible documentation.
13
13
14
14
**Collection maintainers and authors should look at the [Creating a collection docsite](collection-docs.md) section of this docsite.**
15
15
16
-
antsibull-docs is covered by the [Ansible Code of Conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html).
16
+
antsibull-docs is covered by the [Ansible Code of Conduct](https://docs.ansible.com/projects/ansible/latest/community/code_of_conduct.html).
17
17
18
18
!!! note
19
19
Need help or want to discuss the project? See our [Community guide](community.md) to learn how to join the conversation!
@@ -22,7 +22,7 @@ antsibull-docs is covered by the [Ansible Code of Conduct](https://docs.ansible.
22
22
23
23
The main CLI tool, `antsibull-docs`, has multiple subcommands:
24
24
25
-
* The `devel` and `stable` subcommands are used for building the official Ansible docsites at [docs.ansible.com/ansible/devel](https://docs.ansible.com/ansible/devel/) and [docs.ansible.com/ansible/latest](https://docs.ansible.com/ansible/latest/).
25
+
* The `devel` and `stable` subcommands are used for building the official Ansible docsites at [docs.ansible.com/projects/ansible/devel](https://docs.ansible.com/projects/ansible/devel/) and [docs.ansible.com/projects/ansible/latest](https://docs.ansible.com/projects/ansible/latest/).
26
26
* The `current` and `collection` subcommands are used for building docsites for individual collections.
27
27
* The `plugin` and `collection-plugins` subcommands are used for rendering documentation for individual (or all) plugins, modules, or roles.
28
28
* The `lint-collection-docs` and `lint-core-docs` subcommands are used for linting collection and ansible-core documentation.
antsibull-docs is used in the build pipeline of the official Ansible docsites at [docs.ansible.com/ansible/devel](https://docs.ansible.com/ansible/devel/) and [docs.ansible.com/ansible/latest](https://docs.ansible.com/ansible/latest/) to generate the documentation for all collections included in Ansible. It is also used for the [ansible-core documentation](https://docs.ansible.com/ansible-core/devel/) to generate the documentation for `ansible.builtin`, the collection included with ansible-core.
9
+
antsibull-docs is used in the build pipeline of the official Ansible docsites at [docs.ansible.com/projects/ansible/devel](https://docs.ansible.com/projects/ansible/devel/) and [docs.ansible.com/projects/ansible/latest](https://docs.ansible.com/projects/ansible/latest/) to generate the documentation for all collections included in Ansible. It is also used for the [ansible-core documentation](https://docs.ansible.com/projects/ansible-core/devel/) to generate the documentation for `ansible.builtin`, the collection included with ansible-core.
10
10
11
11
The RST sources for all other files of the Ansible docsite can be found in the [ansible/ansible-documentation GitHub repository](https://github.com/ansible/ansible-documentation/). This repository also contains the docsite build scripts. antsibull-docs is called from [hacking/build_library/build_ansible/command_plugins/docs_build.py](https://github.com/ansible/ansible-documentation/blob/devel/hacking/build_library/build_ansible/command_plugins/docs_build.py). This uses the `devel` and `stable` subcommands of antsibull-docs. For its input, data from the [ansible-community/ansible-build-data GitHub repository](https://github.com/ansible-community/ansible-build-data) is used. For building stable docs for a major Ansible version `$X`, the latest `ansible-$X.$Y.$Z.deps` file in the `$X/` directory in `ansible-build-data` is used. For building the `devel` docs, the list of collections is used from the latest `$Y/ansible.in` file in `ansible-build-data` with the largest `$Y` that can be found in the repository. Then the latest version of every collection listed in `$Y/ansible.in` is used.
0 commit comments