Skip to content

Commit

Permalink
Set example class names
Browse files Browse the repository at this point in the history
  • Loading branch information
daizutabi committed Feb 25, 2025
1 parent 65e44f2 commit 3d30a5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mkapi/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from pathlib import Path
from typing import TYPE_CHECKING

from astdoc.markdown import set_example_class
from astdoc.utils import cache_clear, get_module_path, is_package
from mkdocs.plugins import BasePlugin, get_plugin_logger
from mkdocs.structure.files import File, InclusionLevel
Expand Down Expand Up @@ -38,6 +39,7 @@ def __init__(self) -> None:
self.pages = {}
self.progress = None
self.task_id = None
set_example_class("mkapi-example-input", "mkapi-example-output")

def on_config(self, config: MkDocsConfig, **kwargs) -> MkDocsConfig:
cache_clear()
Expand Down

0 comments on commit 3d30a5e

Please sign in to comment.