mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-12 04:50:39 +00:00
docs: part 1 - fix warnings in documentation generation (#2861)
**Description** This PR removes some of the warnings when uv builds the docs - Errors appear when generating docs about .md files not appearing in toctree. ~~Adding content to the `providers-gen.py ` file that adds `--- orphan: true ---` to to each file.~~. Added a toctree generator to the `providers-gen.py` file, this gets rid of the errors in the builds. - Deletes the `_openai_compat` files, extension of PR #2849 - Adds the `files` APIs section to the `providers` toctree on the index page - Manually adds the `--- orphan: true ---` to the advanced apis. Ill try to find a way to modify the providers code gen so it automatically adds it, but this fixes the errors. - Adds the `testing.md` to the `contributing` toctree - Adds `starting_llama_stack_server.md` to `distributions` toctree There are some other warnings im still looking at but this PR gets rid of most of the toctree errors Theres also an issue with the actual distribution-codegen that I can investigate in another PR. Opened a bug for it here #2873
This commit is contained in:
parent
38d5c44354
commit
026caa5551
27 changed files with 210 additions and 230 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
---
|
||||||
|
orphan: true
|
||||||
|
---
|
||||||
|
|
||||||
# inline::meta-reference
|
# inline::meta-reference
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
---
|
||||||
|
orphan: true
|
||||||
|
---
|
||||||
|
|
||||||
# remote::nvidia
|
# remote::nvidia
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
---
|
||||||
|
orphan: true
|
||||||
|
---
|
||||||
|
|
||||||
# inline::huggingface
|
# inline::huggingface
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
---
|
||||||
|
orphan: true
|
||||||
|
---
|
||||||
|
|
||||||
# inline::torchtune
|
# inline::torchtune
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
---
|
||||||
|
orphan: true
|
||||||
|
---
|
||||||
|
|
||||||
# remote::nvidia
|
# remote::nvidia
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
---
|
||||||
|
orphan: true
|
||||||
|
---
|
||||||
|
|
||||||
# inline::basic
|
# inline::basic
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
---
|
||||||
|
orphan: true
|
||||||
|
---
|
||||||
|
|
||||||
# inline::braintrust
|
# inline::braintrust
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
---
|
||||||
|
orphan: true
|
||||||
|
---
|
||||||
|
|
||||||
# inline::llm-as-judge
|
# inline::llm-as-judge
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
|
@ -11,4 +11,5 @@ See the [Adding a New API Provider](new_api_provider.md) which describes how to
|
||||||
:hidden:
|
:hidden:
|
||||||
|
|
||||||
new_api_provider
|
new_api_provider
|
||||||
|
testing
|
||||||
```
|
```
|
||||||
|
|
|
@ -9,6 +9,7 @@ This section provides an overview of the distributions available in Llama Stack.
|
||||||
list_of_distributions
|
list_of_distributions
|
||||||
building_distro
|
building_distro
|
||||||
customizing_run_yaml
|
customizing_run_yaml
|
||||||
|
starting_llama_stack_server
|
||||||
importing_as_library
|
importing_as_library
|
||||||
configuration
|
configuration
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
# Agents Providers
|
# Agents
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
This section contains documentation for all available providers for the **agents** API.
|
This section contains documentation for all available providers for the **agents** API.
|
||||||
|
|
||||||
- [inline::meta-reference](inline_meta-reference.md)
|
## Providers
|
||||||
|
|
||||||
|
```{toctree}
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
inline_meta-reference
|
||||||
|
```
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
# Datasetio Providers
|
# Datasetio
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
This section contains documentation for all available providers for the **datasetio** API.
|
This section contains documentation for all available providers for the **datasetio** API.
|
||||||
|
|
||||||
- [inline::localfs](inline_localfs.md)
|
## Providers
|
||||||
- [remote::huggingface](remote_huggingface.md)
|
|
||||||
- [remote::nvidia](remote_nvidia.md)
|
```{toctree}
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
inline_localfs
|
||||||
|
remote_huggingface
|
||||||
|
remote_nvidia
|
||||||
|
```
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
# Eval Providers
|
# Eval
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
This section contains documentation for all available providers for the **eval** API.
|
This section contains documentation for all available providers for the **eval** API.
|
||||||
|
|
||||||
- [inline::meta-reference](inline_meta-reference.md)
|
## Providers
|
||||||
- [remote::nvidia](remote_nvidia.md)
|
|
||||||
|
```{toctree}
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
inline_meta-reference
|
||||||
|
remote_nvidia
|
||||||
|
```
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
# Files Providers
|
# Files
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
This section contains documentation for all available providers for the **files** API.
|
This section contains documentation for all available providers for the **files** API.
|
||||||
|
|
||||||
- [inline::localfs](inline_localfs.md)
|
## Providers
|
||||||
|
|
||||||
|
```{toctree}
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
inline_localfs
|
||||||
|
```
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# API Providers Overview
|
# API Providers
|
||||||
|
|
||||||
The goal of Llama Stack is to build an ecosystem where users can easily swap out different implementations for the same API. Examples for these include:
|
The goal of Llama Stack is to build an ecosystem where users can easily swap out different implementations for the same API. Examples for these include:
|
||||||
- LLM inference providers (e.g., Meta Reference, Ollama, Fireworks, Together, AWS Bedrock, Groq, Cerebras, SambaNova, vLLM, OpenAI, Anthropic, Gemini, WatsonX, etc.),
|
- LLM inference providers (e.g., Meta Reference, Ollama, Fireworks, Together, AWS Bedrock, Groq, Cerebras, SambaNova, vLLM, OpenAI, Anthropic, Gemini, WatsonX, etc.),
|
||||||
|
@ -12,81 +12,17 @@ Providers come in two flavors:
|
||||||
|
|
||||||
Importantly, Llama Stack always strives to provide at least one fully inline provider for each API so you can iterate on a fully featured environment locally.
|
Importantly, Llama Stack always strives to provide at least one fully inline provider for each API so you can iterate on a fully featured environment locally.
|
||||||
|
|
||||||
## External Providers
|
|
||||||
Llama Stack supports external providers that live outside of the main codebase. This allows you to create and maintain your own providers independently.
|
|
||||||
|
|
||||||
```{toctree}
|
|
||||||
:maxdepth: 1
|
|
||||||
|
|
||||||
external.md
|
|
||||||
```
|
|
||||||
|
|
||||||
```{include} openai.md
|
|
||||||
:start-after: ## OpenAI API Compatibility
|
|
||||||
```
|
|
||||||
|
|
||||||
## Inference
|
|
||||||
Runs inference with an LLM.
|
|
||||||
|
|
||||||
```{toctree}
|
```{toctree}
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
|
external
|
||||||
|
openai
|
||||||
inference/index
|
inference/index
|
||||||
```
|
|
||||||
|
|
||||||
## Agents
|
|
||||||
Run multi-step agentic workflows with LLMs with tool usage, memory (RAG), etc.
|
|
||||||
|
|
||||||
```{toctree}
|
|
||||||
:maxdepth: 1
|
|
||||||
|
|
||||||
agents/index
|
agents/index
|
||||||
```
|
|
||||||
|
|
||||||
## DatasetIO
|
|
||||||
Interfaces with datasets and data loaders.
|
|
||||||
|
|
||||||
```{toctree}
|
|
||||||
:maxdepth: 1
|
|
||||||
|
|
||||||
datasetio/index
|
datasetio/index
|
||||||
```
|
|
||||||
|
|
||||||
## Safety
|
|
||||||
Applies safety policies to the output at a Systems (not only model) level.
|
|
||||||
|
|
||||||
```{toctree}
|
|
||||||
:maxdepth: 1
|
|
||||||
|
|
||||||
safety/index
|
safety/index
|
||||||
```
|
|
||||||
|
|
||||||
## Telemetry
|
|
||||||
Collects telemetry data from the system.
|
|
||||||
|
|
||||||
```{toctree}
|
|
||||||
:maxdepth: 1
|
|
||||||
|
|
||||||
telemetry/index
|
telemetry/index
|
||||||
```
|
|
||||||
|
|
||||||
## Vector IO
|
|
||||||
|
|
||||||
Vector IO refers to operations on vector databases, such as adding documents, searching, and deleting documents.
|
|
||||||
Vector IO plays a crucial role in [Retreival Augmented Generation (RAG)](../..//building_applications/rag), where the vector
|
|
||||||
io and database are used to store and retrieve documents for retrieval.
|
|
||||||
|
|
||||||
```{toctree}
|
|
||||||
:maxdepth: 1
|
|
||||||
|
|
||||||
vector_io/index
|
vector_io/index
|
||||||
```
|
|
||||||
|
|
||||||
## Tool Runtime
|
|
||||||
Is associated with the ToolGroup resources.
|
|
||||||
|
|
||||||
```{toctree}
|
|
||||||
:maxdepth: 1
|
|
||||||
|
|
||||||
tool_runtime/index
|
tool_runtime/index
|
||||||
```
|
files/index
|
||||||
|
```
|
||||||
|
|
|
@ -1,26 +1,34 @@
|
||||||
# Inference Providers
|
# Inference
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
This section contains documentation for all available providers for the **inference** API.
|
This section contains documentation for all available providers for the **inference** API.
|
||||||
|
|
||||||
- [inline::meta-reference](inline_meta-reference.md)
|
## Providers
|
||||||
- [inline::sentence-transformers](inline_sentence-transformers.md)
|
|
||||||
- [remote::anthropic](remote_anthropic.md)
|
```{toctree}
|
||||||
- [remote::bedrock](remote_bedrock.md)
|
:maxdepth: 1
|
||||||
- [remote::cerebras](remote_cerebras.md)
|
|
||||||
- [remote::databricks](remote_databricks.md)
|
inline_meta-reference
|
||||||
- [remote::fireworks](remote_fireworks.md)
|
inline_sentence-transformers
|
||||||
- [remote::gemini](remote_gemini.md)
|
remote_anthropic
|
||||||
- [remote::groq](remote_groq.md)
|
remote_bedrock
|
||||||
- [remote::hf::endpoint](remote_hf_endpoint.md)
|
remote_cerebras
|
||||||
- [remote::hf::serverless](remote_hf_serverless.md)
|
remote_databricks
|
||||||
- [remote::llama-openai-compat](remote_llama-openai-compat.md)
|
remote_fireworks
|
||||||
- [remote::nvidia](remote_nvidia.md)
|
remote_gemini
|
||||||
- [remote::ollama](remote_ollama.md)
|
remote_groq
|
||||||
- [remote::openai](remote_openai.md)
|
remote_hf_endpoint
|
||||||
- [remote::passthrough](remote_passthrough.md)
|
remote_hf_serverless
|
||||||
- [remote::runpod](remote_runpod.md)
|
remote_llama-openai-compat
|
||||||
- [remote::sambanova](remote_sambanova.md)
|
remote_nvidia
|
||||||
- [remote::tgi](remote_tgi.md)
|
remote_ollama
|
||||||
- [remote::together](remote_together.md)
|
remote_openai
|
||||||
- [remote::vllm](remote_vllm.md)
|
remote_passthrough
|
||||||
- [remote::watsonx](remote_watsonx.md)
|
remote_runpod
|
||||||
|
remote_sambanova
|
||||||
|
remote_tgi
|
||||||
|
remote_together
|
||||||
|
remote_vllm
|
||||||
|
remote_watsonx
|
||||||
|
```
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
# remote::cerebras-openai-compat
|
|
||||||
|
|
||||||
## Description
|
|
||||||
|
|
||||||
Cerebras OpenAI-compatible provider for using Cerebras models with OpenAI API format.
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
| Field | Type | Required | Default | Description |
|
|
||||||
|-------|------|----------|---------|-------------|
|
|
||||||
| `api_key` | `str \| None` | No | | The Cerebras API key |
|
|
||||||
| `openai_compat_api_base` | `<class 'str'>` | No | https://api.cerebras.ai/v1 | The URL for the Cerebras API server |
|
|
||||||
|
|
||||||
## Sample Configuration
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
openai_compat_api_base: https://api.cerebras.ai/v1
|
|
||||||
api_key: ${env.CEREBRAS_API_KEY}
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
# remote::fireworks-openai-compat
|
|
||||||
|
|
||||||
## Description
|
|
||||||
|
|
||||||
Fireworks AI OpenAI-compatible provider for using Fireworks models with OpenAI API format.
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
| Field | Type | Required | Default | Description |
|
|
||||||
|-------|------|----------|---------|-------------|
|
|
||||||
| `api_key` | `str \| None` | No | | The Fireworks API key |
|
|
||||||
| `openai_compat_api_base` | `<class 'str'>` | No | https://api.fireworks.ai/inference/v1 | The URL for the Fireworks API server |
|
|
||||||
|
|
||||||
## Sample Configuration
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
openai_compat_api_base: https://api.fireworks.ai/inference/v1
|
|
||||||
api_key: ${env.FIREWORKS_API_KEY}
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
# remote::groq-openai-compat
|
|
||||||
|
|
||||||
## Description
|
|
||||||
|
|
||||||
Groq OpenAI-compatible provider for using Groq models with OpenAI API format.
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
| Field | Type | Required | Default | Description |
|
|
||||||
|-------|------|----------|---------|-------------|
|
|
||||||
| `api_key` | `str \| None` | No | | The Groq API key |
|
|
||||||
| `openai_compat_api_base` | `<class 'str'>` | No | https://api.groq.com/openai/v1 | The URL for the Groq API server |
|
|
||||||
|
|
||||||
## Sample Configuration
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
openai_compat_api_base: https://api.groq.com/openai/v1
|
|
||||||
api_key: ${env.GROQ_API_KEY}
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
# remote::together-openai-compat
|
|
||||||
|
|
||||||
## Description
|
|
||||||
|
|
||||||
Together AI OpenAI-compatible provider for using Together models with OpenAI API format.
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
| Field | Type | Required | Default | Description |
|
|
||||||
|-------|------|----------|---------|-------------|
|
|
||||||
| `api_key` | `str \| None` | No | | The Together API key |
|
|
||||||
| `openai_compat_api_base` | `<class 'str'>` | No | https://api.together.xyz/v1 | The URL for the Together API server |
|
|
||||||
|
|
||||||
## Sample Configuration
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
openai_compat_api_base: https://api.together.xyz/v1
|
|
||||||
api_key: ${env.TOGETHER_API_KEY}
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
# Post_Training Providers
|
# Post_Training
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
This section contains documentation for all available providers for the **post_training** API.
|
This section contains documentation for all available providers for the **post_training** API.
|
||||||
|
|
||||||
- [inline::huggingface](inline_huggingface.md)
|
## Providers
|
||||||
- [inline::torchtune](inline_torchtune.md)
|
|
||||||
- [remote::nvidia](remote_nvidia.md)
|
```{toctree}
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
inline_huggingface
|
||||||
|
inline_torchtune
|
||||||
|
remote_nvidia
|
||||||
|
```
|
||||||
|
|
|
@ -1,10 +1,18 @@
|
||||||
# Safety Providers
|
# Safety
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
This section contains documentation for all available providers for the **safety** API.
|
This section contains documentation for all available providers for the **safety** API.
|
||||||
|
|
||||||
- [inline::code-scanner](inline_code-scanner.md)
|
## Providers
|
||||||
- [inline::llama-guard](inline_llama-guard.md)
|
|
||||||
- [inline::prompt-guard](inline_prompt-guard.md)
|
```{toctree}
|
||||||
- [remote::bedrock](remote_bedrock.md)
|
:maxdepth: 1
|
||||||
- [remote::nvidia](remote_nvidia.md)
|
|
||||||
- [remote::sambanova](remote_sambanova.md)
|
inline_code-scanner
|
||||||
|
inline_llama-guard
|
||||||
|
inline_prompt-guard
|
||||||
|
remote_bedrock
|
||||||
|
remote_nvidia
|
||||||
|
remote_sambanova
|
||||||
|
```
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
# Scoring Providers
|
# Scoring
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
This section contains documentation for all available providers for the **scoring** API.
|
This section contains documentation for all available providers for the **scoring** API.
|
||||||
|
|
||||||
- [inline::basic](inline_basic.md)
|
## Providers
|
||||||
- [inline::braintrust](inline_braintrust.md)
|
|
||||||
- [inline::llm-as-judge](inline_llm-as-judge.md)
|
```{toctree}
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
inline_basic
|
||||||
|
inline_braintrust
|
||||||
|
inline_llm-as-judge
|
||||||
|
```
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
# Telemetry Providers
|
# Telemetry
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
This section contains documentation for all available providers for the **telemetry** API.
|
This section contains documentation for all available providers for the **telemetry** API.
|
||||||
|
|
||||||
- [inline::meta-reference](inline_meta-reference.md)
|
## Providers
|
||||||
|
|
||||||
|
```{toctree}
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
inline_meta-reference
|
||||||
|
```
|
||||||
|
|
|
@ -1,10 +1,18 @@
|
||||||
# Tool_Runtime Providers
|
# Tool_Runtime
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
This section contains documentation for all available providers for the **tool_runtime** API.
|
This section contains documentation for all available providers for the **tool_runtime** API.
|
||||||
|
|
||||||
- [inline::rag-runtime](inline_rag-runtime.md)
|
## Providers
|
||||||
- [remote::bing-search](remote_bing-search.md)
|
|
||||||
- [remote::brave-search](remote_brave-search.md)
|
```{toctree}
|
||||||
- [remote::model-context-protocol](remote_model-context-protocol.md)
|
:maxdepth: 1
|
||||||
- [remote::tavily-search](remote_tavily-search.md)
|
|
||||||
- [remote::wolfram-alpha](remote_wolfram-alpha.md)
|
inline_rag-runtime
|
||||||
|
remote_bing-search
|
||||||
|
remote_brave-search
|
||||||
|
remote_model-context-protocol
|
||||||
|
remote_tavily-search
|
||||||
|
remote_wolfram-alpha
|
||||||
|
```
|
||||||
|
|
|
@ -1,16 +1,24 @@
|
||||||
# Vector_Io Providers
|
# Vector_Io
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
This section contains documentation for all available providers for the **vector_io** API.
|
This section contains documentation for all available providers for the **vector_io** API.
|
||||||
|
|
||||||
- [inline::chromadb](inline_chromadb.md)
|
## Providers
|
||||||
- [inline::faiss](inline_faiss.md)
|
|
||||||
- [inline::meta-reference](inline_meta-reference.md)
|
```{toctree}
|
||||||
- [inline::milvus](inline_milvus.md)
|
:maxdepth: 1
|
||||||
- [inline::qdrant](inline_qdrant.md)
|
|
||||||
- [inline::sqlite-vec](inline_sqlite-vec.md)
|
inline_chromadb
|
||||||
- [inline::sqlite_vec](inline_sqlite_vec.md)
|
inline_faiss
|
||||||
- [remote::chromadb](remote_chromadb.md)
|
inline_meta-reference
|
||||||
- [remote::milvus](remote_milvus.md)
|
inline_milvus
|
||||||
- [remote::pgvector](remote_pgvector.md)
|
inline_qdrant
|
||||||
- [remote::qdrant](remote_qdrant.md)
|
inline_sqlite-vec
|
||||||
- [remote::weaviate](remote_weaviate.md)
|
inline_sqlite_vec
|
||||||
|
remote_chromadb
|
||||||
|
remote_milvus
|
||||||
|
remote_pgvector
|
||||||
|
remote_qdrant
|
||||||
|
remote_weaviate
|
||||||
|
```
|
||||||
|
|
|
@ -255,22 +255,28 @@ def process_provider_registry(progress, change_tracker: ChangedPathTracker) -> N
|
||||||
change_tracker.add_paths(doc_output_dir)
|
change_tracker.add_paths(doc_output_dir)
|
||||||
|
|
||||||
index_content = []
|
index_content = []
|
||||||
index_content.append(f"# {api_name.title()} Providers")
|
index_content.append(f"# {api_name.title()} \n")
|
||||||
index_content.append("")
|
index_content.append("## Overview\n")
|
||||||
|
|
||||||
index_content.append(
|
index_content.append(
|
||||||
f"This section contains documentation for all available providers for the **{api_name}** API."
|
f"This section contains documentation for all available providers for the **{api_name}** API.\n"
|
||||||
)
|
)
|
||||||
index_content.append("")
|
|
||||||
|
index_content.append("## Providers\n")
|
||||||
|
|
||||||
|
toctree_entries = []
|
||||||
|
|
||||||
for provider_type, provider in sorted(providers.items()):
|
for provider_type, provider in sorted(providers.items()):
|
||||||
provider_doc_file = doc_output_dir / f"{provider_type.replace('::', '_').replace(':', '_')}.md"
|
filename = provider_type.replace("::", "_").replace(":", "_")
|
||||||
|
provider_doc_file = doc_output_dir / f"{filename}.md"
|
||||||
|
|
||||||
provider_docs = generate_provider_docs(provider, api_name)
|
provider_docs = generate_provider_docs(provider, api_name)
|
||||||
|
|
||||||
provider_doc_file.write_text(provider_docs)
|
provider_doc_file.write_text(provider_docs)
|
||||||
change_tracker.add_paths(provider_doc_file)
|
change_tracker.add_paths(provider_doc_file)
|
||||||
|
toctree_entries.append(f"{filename}")
|
||||||
|
|
||||||
index_content.append(f"- [{provider_type}]({provider_doc_file.name})")
|
index_content.append(f"```{{toctree}}\n:maxdepth: 1\n\n{'\n'.join(toctree_entries)}\n```\n")
|
||||||
|
|
||||||
index_file = doc_output_dir / "index.md"
|
index_file = doc_output_dir / "index.md"
|
||||||
index_file.write_text("\n".join(index_content))
|
index_file.write_text("\n".join(index_content))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue