mdpyascii 0.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
mkdocstrings_handlers/mdpyascii/__init__.py,sha256=Q6MHbVbOfVeJu6rTjEMI0ZKzz-7E85kQgyBVzB1e-Dw,421
|
|
2
|
+
mkdocstrings_handlers/mdpyascii/main.py,sha256=iu4l_nPYpZEQqdf8kAn6LC0R9bjf3pGJg5cZyHAFcDk,550
|
|
3
|
+
mdpyascii-0.0.2.dist-info/METADATA,sha256=AoyFNDRrsg04zj7gZhXd88oSh7uCgBKXikaCEBJkh0g,205
|
|
4
|
+
mdpyascii-0.0.2.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
5
|
+
mdpyascii-0.0.2.dist-info/entry_points.txt,sha256=yiNvbzpUQHbBzwC5kjJuCz43RDcI0JwR5O7O7ErHYqg,99
|
|
6
|
+
mdpyascii-0.0.2.dist-info/RECORD,,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
from .main import PyasciiHandler
|
|
3
|
+
|
|
4
|
+
def get_handler(
|
|
5
|
+
*,
|
|
6
|
+
theme: str,
|
|
7
|
+
custom_templates: str | None = None,
|
|
8
|
+
mdx: Any = None,
|
|
9
|
+
mdx_config: dict[str, Any] | None = None,
|
|
10
|
+
**kwargs: Any,
|
|
11
|
+
) -> PyasciiHandler:
|
|
12
|
+
return PyasciiHandler(
|
|
13
|
+
theme=theme,
|
|
14
|
+
custom_templates=custom_templates,
|
|
15
|
+
mdx=mdx or [],
|
|
16
|
+
mdx_config=mdx_config or {},
|
|
17
|
+
**kwargs,
|
|
18
|
+
)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from mkdocstrings import BaseHandler,CollectorItem,HandlerOptions
|
|
2
|
+
from typing import Any,Mapping;
|
|
3
|
+
|
|
4
|
+
class PyasciiHandler(BaseHandler):
|
|
5
|
+
name = "helloworld"
|
|
6
|
+
domain = "helloworld"
|
|
7
|
+
|
|
8
|
+
def collect(self, identifier: str, options: dict[str,Any]):
|
|
9
|
+
return {"identifier": identifier}
|
|
10
|
+
|
|
11
|
+
def render(self, data: CollectorItem, options: HandlerOptions, *, locale: str | None = None) -> str:
|
|
12
|
+
return f"<h1>Hello, {data['identifier']}!</h1>"
|
|
13
|
+
|
|
14
|
+
def get_options(self, local_options: Mapping[str, Any]) -> HandlerOptions:
|
|
15
|
+
return {}
|