forked from ansible/ansible-modules-extras
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge documentation for Jay Ross (ansible#43)
* Adding webdocs support * major redo of doc generation * final changes to documentation * Adding webdocs support * major redo of doc generation * major redo of doc generation Change-Id: Ic46dbc4ae1431a9ac882c88fbf0af56dd8b40d9a
- Loading branch information
1 parent
55e63ed
commit 38fadf8
Showing
5 changed files
with
577 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
Ansible Docstring Rules | ||
================================= | ||
|
||
* Each module must have a short_description section | ||
|
||
* short_description must be a string and not a list | ||
|
||
This works: | ||
short_description: foo, foo, foo | ||
|
||
But this will fail miserably: | ||
short_description: | ||
- foo, foo, foo | ||
|
||
* Each module must have a description section | ||
|
||
* Ansible webdocs do not care about line lengths | ||
|
||
* All lines must have some sort of leader | ||
|
||
For example, this works: | ||
description: | ||
- foo, foo, foo | ||
- bar, bar, bar | ||
|
||
However, this will fail: | ||
description: | ||
- foo, foo, foo | ||
bar, bar, bar | ||
|
||
(note the lack of - ) | ||
|
||
--- | ||
|
||
Jay Riddell | ||
7/8/16 |
Oops, something went wrong.