-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
211 additions
and
31 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 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# Filters | ||
|
||
<style type="text/css"> | ||
<!-- | ||
.mkapi-node { | ||
border: 2px dashed #88AA88; | ||
margin-left: 0px; | ||
margin-bottom: 20px; | ||
} | ||
--> | ||
</style> | ||
|
||
{{ # cache:clear }} | ||
|
||
```python hide | ||
import sys | ||
|
||
if '../../examples' not in sys.path: | ||
sys.path.insert(0, '../../examples') | ||
``` | ||
|
||
## List of Filters | ||
|
||
### upper | ||
|
||
Use upper case letters for package and module object. | ||
|
||
~~~markdown | ||
### ![mkapi](filter) | ||
~~~ | ||
|
||
### ![mkapi](filter) | ||
|
||
~~~markdown | ||
### ![mkapi](filter|upper) | ||
~~~ | ||
|
||
### ![mkapi](filter|upper) | ||
|
||
### short | ||
|
||
Remove prefix. | ||
|
||
~~~markdown | ||
![mkapi](filter.C) | ||
~~~ | ||
|
||
![mkapi](filter.C) | ||
|
||
~~~markdown | ||
![mkapi](filter.C|short) | ||
~~~ | ||
|
||
![mkapi](filter.C|short) | ||
|
||
|
||
### strict | ||
|
||
Show parameters and attributes even if their description is missing. | ||
|
||
~~~markdown | ||
![mkapi](filter.func|strict) | ||
~~~ | ||
|
||
![mkapi](filter.func|strict) | ||
|
||
|
||
## Scope of Filters | ||
|
||
### Page Scope | ||
|
||
For page scope filters, use empty object. | ||
|
||
~~~markdown | ||
![mkapi](|short) | ||
~~~ | ||
~~~markdown | ||
![mkapi](filter.gen) | ||
~~~ | ||
~~~markdown | ||
![mkapi](filter.C) | ||
~~~ | ||
|
||
![mkapi](|short) | ||
![mkapi](filter.gen) | ||
![mkapi](filter.C) | ||
|
||
### Global Scope | ||
|
||
In `mkdocs.yaml`, select global filters: | ||
|
||
~~~yml | ||
# mkdocs.yml | ||
plugins: | ||
- search | ||
- mkapi: | ||
src_dirs: [examples] | ||
filters: [short, strict] | ||
~~~ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from typing import Iterator | ||
|
||
|
||
def func(x: int): | ||
"""Function.""" | ||
|
||
|
||
def gen() -> Iterator[int]: | ||
"""Generator.""" | ||
yield 1 | ||
|
||
|
||
class C: | ||
"""Class.""" |
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 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 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