Overview
OpenGround can extract documentation from local directories on your file system. This is useful for:- Internal documentation not hosted online
- Development versions of documentation
- Offline documentation access
- Custom documentation repositories
Supported File Types
When extracting from local directories, 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
1
Add documentation from local path
Use the The
add command with a local path:-y flag skips the confirmation prompt between extract and ingest.2
Verify the library was added
List all libraries in your database:
Path Types
OpenGround supports multiple path formats:Absolute Paths
Home Directory Expansion
Relative Paths
Version Handling
The version is automatically generated based on the current date:The
--version flag is ignored for local path sources. The date-based version is always used.Auto-Detection
OpenGround automatically detects local paths based on these patterns:- Filesystem existence - Path exists on disk (most reliable)
- Absolute Unix paths - Starts with
/ - Home directory - Starts with
~ - Relative paths - Starts with
./or../ - Windows paths:
- Drive letter:
C:\,D:\ - UNC paths:
\\server\share - Backslash paths:
\Users\...
- Drive letter:
All Available Flags
Arguments
LIBRARY- Name of the library (required)
Options
--source, -s TEXT- Local path to documentation directory--yes, -y- Skip confirmation prompt between extract and ingest--sources-file TEXT- Path to a custom sources.json file
The following flags are ignored for local path sources:
--version, -v- Local paths use date-based versions--docs-path, -d- Not applicable to local paths--filter-keyword, -f- Not applicable to local paths--trim-query-params- Not applicable to local paths
Using Sources Files
When you add documentation with--source, OpenGround automatically saves the configuration to ~/.openground/sources.json:
1
First time: Add with source
2
Later: Add by name only
Updating Documentation
Each time you runadd with a local path, a new date-based version is created: