Skip to content

Commit e282e8a

Browse files
committed
readthedocs
1 parent 621213a commit e282e8a

5 files changed

Lines changed: 52 additions & 0 deletions

File tree

.readthedocs.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
3+
build:
4+
os: ubuntu-24.04
5+
tools:
6+
python: "3.13"
7+
8+
sphinx:
9+
configuration: docs/conf.py
10+
11+
python:
12+
install:
13+
- requirements: docs/requirements.txt

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# nixkube / nix + kube / nix-csi / nix-nri
22

3+
[![Documentation Status](https://readthedocs.org/projects/nixkube/badge/?version=latest)](https://nixkube.readthedocs.io/en/latest/?badge=latest)
4+
35
Mount /nix into Kubernetes pods using the CSI ephemeral volumes or NRI(Node Resource Interface). Volumes
46
share lifetime with Pods and are embedded into the Podspec.
57

@@ -108,6 +110,8 @@ Examples:
108110
* [multi-system example](https://github.com/Lillecarl/hetzkube/blob/4ed76ec77bfb104d1c2307b1ba178efa61dd34e2/kubenix/modules/cheapam.nix#L113)
109111
* [single-system ci example(s)](https://github.com/Lillecarl/nix-csi/blob/3179e5f8383e760bbef313300a224e44f18722c7/kubenix/ci/default.nix)
110112

113+
[Documentation](https://nixkube.readthedocs.io/)
114+
111115
---
112116

113117
*This project is made possible by*

docs/conf.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
project = "nixkube"
2+
copyright = "2025, Carl Andersson"
3+
author = "Carl Andersson"
4+
5+
extensions = [
6+
"myst_parser",
7+
"sphinx.ext.autodoc",
8+
"sphinx.ext.napoleon",
9+
"sphinx.ext.viewcode",
10+
"sphinx.ext.intersphinx",
11+
]
12+
13+
myst_enable_extensions = [
14+
"colon_fence",
15+
"deflist",
16+
]
17+
18+
templates_path = ["_templates"]
19+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
20+
21+
html_theme = "furo"
22+
23+
intersphinx_mapping = {
24+
"python": ("https://docs.python.org/3", None),
25+
}

docs/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# nixkube
2+
3+
```{toctree}
4+
:maxdepth: 2
5+
:caption: Contents
6+
7+
```

docs/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sphinx
2+
myst-parser
3+
furo

0 commit comments

Comments
 (0)