-
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.
Improve formatting of documentation, fix #49
Signed-off-by: Roberto Di Remigio <roberto.diremigio@gmail.com>
- Loading branch information
Showing
5 changed files
with
187 additions
and
48 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
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
This file was deleted.
Oops, something went wrong.
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 @@ | ||
../api/docs_template.yml |
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 |
---|---|---|
@@ -1,33 +1,88 @@ | ||
.. raw:: html | ||
|
||
<style> .red {color:#aa0060; font-weight:bold; font-size:18px} </style> | ||
|
||
.. role:: red | ||
|
||
.. This documentation was autogenerated using parselglossy. Editing by hand is not recommended. | ||
========================================== | ||
Dwigt Rortugal's guide to input parameters | ||
========================================== | ||
|
||
Keywords without a default value are **required**. | ||
Sections where all keywords have a default value can be omitted. | ||
- Keywords without a default value are **required**. | ||
- Default values are either explicit or computed from the value of other keywords in the input. | ||
- Sections where all keywords have a default value can be omitted. | ||
- Predicates, if present, are the functions run to validate user input. | ||
|
||
**Keywords** | ||
:red:`Keywords` | ||
:title: Title of the calculation. | ||
|
||
**Type** ``str`` | ||
|
||
**Sections** | ||
:an_integer: Some integer | ||
|
||
**Type** ``int`` | ||
|
||
**Default** ``15`` | ||
|
||
:float_list: A list of floats | ||
|
||
**Type** ``List[float]`` | ||
|
||
**Default** ``[1.0, 2.0, 3.0]`` | ||
|
||
**Predicates** | ||
- ``len(value) < 10`` | ||
- ``max(value) < user['foo']['fooffa]['another_float']`` | ||
|
||
:red:`Sections` | ||
:foo: brilliant | ||
|
||
**Keywords** | ||
:red:`Keywords` | ||
:tragic: Title of the calculation. | ||
|
||
**Type** ``str`` | ||
|
||
**Default** Wham! Bang! Pow! Let's Rock Out! | ||
**Default** ``Wham! Bang! Pow! Let's Rock Out!`` | ||
|
||
:a_float: A floating point number | ||
|
||
**Type** ``float`` | ||
|
||
**Sections** | ||
**Predicates** | ||
- ``value < 35.0`` | ||
- ``value in user['float_list']`` | ||
|
||
:red:`Sections` | ||
:Bar: A ba-bar section | ||
|
||
**Keywords** | ||
:red:`Keywords` | ||
:amazing: Title of the calculation. | ||
|
||
**Type** ``str`` | ||
|
||
**Default** Bobson Dugnutt | ||
**Default** ``Bobson Dugnutt`` | ||
|
||
:coolio: A cool bool | ||
|
||
**Type** ``bool`` | ||
|
||
**Default** ``True`` | ||
|
||
:fooffa: nothing really | ||
|
||
:red:`Keywords` | ||
:dwigt: An unusual name | ||
|
||
**Type** ``str`` | ||
|
||
**Predicates** | ||
- ``len(value) < 80`` | ||
|
||
:another_float: Another floating point number | ||
|
||
**Type** ``float`` | ||
|
||
**Default** ``user['foo']['a_float'] * 2`` | ||
|
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 |
---|---|---|
@@ -1,33 +1,88 @@ | ||
.. raw:: html | ||
|
||
<style> .red {color:#aa0060; font-weight:bold; font-size:18px} </style> | ||
|
||
.. role:: red | ||
|
||
.. This documentation was autogenerated using parselglossy. Editing by hand is not recommended. | ||
================ | ||
Input parameters | ||
================ | ||
|
||
Keywords without a default value are **required**. | ||
Sections where all keywords have a default value can be omitted. | ||
- Keywords without a default value are **required**. | ||
- Default values are either explicit or computed from the value of other keywords in the input. | ||
- Sections where all keywords have a default value can be omitted. | ||
- Predicates, if present, are the functions run to validate user input. | ||
|
||
**Keywords** | ||
:red:`Keywords` | ||
:title: Title of the calculation. | ||
|
||
**Type** ``str`` | ||
|
||
**Sections** | ||
:an_integer: Some integer | ||
|
||
**Type** ``int`` | ||
|
||
**Default** ``15`` | ||
|
||
:float_list: A list of floats | ||
|
||
**Type** ``List[float]`` | ||
|
||
**Default** ``[1.0, 2.0, 3.0]`` | ||
|
||
**Predicates** | ||
- ``len(value) < 10`` | ||
- ``max(value) < user['foo']['fooffa]['another_float']`` | ||
|
||
:red:`Sections` | ||
:foo: brilliant | ||
|
||
**Keywords** | ||
:red:`Keywords` | ||
:tragic: Title of the calculation. | ||
|
||
**Type** ``str`` | ||
|
||
**Default** Wham! Bang! Pow! Let's Rock Out! | ||
**Default** ``Wham! Bang! Pow! Let's Rock Out!`` | ||
|
||
:a_float: A floating point number | ||
|
||
**Type** ``float`` | ||
|
||
**Sections** | ||
**Predicates** | ||
- ``value < 35.0`` | ||
- ``value in user['float_list']`` | ||
|
||
:red:`Sections` | ||
:Bar: A ba-bar section | ||
|
||
**Keywords** | ||
:red:`Keywords` | ||
:amazing: Title of the calculation. | ||
|
||
**Type** ``str`` | ||
|
||
**Default** Bobson Dugnutt | ||
**Default** ``Bobson Dugnutt`` | ||
|
||
:coolio: A cool bool | ||
|
||
**Type** ``bool`` | ||
|
||
**Default** ``True`` | ||
|
||
:fooffa: nothing really | ||
|
||
:red:`Keywords` | ||
:dwigt: An unusual name | ||
|
||
**Type** ``str`` | ||
|
||
**Predicates** | ||
- ``len(value) < 80`` | ||
|
||
:another_float: Another floating point number | ||
|
||
**Type** ``float`` | ||
|
||
**Default** ``user['foo']['a_float'] * 2`` | ||
|