Skip to content

Commit c9b0d9d

Browse files
committed
add filter doc source
1 parent 30f62b5 commit c9b0d9d

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.vscode/settings.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"python.pythonPath": "${workspaceFolder}/venv/bin/python3",
2+
"python.pythonPath": "venv/bin/python",
33
"python.autoComplete.extraPaths": ["./tests/scripts"],
44
"python.envFile": "${workspaceFolder}/.env",
55
"python.linting.flake8Enabled": true,
66
"python.linting.enabled": true,
7-
"restructuredtext.confPath": "${workspaceFolder}/docs"
7+
"restructuredtext.confPath": "${workspaceFolder}/docs",
8+
"python.analysis.extraPaths": [
9+
"./tests/scripts"
10+
]
811
}

docs/filters.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Filters
2+
=======
3+
4+
Filters are used to manipulate data if needed.
5+
6+
is_subnet
7+
---------
8+
9+
This filter checks wether a given subnet belongs to the second one. It returns `true` if first subnet belongs to second and `false` if not or both subnets are the same.
10+
11+
.. code-block:: yaml
12+
13+
192.0.2.0/25 | codeaffen.phpipam.is_subnet(192.0.2.0/24)

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Welcome to phpIPAM Ansible Module documentation!
1313
README
1414
Changelog <CHANGELOG>
1515
plugins/index
16+
Filters <filters>
1617

1718
.. toctree::
1819
:maxdepth: 2

0 commit comments

Comments
 (0)