Skip to content

Commit

Permalink
Update index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokayas authored Nov 24, 2024
1 parent 3e528ce commit d3d6185
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion readme_ready/index/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,24 @@


def index(config: AutodocRepoConfig):
"""Index"""
"""
Indexes a repository to generate documentation and vector store files.
Processes the repository specified in the config to create JSON files, converts them to Markdown format,
and builds a vector store from the Markdown documents. Creates the necessary directories for JSON,
Markdown, and data outputs as specified in the configuration.
Args:
config: An AutodocRepoConfig instance containing configuration settings for indexing, including
output paths, repository details, and processing options.
Returns:
None.
Raises:
OSError: If an error occurs while creating directories.
Exception: If an error occurs during repository processing, Markdown conversion, or vector store creation.
"""
json_path = Path(config.output) / "docs" / "json"
markdown_path = Path(config.output) / "docs" / "markdown"
data_path = Path(config.output) / "docs" / "data"
Expand Down

0 comments on commit d3d6185

Please sign in to comment.