Skip to content

Commit

Permalink
Support in module template for hiding private input parms
Browse files Browse the repository at this point in the history
Details:

* This change modifies the module.rst.j2 template to skip input
  parameters if their name starts with '_'.

Signed-off-by: Andreas Maier <maiera@de.ibm.com>
  • Loading branch information
andy-maier committed Nov 27, 2020
1 parent 275eb48 commit de0560b
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 78 deletions.
7 changes: 0 additions & 7 deletions docs/source/modules/zhmc_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,6 @@ log_file
| **type**: str

_faked_session
An internal parameter used for testing the module.

| **required**: False
| **type**: raw



Examples
Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules/zhmc_cpc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,6 @@ log_file
| **type**: str

_faked_session
An internal parameter used for testing the module.

| **required**: False
| **type**: raw



Examples
Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules/zhmc_crypto_attachment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,6 @@ log_file
| **type**: str

_faked_session
An internal parameter used for testing the module.

| **required**: False
| **type**: raw



Examples
Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules/zhmc_hba.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,6 @@ log_file
| **type**: str

_faked_session
An internal parameter used for testing the module.

| **required**: False
| **type**: raw



Examples
Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules/zhmc_nic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,6 @@ log_file
| **type**: str

_faked_session
An internal parameter used for testing the module.

| **required**: False
| **type**: raw



Examples
Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules/zhmc_partition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,6 @@ log_file
| **type**: str

_faked_session
An internal parameter used for testing the module.

| **required**: False
| **type**: raw



Examples
Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules/zhmc_storage_group.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,6 @@ log_file
| **type**: str

_faked_session
An internal parameter used for testing the module.

| **required**: False
| **type**: raw



Examples
Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules/zhmc_storage_group_attachment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,6 @@ log_file
| **type**: str

_faked_session
An internal parameter used for testing the module.

| **required**: False
| **type**: raw



Examples
Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules/zhmc_storage_volume.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ log_file
| **type**: str

_faked_session
An internal parameter used for testing the module.

| **required**: False
| **type**: raw



Examples
Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules/zhmc_user.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,6 @@ log_file
| **type**: str

_faked_session
An internal parameter used for testing the module.

| **required**: False
| **type**: raw



Examples
Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules/zhmc_virtual_function.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,6 @@ log_file
| **type**: str

_faked_session
An internal parameter used for testing the module.

| **required**: False
| **type**: raw



Examples
Expand Down
2 changes: 1 addition & 1 deletion docs/templates/module.rst.j2
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Synopsis
{% macro option_generation(opts, level) %}
{# Control the order of options: true: ordered by name; false: keep source order #}
{% set sorted = false %}
{% for name, spec in (opts | dictsort if sorted else opts.items()) %}
{% for name, spec in (opts | dictsort if sorted else opts.items()) if not name.startswith('_') %}

{{ " " * level }}{{ name }}
{% for para in spec.description %}
Expand Down

0 comments on commit de0560b

Please sign in to comment.