Skip to content

Commit

Permalink
fix: Include docs files for copilot in package (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carson-Shaar authored Dec 21, 2024
1 parent 293e98d commit fcb5071
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
recursive-include zt_backend/dist_dev *
recursive-include zt_backend/dist_app *
recursive-include copilot/node_modules *
recursive-include mintlify-docs/Components *
include copilot/client.js
include zt_cli/log_config.yaml
include zt_dev_cli/log_config.yaml
3 changes: 2 additions & 1 deletion copilot/copilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import traceback
from copilot.context_extractor import MdxComponentParser
from zt_backend.config import settings
import importlib.resources


copilot_app = FastAPI()
Expand All @@ -30,7 +31,7 @@
copilot_enabled = False
copilot_doc_open = False
version = 0
MDX_DIRECTORY = os.path.join(settings.zt_path, 'mintlify-docs', 'Components')
MDX_DIRECTORY = importlib.resources.files("mintlify-docs") / "Components"
mdx_parser = MdxComponentParser(MDX_DIRECTORY)

def is_docker():
Expand Down
Empty file added mintlify-docs/__init__.py
Empty file.

0 comments on commit fcb5071

Please sign in to comment.