Skip to content
This repository was archived by the owner on Apr 29, 2026. It is now read-only.

Commit 5fa42c0

Browse files
carlosabadiaclaude
andauthored
add package (#5)
* add package * rename docs → integrations_docs to avoid import collision The `docs` package name collides with local `docs/` directories in consuming repos. Rename to `integrations_docs` for a clean import. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 84ad1bd commit 5fa42c0

33 files changed

Lines changed: 29 additions & 0 deletions

integrations_docs/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""Reflex integrations docs."""
2+
3+
from pathlib import Path
4+
5+
DOCS_DIR = Path(__file__).parent
6+
7+
8+
def get_doc(name: str) -> str:
9+
"""Read a doc by name (without .md extension)."""
10+
return (DOCS_DIR / f"{name}.md").read_text()
11+
12+
13+
def list_docs() -> list[str]:
14+
"""List all available doc names."""
15+
return sorted(p.stem for p in DOCS_DIR.glob("*.md"))
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.

0 commit comments

Comments
 (0)