ansible/lib/ansible/cli
Adrian Likins 89c973445c generate rst doc pages for command line tools (#27530)
* let generate_man also gen rst pages for cli tools
* make template-file, output-dir, output format cli options for generate_man
* update main Makefile to use generate_man.py for docs (man pages and rst)
* update vault docs that use :option:
* Edits based on
6e34ea6242 and
a3afc78535

* add a optparse 'desc' to lib/ansible/cli/config.py 

  The man page needs a short desc for the 'NAME' field
  which it gets from the option parse 'desc' value.

  Fixes building ansible-config man page.

* add trim_docstring from pep257 to generate_man

  use pep258 docstring trim function to fix up any indention
  weirdness inherit to doc strings (ie, lines other than
  first line being indented.

* Add refs to cli command actions

To reference ansible-vaults --vault-id option, use:

:option:`The link text here <ansible-vault --vault-id>`

or:

:option:`--vault-id <ansible-vault --vault-id>`

To reference ansible-vault's 'encrypt' action, use:

:ref:`The link text here <ansible_vault_encrypt>`

or most of the time:

:ref:`ansible-vault encrypt <ansible_vault_encrypt>`
2017-09-07 15:44:20 -04:00
..
__init__.py config: use path list for default inventory 2017-09-07 00:09:07 -04:00
adhoc.py Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
config.py generate rst doc pages for command line tools (#27530) 2017-09-07 15:44:20 -04:00
console.py Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
doc.py fix plugin docs broken by previous commit (#28601) 2017-08-29 12:41:46 -04:00
galaxy.py Do not try to process an empty metai/main.yml file 2017-08-31 13:50:01 -04:00
inventory.py ansible-inventory cli tool (#22477) 2017-08-15 16:45:54 -04:00
playbook.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
pull.py Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
vault.py Vault secrets default vault ids list (#28190) 2017-08-15 11:56:17 -04:00