forked from rapidsai/frigate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build docs with myst instead of rst (#5)
* Build docs with myst instead of rst * Add markdown support to the extension * Fix file extension check * Update docs to advertise md support
- Loading branch information
1 parent
78e914b
commit 959feab
Showing
9 changed files
with
456 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Customizing your docs | ||
|
||
TODO |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Sphinx-helm | ||
|
||
```{toctree} | ||
:maxdepth: 2 | ||
:hidden: true | ||
customizing | ||
``` | ||
|
||
`sphinx-helm` is a [Sphinx](https://www.sphinx-doc.org/) plugin for automatically generating documentation for your [Helm charts](https://helm.sh/). | ||
|
||
It will use the chart's `Chart.yaml` and `values.yaml` files in order to | ||
generate the content in a markup language of your choice. | ||
|
||
## Features | ||
|
||
- Render documentation from your `Chart.yaml` and `values.yaml` files. | ||
- Sphinx extension for including in Python documentation. | ||
- Works with `rst` and `md` documentation source files. | ||
|
||
## Installation | ||
|
||
```console | ||
$ pip install sphinx-helm | ||
``` | ||
|
||
## Example | ||
|
||
Create an example `hello-world` Helm chart with `helm create`. | ||
|
||
```console | ||
$ helm create hello-world | ||
Creating hello-world | ||
``` | ||
|
||
- Enable the plugin in your Sphinx ``conf.py`` file: | ||
|
||
```python | ||
extensions = ['sphinx-helm.ext'] | ||
``` | ||
|
||
- Now you can use the `helm` directive wherever you wish in your documentation. | ||
|
||
```rst | ||
.. helm:: path/to/hello-world | ||
``` | ||
|
||
```{note} | ||
sphinx-helm paths are relative to the root of your documentation. | ||
``` | ||
|
||
## Example | ||
|
||
*The following was autogenerated from the simple nginx example chart in sphinx-helm's test suite.* | ||
|
||
|
||
```{helm} ../sphinx_helm/tests/mockcharts/simple | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ test = [ | |
docs = [ | ||
"sphinx", | ||
"sphinx-click", | ||
"myst-parser>=3.0.1", | ||
] | ||
|
||
[build-system] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters