Documentation Index
Fetch the complete documentation index at: https://mintlify.com/poweroutlet2/openground/llms.txt
Use this file to discover all available pages before exploring further.
Overview
OpenGround can extract documentation directly from git repositories using shallow clones and sparse checkout for efficiency. This is ideal for versioned documentation that uses git tags.Supported File Types
When extracting from git repositories, OpenGround processes the following file extensions:.md- Markdown.mdx- MDX (Markdown with JSX).rst- reStructuredText.txt- Plain text.ipynb- Jupyter Notebooks.html- HTML.htm- HTML
Basic Usage
Add documentation with source URL
Use the The
add command with the --source flag to specify a git repository:-y flag skips the confirmation prompt between extract and ingest.Specifying Documentation Paths
If documentation is in a specific subdirectory, use the--docs-path flag:
Multiple Documentation Paths
You can specify multiple paths by using the--docs-path flag multiple times:
Indexing Entire Repository
If you don’t specify--docs-path, OpenGround will index the entire repository:
Version Management
Using Git Tags
The--version flag allows you to specify a git tag to checkout:
v0.109.0, 1.0.0, etc.).
Default Version
If no version is specified, OpenGround defaults tolatest:
Multiple Versions
You can store multiple versions of the same library independently:Parsing GitHub Web URLs
OpenGround can automatically parse GitHub and GitLab web URLs:- Repository URL:
https://github.com/user/repo.git - Version:
v1.0 - Docs path:
docs
All Available Flags
Arguments
LIBRARY- Name of the library (required)
Options
--source, -s TEXT- Git repo URL (e.g.,https://github.com/user/repo.git)--version, -v TEXT- Git tag to checkout (e.g.,v1.0.0, defaults tolatest)--docs-path, -d TEXT- Path(s) to documentation within the repo (can be specified multiple times)--yes, -y- Skip confirmation prompt between extract and ingest--sources-file TEXT- Path to a custom sources.json file
The following flags are for sitemap sources only and are ignored for git repositories:
--filter-keyword, -f- Not applicable to git repos--trim-query-params- Not applicable to git repos
Using Sources Files
When you add documentation with--source, OpenGround automatically saves the configuration to ~/.openground/sources.json. This allows you to re-add or update the library later using just the name:
See Managing sources.json files for more details.
Updating Documentation
To update an existing library with changes from the source:update command is an alias for add when a library already exists.
Advanced: Direct Extract Command
For advanced use cases, you can use theextract-git command separately: