pydoc-mintlify
A pydoc-markdown plugin for Mintlify. Comes with a CLI to run a dev server with Mintlify and watch for changes.
Installation
pip install pydoc-mintlify
or with
uv add pydoc-mintlify
Usage
Configure pydoc-markdown.yaml
Set the renderer to pydoc_mintlify.MintlifyRenderer and configure the fields. Functionally this is the same as docs.json in mintlify.
loaders:
- type: python
search_path: ["."] # Must specify the search path (e.g. ["."] for flat layout or ["src"] for src/ layout)
packages: ["<your package name>"] # Must specify you package name (i.e. where all your python files are)
renderer:
type: pydoc_mintlify.MintlifyRenderer # Must specify the pydoc_mintlify renderer
docs_base_path: docs # Where your keep all your mintlify .mdx files
relative_output_path: reference # Where the auto-generated .mdx files will be dumped
nav: # Navigation configuration for your generated .mdx files. (This will be dumped into a tab with the same name in your docs.json)
tab: SDK Reference # Must match the name of a tab in your docs.json
groups:
- group: Programs
pages:
- <your package name>/module_1 # specify pages as relative paths starting with your package name
- title: <page name> # You can also set the title and description of the page here
description: <description of module>
path: <your package name>/module_2
- group: Context
pages:
- title: <page name 2> # You can also set the title and description of the page here
description: <description of module 2>
path: <your package name>/module_3
- <your package name>/module_4
- title: <page name 3> # You can also set the title and description of the page here
description: <description of module 3>
path: <your package name>/module_5
Example pydoc-markdown.yaml file
For the directory layout structure here:
.
├── pydoc-markdown.yaml
├── pyproject.toml
├── README.md
├── retrievers
│ ├── __init__.py
│ ├── context
│ │ ├── __init__.py
│ │ ├── base.py
│ │ ├── dtype_mapping.py
│ │ ├── table.py
│ │ └── text.py
│ ├── databases
│ │ ├── __init__.py
│ │ ├── graph_database.py
│ │ ├── sql_database.py
│ │ └── vector_database
│ │ ├── __init__.py
│ │ ├── vector_database.py
│ │ └── vendors
│ │ ├── milvus.py
│ │ ├── mongodb.py
│ │ ├── pinecone.py
│ │ └── qdrant.py
│ ├── exceptions.py
│ ├── indexing.py
│ ├── query_language.py
│ ├── storage
│ │ ├── __init__.py
│ │ ├── file_store.py
│ │ └── pickle_store.py
│ └── types.py
└── docs
The following pydoc-markdown.yaml is used.
# pydoc-markdown.yaml
loaders:
- type: python
search_path: ["."] # <- flat layout
packages: ["retrievers"]
renderer:
type: pydoc_mintlify.MintlifyRenderer
docs_base_path: docs
nav:
tab: SDK Reference
icon: square-terminal
groups:
- group: Context
pages:
- title: Bases Classes
description: The Base Context Classes
path: retrievers/context/base
- title: Table
description: The Table Context Classes
path: retrievers/context/table
- title: Text
description: The Text Context Classes
path: retrievers/context/text
- title: DTypes
description: Retrievers DTypes
path: retrievers/context/dtype_mapping
- group: Indexing
pages:
- title: Indexing Utils
description: The Indexing Utils Class
path: retrievers/indexing
- group: Databases
pages:
- group: Vector Database
pages:
- title: VectorDatabase Class
description: The Vector Database Class
path: retrievers/databases/vector_database/vector_database
- group: Vendors
pages:
- title: Milvus
description: Milvus Integration
path: retrievers/databases/vector_database/vendors/milvus
- title: VDB Query Language
description: The Retrievers Query Language Class
path: retrievers/query_language
- title: SQL Database
description: A SQL Database for RAG over Tables
path: retrievers/databases/sql_database
- title: Graph Database
description: A Graph Database for RAG over Graphs
path: retrievers/databases/graph_database
- group: Context Storage
pages:
- title: File Store
description: The File Store Class
path: retrievers/storage/file_store
- title: Pickle Store
description: The Pickle Store Class
path: retrievers/storage/pickle_store
Check out the retrievers source code for a full example:
CLI
You can use the CLI to launch the dev server and build your auto-generated .mdx files.
pydoc-mintlify dev # runs the dev server (rebuilds .mdx files when your .py files change and also runs mint dev)
pydoc-mintlify build # One shot generation of your .mdx files
pydoc-mintlify docs-watch # Also launvhes the dev server but doesn't run mint dev
Metadata
Release files for pydoc-mintlify 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pydoc_mintlify-0.1.2.tar.gz | 72.3 kB | Without provenance | Details for pydoc_mintlify-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydoc_mintlify-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pydoc_mintlify-0.1.2-py3-none-any.whl |
Total release size: 81.6 kB
Release files / pydoc_mintlify-0.1.2.tar.gz
| Download URL | pydoc_mintlify-0.1.2.tar.gz |
|---|---|
| Size | 72.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a38e735e2d551efacefd8d7175a651d9cfd554760777ef9182368ec5756f5849
|
|
BLAKE2b-256 checksum How to use checksums |
611271d8d8aec9dc28c61a2fcafe06c6e67d31f76fa64af02f7db83f2f2e1ab2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.3
|
Release files / pydoc_mintlify-0.1.2-py3-none-any.whl
| Download URL | pydoc_mintlify-0.1.2-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ba2eab34f2df2cfb7619423b6b285d79347a76ae98de000b055ab3797cceecf
|
|
BLAKE2b-256 checksum How to use checksums |
2c73e668c1cbd89d7ee51274901ef62c77adfc65657d876326ee55efe3f8d531
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.3
|
Security for pydoc-mintlify 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.