forked from phoenix-oss/llama-stack-mirror
fix: Readthedocs cannot parse comments, resulting in docs bugs (#1033)
This commit is contained in:
parent
ab9516c789
commit
afca9d92f9
10 changed files with 18 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
|||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
---
|
||||
orphan: true
|
||||
---
|
||||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
|
||||
# Dell Distribution of Llama Stack
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
---
|
||||
orphan: true
|
||||
---
|
||||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
# Fireworks Distribution
|
||||
|
||||
```{toctree}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
---
|
||||
orphan: true
|
||||
---
|
||||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
# Meta Reference Distribution
|
||||
|
||||
```{toctree}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
---
|
||||
orphan: true
|
||||
---
|
||||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
# Meta Reference Quantized Distribution
|
||||
|
||||
```{toctree}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
---
|
||||
orphan: true
|
||||
---
|
||||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
# Ollama Distribution
|
||||
|
||||
```{toctree}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
---
|
||||
orphan: true
|
||||
---
|
||||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
# Remote vLLM Distribution
|
||||
```{toctree}
|
||||
:maxdepth: 2
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
---
|
||||
orphan: true
|
||||
---
|
||||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
# SambaNova Distribution
|
||||
|
||||
```{toctree}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
---
|
||||
orphan: true
|
||||
---
|
||||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
|
||||
# TGI Distribution
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
---
|
||||
orphan: true
|
||||
---
|
||||
<!-- This file was auto-generated by distro_codegen.py, please edit source -->
|
||||
# Together Distribution
|
||||
|
||||
```{toctree}
|
||||
|
|
|
@ -131,8 +131,15 @@ class DistributionTemplate(BaseModel):
|
|||
providers_str = ", ".join(f"`{p}`" for p in providers)
|
||||
providers_table += f"| {api} | {providers_str} |\n"
|
||||
|
||||
template = "<!-- This file was auto-generated by distro_codegen.py, please edit source -->\n"
|
||||
template += self.template_path.read_text()
|
||||
template = self.template_path.read_text()
|
||||
comment = "<!-- This file was auto-generated by distro_codegen.py, please edit source -->\n"
|
||||
orphantext = "---\norphan: true\n---\n"
|
||||
|
||||
if template.startswith(orphantext):
|
||||
template = template.replace(orphantext, orphantext + comment)
|
||||
else:
|
||||
template = comment + template
|
||||
|
||||
# Render template with rich-generated table
|
||||
env = jinja2.Environment(
|
||||
trim_blocks=True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue