Maxwell G 1efa06b8a6 ci: use Github App token to authenticate (#621)
This uses the new Ansible Documentation Bot Github app to authenticate with
the Github API instead of the limited token built in to Github Actions.
The app token allows creating automatic dependency update PRs that
trigger CI properly.
A github-bot environment to store the BOT_APP_ID and BOT_APP_KEY
secrets.

Fixes: https://github.com/ansible/ansible-documentation/issues/382
2023-10-17 14:35:41 -05:00
2023-10-16 14:18:28 -04:00
2023-04-04 10:37:23 -05:00
2023-10-16 14:18:28 -04:00
2023-10-16 14:18:28 -04:00

ansible-documentation

This repository holds the ReStructuredText (RST) source, and other files, for user documentation related to the Ansible package and Ansible Core.

Documentation for modules and plugins that are officially supported by the Ansible Core engineering team is available in the ansible/ansible repository.

Building Ansible community documentation

Follow the documentation to set up your environment and then build Ansible community documentation locally

Using nox

This project includes a nox configuration to automate checks and other functions. You should use nox to run checks locally before you submit a pull request.

Install nox using python3 -m pip install nox or your distribution's package manager.

Run nox --list from the repository root to view available sessions.

Run nox with no arguments to execute the default sessions.

Running the spelling check

This repository uses codespell to check for common spelling mistakes in the documentation source.

Run nox -s spelling to check spelling.

Run nox -s spelling -- -w to correct spelling errors.

When codespell suggests more than one word as a correction, run nox -s spelling -- -w -i 3 to select an option.

Updating the dependencies

To update dependencies, you can use nox -e pip-compile. Since this requires Python 3.10, this might not work in your environment if you do not have Python 3.10 installed. In that case, you can use root-less podman with a Python 3.10 image:

podman run --rm --tty --volume "$(pwd):/mnt:z" --workdir /mnt python:3.10 bash -c 'pip install nox ; nox -e pip-compile'
Description
No description provided
Readme 234 MiB
Languages
Python 94.8%
Shell 3.5%
Jinja 1.7%