4
4
5
5
from typing import TYPE_CHECKING , Any , ClassVar
6
6
7
- from mkdocs .exceptions import PluginError
8
- from mkdocstrings .handlers .base import BaseHandler , CollectionError , CollectorItem
7
+ from mkdocstrings .handlers .base import BaseHandler , CollectorItem
9
8
from mkdocstrings .loggers import get_logger
10
9
11
10
if TYPE_CHECKING :
@@ -65,7 +64,7 @@ def collect(self, identifier: str, config: MutableMapping[str, Any]) -> Collecto
65
64
Returns:
66
65
Anything you want, as long as you can feed it to the `render` method.
67
66
"""
68
- raise CollectionError ( "Implement me!" )
67
+ return { "identifier" : identifier }
69
68
70
69
def render (self , data : CollectorItem , config : Mapping [str , Any ]) -> str : # noqa: ARG002
71
70
"""Render a template using provided data and configuration options.
@@ -78,13 +77,10 @@ def render(self, data: CollectorItem, config: Mapping[str, Any]) -> str: # noqa
78
77
Returns:
79
78
The rendered template as HTML.
80
79
"""
81
- # final_config = {**self.default_config, **config}
82
- # heading_level = final_config["heading_level"]
83
- # template = self.env.get_template(f"{data...}.html.jinja")
84
- # return template.render(
85
- # **{"config": final_config, data...: data, "heading_level": heading_level, "root": True},
86
- # )
87
- raise PluginError ("Implement me!" )
80
+ return (
81
+ f"<i><b><code>::: { data ['identifier' ]} </code></b><br>The public version of mkdocstrings-csharp is a no-op "
82
+ "and exist only to allow building docs without errors. Please rely on docs preview in CI.</i>"
83
+ )
88
84
89
85
def update_env (self , md : Markdown , config : dict ) -> None :
90
86
"""Update the Jinja environment with any custom settings/filters/options for this handler.
0 commit comments