Description
TL;DR https://github.com/debops/docs/blob/master/docs/includes/global.rst gets injected into all role docs when the includes
directory is present. The global.rst
should not be in role repos itself (and ignored using the .gitignore
file). To update the global.rst
, please add links to the files starting with two digits in https://github.com/debops/docs/tree/master/docs/includes and do make includes/global.rst
in https://github.com/debops/docs/tree/master/docs.
This allows to easily refer to Ansible modules, other DebOps roles and so on with a uniform name.
See:
- https://github.com/ypid/ypid-ansible-common/tree/master/template_role/docs/includes
- https://raw.githubusercontent.com/ypid/ypid-ansible-common/master/template_role/docs/getting-started.rst
The script sphinx-debops-role-build can automaticly copy the latest global definitions to roles.
Resources are proposed to be moved to a repo inside the DebOps project. (is ignored in the repo and injected at build time)