Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
e3rd committed Sep 10, 2024
1 parent 33ea7f6 commit 262c7ce
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 35 deletions.
1 change: 0 additions & 1 deletion asset

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions docs/asset
5 changes: 3 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pip install mininterface
```

# Docs
See the docs at https://cz-nic.github.io/mininterface/.
See the docs overview at [https://cz-nic.github.io/mininterface/](https://cz-nic.github.io/mininterface/Overview.md).

# Examples

Expand Down Expand Up @@ -135,4 +135,5 @@ print(m.env)
# Edit values in a dialog
m.form()
```
```

2 changes: 1 addition & 1 deletion mininterface/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def limit(minimum: int, maximum: int, lt: float | None = None, gt: float | None
...


def limit(maxOrMin: int | None = None, max_: int | None = None, lt: float | None = None, gt: float | None = None, transform=False):
def limit(maxOrMin: int | None = None, max_: int | None = None, lt: float | None = None, gt: float | None = None, transform:bool=False):
""" Limit a number range or a string length.
Either use as `limit(maximum)` or `limit(minimum, maximum)`.
Expand Down
60 changes: 29 additions & 31 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,36 @@ theme:
name: "material"

plugins:
- search
- mkdocstrings:
handlers:
python:
options:
docstring_style: google
docstring_section_style: table
show_source: false
members_order: source



- search
- mkdocstrings:
handlers:
python:
options:
docstring_style: google
docstring_section_style: table
show_source: false
members_order: source

markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
use_pygments: true # highlight code during build time, not in javascript
linenums: false # enable line numbering
linenums_style: pymdownx-inline # how lines are numbered
- pymdownx.inlinehilite
- pymdownx.snippets
- admonition
- pymdownx.details
- pymdownx.superfences
- pymdownx.keys # keyboard keys
- tables
- footnotes
- pymdownx.highlight:
anchor_linenums: true
use_pygments: true # highlight code during build time, not in javascript
linenums: false # enable line numbering
linenums_style: pymdownx-inline # how lines are numbered
- pymdownx.inlinehilite
- pymdownx.snippets
- admonition
- pymdownx.details
- pymdownx.superfences
- pymdownx.keys # keyboard keys
- tables
- footnotes

nav:
- Introduction: 'index.md'
- Run: 'run.md'
- Mininterface: 'Mininterface.md'
- Tag: 'Tag.md'
- Validation: 'Validation.md'
- Standalone: 'Standalone.md'
- Introduction: "index.md"
- Overview: "Overview.md"
- Run: "run.md"
- Mininterface: "Mininterface.md"
- Tag: "Tag.md"
- Validation: "Validation.md"
- Standalone: "Standalone.md"

0 comments on commit 262c7ce

Please sign in to comment.