This commit is contained in:
2025-08-05 15:15:36 +02:00
parent 4bd960ed05
commit 7fabb4163a
192 changed files with 14901 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
from typing import Optional, Union
from pathlib import Path
import sys
sys.path.append(str(Path(__file__).parent.parent))
from .markdown_server import MDServer # Import directly from the module file
def serve_markdown(collections_path: str) -> None:
"""
Legacy function to maintain backward compatibility.
Creates an MDServer instance and serves the markdown content.
Args:
collections_path: Path to the collections directory. Can be a string or Path object.
"""
server = MDServer(collections_path=collections_path)
server.serve_markdown()