Commit Graph

3295 Commits

Author SHA1 Message Date
Felix Fontein
f85b916ef3 Fix supported Python list for 2.13. (#2969) 2025-08-07 14:00:56 -04:00
patchback[bot]
1d0f3a8122 remove swiftype search engine (#2140) (#2151)
(cherry picked from commit e427a22bb4)

Co-authored-by: Sandra McCann <samccann@redhat.com>
2024-11-18 10:46:07 -05:00
Don Naro
88a38a3309 Merge pull request #1293 from terezahelanova/fix/#1199
MUNI tech writers: typo fix (#1199)

(cherry picked from commit ce0e1b48bb)
2024-04-25 09:38:06 +00:00
Sandra McCann
34e6f8edd0 Eol stable-2.13 docs (#797) 2023-11-10 10:09:26 -05:00
patchback[bot]
9fbe1d8e4a documentation_contributions: use tests/checkers.py (#706) (#714)
changed the documentation_contributions doc to
match the tests/sanity.py rename to tests/checker.py in
https://github.com/ansible/ansible-documentation/pull/563

(cherry picked from commit 2007f29a56)

Co-authored-by: Maxwell G <maxwell@gtmx.me>
2023-10-25 15:41:06 +01:00
Don Naro
f7aaa07843 [stable-2.13] Unify the Sphinx's conf.py files (#651)
* Unify the Sphinx's `conf.py` files

Previously, these files needed pre-processing and be symlinked. But
they all are almost identical. So now, the differing sections in the
config are governed by the tags passed to `sphinx-build`. This allows
to reduce duplication and errors related to forgetting to update some
of the configs but not the others. It removes the need to do
pre-processing, meaning less mandatory disk operations before invoking
the build process.

* versions for stable-2.13

* intersphinx mappings for stable-2.13

---------

Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>
2023-10-24 09:23:10 +01:00
patchback[bot]
f7572a4e9f Replace i.e with that is (#490) (#566)
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit d866534efb)

Co-authored-by: Adithya Hegde Kota <116452077+Adithya4720@users.noreply.github.com>
2023-10-12 14:56:07 -04:00
Don Naro
17b20982f7 Prepare Galaxy guides for GalaxyNG (#388) (#508)
(cherry picked from commit 17c138af71)

Co-authored-by: Sandra McCann <samccann@redhat.com>
2023-10-04 12:18:33 -04:00
Felix Fontein
3dc049a536 [stable-2.13] Bump docs build dependencies, including upgrading antsibull-docs to 2.4.0 (#450)
* Bump docs build requirements for stable-2.13.

* Add label to 'collections:' keyword. (#434)

(cherry picked from commit cf3ea2e439)
2023-10-02 11:46:56 -04:00
patchback[bot]
ffcd38fddb Update developing_collections_creating.rst (#414) (#418)
Clarify command, that is a subcommand of ansible-galaxy.

(cherry picked from commit 305c1f50ba)

Co-authored-by: Peter Hoffmann <hoffmann@b1-systems.de>
2023-09-21 21:26:05 +02:00
patchback[bot]
ac1cc12302 development_process.rst: rework Ansibot workflow (#120) (#339)
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 96807c26c7)

Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
2023-08-28 17:00:34 +01:00
patchback[bot]
40b6c433cd scenario_guides: remove deprecated vultr v1 guide (#326) (#332)
(cherry picked from commit 02d2e61db2)

Co-authored-by: René Moser <mail@renemoser.net>
2023-08-24 09:46:00 +01:00
Don Naro
334e7a09f1 rm unused reqs file #107 (#325) 2023-08-23 16:57:56 -04:00
Don Naro
040e2f1b37 [stable-2.13] pin doc requirements (#270) 2023-08-10 11:02:33 -04:00
Matt Clay
a01774a940 Update the package-data sanity test docs (#229)
(cherry picked from commit 702dcac7ea)
2023-08-04 11:24:54 +01:00
Maxwell G
e9ea5be201 Use the new CLI docs generator from ansible-core (#220) (#225)
This tool provides a stable interface for generating RST documentation for ansible-core CLI programs.

It avoids having the docs generation process in this repo depending on ansible-core internals that are subject to change.

Relates: https://github.com/ansible/ansible/pull/81395
(cherry picked from commit 4bbb445c1f)

Co-authored-by: Matt Clay <matt@mystile.com>
2023-08-03 20:24:54 -07:00
Matt Clay
1eb7a66423 Use a dedicated version helper for the docs build (#80345) (#238)
This removes the dependency on the release version helper in the docs-build sanity test.

(cherry picked from commit 0cfdf0ad59)
2023-08-03 20:16:22 -07:00
patchback[bot]
879596172a Fix "Edit on GitHub" links for CLI programs (#188) (#193)
(cherry picked from commit eb4dc6c59e)

Co-authored-by: Matt Clay <matt@mystile.com>
2023-07-31 10:52:21 +01:00
Matt Clay
5f6ee6d61f Fix misrendered sections in manpage generation (#191)
This change fixes bugs in the manpage generator that existed since it
was first added.

It exposes CLI `ARGUMENTS` value to manpage templates.

Before this change, the code contained a typo, causing the `for`-loop
iterate over individual characters of the `'ARGUMENTS'` string rather
than iterating over a tuple. A missing comma was at fault.

The updated code gets rid of the `for`-loop and conditionals since it
seems to have been a premature complexity increase and no other things
than `'ARGUMENTS'` were ever added into the broken iterable.

The functional change is that `arguments` is now always present in the
Jinja2 context, unlike being missing sometimes because of the previous
design (not that it was ever present, because of the bug! sigh...)

The Jinja2 templates perform an `{% if arguments %}` check, letting
the template engine silently ignore the missing variable. The clause
was always falsy, meaning that the arguments section was not included
in the manpages for at least the last 6 years. With this fix, it will
be.

This patch also deduplicates calling `opt_doc_list` @ generate_man.

It was called late in the execution, more times than necessary. This
patch makes sure it happens once by putting it at the top of the scope.

It fixes rendering library and inventory in manpages.

The corresponding Jinja2 templates have blocks wrapped with
conditionals like `{% if inventory %}` and `{% if library %}` but said
variables were never injected into the context, nor were they even
deduced on the Python side of the generator. This means that the
conditional clauses were always falsy, never showing the portions of
the manpages.

The Python script has hints for how the `inventory` variable was to be
calculated, which is confirmed through the Git paleontology efforts.

The block of code that references to the `inventory` bit was
incorrectly checking a variable with a list of nested objects for the
presence of a string which was never going to work.

This patch fixes this check by verifying the CLI flag against the
correct variable containing a list of options and exposes it to the
Jinja2 templates.
It also exposes the `library` variable in a similar way.

The block displaying other binaries in Sphinx CLI docs has been
synchronized with the manpage template.
Previously, the current binary was displayed also. This patch gets rid
of the unwanted trailing comma there too.

Finally, the CLI executables list in the manpage template now reuses
the same variable as the RST template that doesn't need any
post-processing in Jinja2.
Before, it was already used in the RST template so this patch aligns
both templates to use the same logic as they got out-of-sync over time.

PR #80450.

(cherry picked from commit a84b3a4e72)

Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
2023-07-29 08:17:32 +02:00
patchback[bot]
5a7616bfa0 update galaxy guide to link to collection guide (#145) (#181)
* link to collection guide

(cherry picked from commit 38ab69176a7d9840f50960e64c6266fd38669766)

* Update docs/docsite/rst/galaxy/user_guide.rst

(cherry picked from commit 1b48103211)

Co-authored-by: Sandra McCann <samccann@redhat.com>
2023-07-27 15:32:46 -04:00
patchback[bot]
af61afdca2 update japanese versions (#130) (#140)
(cherry picked from commit 3fcb353085)

Co-authored-by: Sandra McCann <samccann@redhat.com>
2023-07-19 16:56:29 -04:00
patchback[bot]
7df58c3154 Makefile: use grep -E instead of egrep (#103) (#110)
Running egrep on modern systems prints

    egrep: warning: egrep is obsolescent; using grep -E

(cherry picked from commit 5fe565bb95)

Co-authored-by: Maxwell G <maxwell@gtmx.me>
2023-07-13 16:31:22 -04:00
Don Naro
348db9147b Add docs build steps to README (#37) (#58) 2023-07-10 10:40:27 -04:00
Don Naro
5049478797 update repo name in conf (#44) 2023-07-05 21:46:13 +02:00
Matt Clay
1bbde070b1 Make sanity index static (#5) 2023-06-12 10:48:49 -07:00
Matt Clay
c4dda74443 Add sanity tests (#1) 2023-06-12 10:08:03 -07:00
Matt Clay
be6a990a89 [stable-2.13] Remove docs dir dependency from man page build (#81003) (#81024)
* [stable-2.13] Remove docs dir dependency from man page build (#81003)
(cherry picked from commit b3f1290bcd)

Co-authored-by: Matt Clay <matt@mystile.com>

* Update path in Makefile
2023-06-09 20:29:41 -07:00
Matt Davis
2765ab6f28 Remove straight.plugin dependency (#80084) (#81020)
(cherry picked from commit f587856)
2023-06-09 17:03:11 -07:00
Don Naro
c55729d3cd update version switcher for 2.15 (#80792)
Co-authored-by: Sandra McCann <samccann@redhat.com>
2023-05-22 13:10:47 -05:00
Matt Clay
a35e8015e5 [stable-2.13] ansible-test - Update git diff handling (#80202)
This change allows ansible-test to work with newer versions of git on AZP.

(cherry picked from commit bad8843124)

Co-authored-by: Matt Clay <matt@mystile.com>
2023-03-15 13:08:23 -07:00
Matt Clay
df0e58f20b [stable-2.13] Remove outdated note on relative imports in docs (#79873) (#79876)
(cherry picked from commit 58461bc204)
2023-02-02 16:08:48 -08:00
Felix Fontein
e12ff0a734 Document callback types in documentation (#79651) (#79654)
(cherry picked from commit 51bddd862b)
2023-01-18 15:32:56 -06:00
Don Naro
862047cafd Ansible 6 is EOL (#79555) 2022-12-13 16:47:27 -06:00
Matt Clay
1d7436935f [stable-2.13] ansible-test - Improve container management. (#79538)
* ansible-test - More flexible become support.

(cherry picked from commit 5666c6d6a3)

* ansible-test - Add support for more remotes.

(cherry picked from commit 24d91f552c)

* ansible-test - Enable ACLs on FreeBSD remotes.

This allows integration tests to switch from one unprivileged user
to another, sharing files between the users using ACLs.

(cherry picked from commit b63812bc08)

* ansible-test - Enable ACL support on more remotes. (#78299)

(cherry picked from commit 8bb20fe06b)

* ansible-test - Install `acl` on Alpine remotes. (#78303)

(cherry picked from commit 8565deaae3)

* ansible-test - Use sudo for all remotes. (#78310)

(cherry picked from commit f3f4ad9332)

* ansible-test - Fix Ubuntu 20.04 bootstrapping. (#78551)

(cherry picked from commit d683c5bd21)

* ansible-test - Verify executables are executable. (#78606)

(cherry picked from commit ece85abbc4)

* ansible-test - Use --tmpfs to run containers. (#78605)

(cherry picked from commit 4187707f03)

* ansible-test - Remove Fedora 35 support. (#78720)

(cherry picked from commit 38a82a5cc4)

* ansible-test - Fix container error handling. (#78739)

(cherry picked from commit 79f67ed561)

* ansible-test - Improve container management. (#78550)

See changelogs/fragments/ansible-test-container-management.yml for details.

(cherry picked from commit cda16cc5e9)

* ansible-test - Fix container detection. (#79530)

(cherry picked from commit 80d2f8da02)

* Update test matrix symlinks. (#78737)

* Add remote platform symlinks.

These were already supported by ansible-test.
This change adds the symlinks for use in the CI test matrix.

* Remove obsolete AIX test symlink.

AIX was already removed from ansible-test.

(cherry picked from commit 62221a3be2)

* Use patched containers without VOLUME instruction.

* Make test suite compatible with older ansible.

* Fix compatibility with Python 3.8.
2022-12-06 14:29:45 -08:00
Sandra McCann
63c8719a76 Add Ansible community 6.6.0 porting guide (#79340) (#79349)
(cherry picked from commit d5e90e1737)

Co-authored-by: Christian Adams <chadams@redhat.com>
2022-11-08 16:39:15 -08:00
Sandra McCann
fd9dd09377 Japanese version switcher (#79276) (#79345)
* update japanese version switcher for 2.14

* update latest version

(cherry picked from commit 196084773b)
2022-11-08 16:37:56 -08:00
Sandra McCann
b80680559a update version switcher to include 2.14 (#79273) (#79326)
(cherry picked from commit d0b6ce7473)
2022-11-07 09:16:20 -08:00
Felix Fontein
b6a24d0031 Communication docs: note that editing Matrix messages causes IRC spam (#79238) (#79241)
(cherry picked from commit bc83da9a1b)
2022-10-27 13:07:13 -05:00
Sandra McCann
b44cb7aa99 remove AnsibleFest banner (#79156) (#79158) 2022-10-18 09:13:27 -05:00
Don Naro
7e85f94349 Add Ansible community 6.5.0 porting guide (#79124)
Co-authored-by: Ansible Service Account <chadams@redhat.com>
2022-10-12 17:20:33 -04:00
Sandra McCann
e69c1812c9 Backportapalooza 9 15 (#78787)
* add galaxy docs back to core' (#78764)

(cherry picked from commit df6a564abd)

* Ansible 6.4.0: Porting Guide (#78775)

(cherry picked from commit d4407ca688)

* Documented connection parameters required to enable scp (OpenSSH >=9.0) (#78745)

(cherry picked from commit 952ee88f33)

* Fix Issue #78564 (#78741)

(cherry picked from commit f50ff1c2db)

* faq legacy vs builtin (#78769)

(cherry picked from commit db33ca8e1a)

* Removed repeated introduction paragraph (#78691)

(cherry picked from commit e276770ee9)

Co-authored-by: Ompragash Viswanathan <21008429+Ompragash@users.noreply.github.com>
Co-authored-by: wnjuguna <jbworldus@gmail.com>
Co-authored-by: Ronan <ronandoudies@gmail.com>
Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
2022-09-15 14:40:55 -05:00
Sandra McCann
770a4a35d6 new: documentation update for galaxy usr guide (#78649) (#78688)
Co-authored-by: Adrian Brown <ap.brown011@gmail.com>
2022-09-01 14:36:20 -05:00
Sandra McCann
a55ffb8d17 Backportapalooza 08 25 (#78647)
* fix adhoc dev example (#78593)

(cherry picked from commit 5ac40b358d)

* Docs: fix issue-76133-apt-repository (#78586)

(cherry picked from commit 3b9f1871e5)

* Fixes parameter name in expect module examples (#78635)

(cherry picked from commit 81813b7f23)

* doc: Correct mixed up commentary and task name (#78610)

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
(cherry picked from commit 87ba1e29d3)

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
Co-authored-by: Arnold Kamanzi <kamstan6@gmail.com>
Co-authored-by: gmdmi <gmdmi@ya.ru>
Co-authored-by: rawtaz <rawtaz@users.noreply.github.com>
2022-08-25 13:33:03 -07:00
Sandra McCann
6f6e38feaf Add Porting Guide for ansible-community v6 (#78625) (#78631)
(cherry picked from commit df497ea13b)

Co-authored-by: Christian Adams <chadams@redhat.com>
2022-08-24 09:39:27 -05:00
Sandra McCann
fe60c4eb08 Backportapalooza 08 16 (#78584)
* Supply some descriptions for settings used in ansible.cfg (#78536)

(cherry picked from commit 4604ea38dd)

* Targeting a small typo correction (#78531)

(cherry picked from commit b6f42547f4)

* clarify collection signature not available from Community Galaxy (#78386)

(cherry picked from commit 7ae1eabaa4)

* update FAQ with not about libyaml (#78483)

(cherry picked from commit 33ee5d4c1b)

* add note to use package_facts module (#78484)

(cherry picked from commit 8dc097989b)

* Fix ansible-docs: shipping ansible in wheel format  #78485 (#78524)

(cherry picked from commit 7f69629fa7)

* update link for RH customers in docs banner (#78563)

(cherry picked from commit 2fdaee143a)

Co-authored-by: Andrew Latham <lathama@users.noreply.github.com>
Co-authored-by: Ian Wienand <iwienand@redhat.com>
Co-authored-by: Arnold Kamanzi <kamstan6@gmail.com>
2022-08-19 10:24:15 -07:00
Sandra McCann
e97c2cd178 Fix version switcher for Japanese site (#78543)
* Fix version switcher for Japanese docs (#78432)

(cherry picked from commit 660aceaa77)

* update version to match branch
2022-08-19 10:17:18 -07:00
Sandra McCann
e03527e722 Backportapalooza 08 11 (#78526)
* update the documentation for the _collection init_ command (#78404)

(cherry picked from commit 69c7e3f4a3)

* fix configuration name in porting guide 2.12  (#78472)

(cherry picked from commit 82246df5b7)

* docs: misc fixes in The Ansible Development Cycle (#78513)

(cherry picked from commit 0d3523df8f)

Co-authored-by: Alex <aizquier@redhat.com>
Co-authored-by: Akira Yokochi <akira6592@gmail.com>
2022-08-19 10:16:48 -07:00
Sandra McCann
7a24541d18 Backportapalooza 08 04 (#78450)
* fix broken link (#78434)

(cherry picked from commit eb46ab1399)

* Fix escaped asterisk in code block demonstrating wildcards (#78375)

The code block is rendered verbatim. This currently results in `\*` being shown, which is incorrect (i.e., not parsed as a wildcard pattern).
Removing the superfluous `\` fixes the rendering.
This PR fixes all instances of this issue on that page.

(cherry picked from commit 9bf5da8f75)

* add example to import a playbook from collection (#78443)

(cherry picked from commit eb462edb16)

* docs: Fix control node reference links (#78424)

(cherry picked from commit f5cac6bc5d)

* Update galaxy_server_list (#78398)

(cherry picked from commit d92f6da592)

* Improve grammar (#78391)

(cherry picked from commit ddd8b8bfd9)

Co-authored-by: Tom Janson <priv.tom.janson@gmail.com>
Co-authored-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
Co-authored-by: Ian Wienand <iwienand@redhat.com>
Co-authored-by: Tabah Baridule <dulemartins07@gmail.com>
Co-authored-by: Geoffrey van Wyk <geoffrey@vanwyk.biz>
2022-08-04 15:48:41 -05:00
Felix Fontein
a2984758dc [2.13] Add basic docs on how to create a collection docsite with antsibull-docs (#78446)
* Add basic docs on how to create a collection docsite with antsibull-docs. (#78387)

(cherry picked from commit 733a767948)

* Fix typo: missing 'install'. (#78448)

(cherry picked from commit 2218b63aef)
2022-08-04 15:47:59 -05:00
Sandra McCann
b095367eab Ansible 6.2.0: porting_guide changes (#78408) (#78416)
(cherry picked from commit 27ce607a14)

Co-authored-by: Ompragash Viswanathan <21008429+Ompragash@users.noreply.github.com>
2022-08-02 15:18:43 -05:00