ansible/docs/docsite/rst
Sviatoslav Sydorenko be28e98cf2
[backport][2.10][PR #70446] Refactor Python API examples and docs (#70850)
* Add boilerplate snippet into `examples/`

It is a partial backport of #70224

(partially cherry picked from commit 4816bb4f43)

* Refactor Python API examples and docs

PR #70446: it's a follow-up for #70445.

It includes a merge of `examples/scripts/uptime.py` and a similar
code snippet from `docs/docsite/rst/dev_guide/developing_api.rst`.

This patch also changes the docs RST file to include contents of
the example file instead of holding a copy of a similar code.

(cherry picked from commit 20bb915092)
2020-07-29 13:51:21 -07:00
..
api remove build errors including guess (#69711) 2020-05-29 11:56:49 -05:00
community Docs backportapalooza 4 (#70875) 2020-07-28 17:38:17 -05:00
dev_guide [backport][2.10][PR #70446] Refactor Python API examples and docs (#70850) 2020-07-29 13:51:21 -07:00
galaxy Docs backportapalooza 4 (#70875) 2020-07-28 17:38:17 -05:00
images Adds custom 404 with cowsay image (#57422) 2019-06-17 10:47:54 -05:00
installation_guide Remove RPM packaging infrastructure (#69554) 2020-05-15 20:29:05 -05:00
inventory Add implicit localhost hostvars note (#61956) 2019-09-16 14:00:29 -04:00
network Collections docs generation backport (#70515) 2020-07-20 14:28:35 -07:00
plugins Collections docs generation backport (#70515) 2020-07-20 14:28:35 -07:00
porting_guides fix internal cases of actions calling unqualified module names (#70818) (#70840) 2020-07-23 10:29:09 -07:00
reference_appendices Docs backportapalooza 4 (#70875) 2020-07-28 17:38:17 -05:00
roadmap Updating 2.10 roadmap with adjusted beta release date (#70077) 2020-06-15 19:10:51 +01:00
scenario_guides Doc backportapalooza 2 (#70440) 2020-07-08 16:05:41 -05:00
shared_snippets Add support to install collections from git repositories (#69154) 2020-05-29 13:33:32 -04:00
user_guide Docs backportapalooza 4 (#70875) 2020-07-28 17:38:17 -05:00
404.rst removes link from 404 content, explains options (#57971) 2019-06-18 09:25:12 -04:00
conf.py Docs backportapalooza 4 (#70875) 2020-07-28 17:38:17 -05:00
index.rst Collections docs generation backport (#70515) 2020-07-20 14:28:35 -07:00