-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzensical.toml
More file actions
317 lines (289 loc) · 11.5 KB
/
Copy pathzensical.toml
File metadata and controls
317 lines (289 loc) · 11.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
# ---------------------------------------------------------------------------
# Zensical project configuration.
# Schema: https://zensical.org/docs/setup/
# ---------------------------------------------------------------------------
[project]
site_name = "boilplate"
site_description = "Copy-paste-ready boilerplate for things you keep rewriting."
site_url = "https://remoterabbit.github.io/boilplate/"
site_author = "RemoteRabbit"
copyright = "Copyright © RemoteRabbit · Built with Zensical"
docs_dir = "docs"
repo_name = "RemoteRabbit/boilplate"
repo_url = "https://github.com/RemoteRabbit/boilplate"
edit_uri = "edit/main/docs/"
extra_css = ["assets/extra.css"]
extra_javascript = ["assets/external-links.js"]
nav = [
{ Home = "index.md" },
{ "Terraform / OpenTofu" = [
"terraform/index.md",
{ "Style Guide" = "terraform/style-guide.md" },
{ "Useful Commands" = "terraform/commands.md" },
{ "AWS" = [
"terraform/aws/index.md",
{"Common Variables" = "terraform/aws/variables.md"},
{"Module Skeleton" = "terraform/aws/module-skeleton.md"},
{"Backends" = "terraform/aws/backends.md"},
{"Provider" = "terraform/aws/providers.md"},
{"IAM Policies" = "terraform/aws/iam-policies.md"},
]},
{ "Azure" = [
"terraform/azure/index.md",
{"Common Variables" = "terraform/azure/variables.md"},
{"Module Skeleton" = "terraform/azure/module-skeleton.md"},
{"Backends" = "terraform/azure/backends.md"},
{"Provider" = "terraform/azure/providers.md"},
{"IAM Policies" = "terraform/azure/iam-policies.md"},
]},
{ "GCP" = [
"terraform/gcp/index.md",
{"Common Variables" = "terraform/gcp/variables.md"},
{"Module Skeleton" = "terraform/gcp/module-skeleton.md"},
{"Backends" = "terraform/gcp/backends.md"},
{"Provider" = "terraform/gcp/providers.md"},
{"IAM Policies" = "terraform/gcp/iam-policies.md"},
]},
{ "Terragrunt" = [
"terraform/terragrunt/index.md",
{"root.hcl + env.hcl + unit" = "terraform/terragrunt/root-config.md"},
{"Explicit stacks" = "terraform/terragrunt/stacks.md"},
]},
] },
{ "GitHub Actions" = [
"github-actions/index.md",
{ "Reusable workflows" = "github-actions/reusable-workflows.md" },
{ "OIDC → AWS" = "github-actions/oidc-aws.md" },
{ "OIDC → GCP / Azure" = "github-actions/oidc-gcp-azure.md" },
{ "Container build & push" = "github-actions/container-build.md" },
{ "Release automation" = "github-actions/release.md" },
{ "Path-filtered matrix" = "github-actions/path-filtered-matrix.md" },
] },
{ Containers = [
"containers/index.md",
{ "Python (uv, multi-stage)" = "containers/dockerfile-python.md" },
{ "Go (static, distroless)" = "containers/dockerfile-go.md" },
{ "Node (pnpm, multi-stage)" = "containers/dockerfile-node.md" },
{ "Distroless / chainguard" = "containers/distroless.md" },
{ "Compose dev stacks" = "containers/compose-dev.md" },
] },
{ Kubernetes = [
"kubernetes/index.md",
{ "Deployment baseline" = "kubernetes/deployment-baseline.md" },
{ "Probes done right" = "kubernetes/probes.md" },
{ "HPA / PDB / NetworkPolicy" = "kubernetes/scaling.md" },
{ "RBAC patterns" = "kubernetes/rbac.md" },
{ "Helm chart skeleton" = "kubernetes/helm-skeleton.md" },
] },
{ "API / Backend" = [
"api/index.md",
{ "FastAPI skeleton" = "api/fastapi-skeleton.md" },
{ "Go chi skeleton" = "api/go-chi-skeleton.md" },
{ "RFC 7807 errors" = "api/error-responses.md" },
{ Pagination = "api/pagination.md" },
{ "OpenAPI starter" = "api/openapi.md" },
] },
{ Data = [
"data/index.md",
{ "Postgres conventions" = "data/postgres-conventions.md" },
{ "Postgres indexing" = "data/postgres-indexes.md" },
{ "Alembic skeleton" = "data/alembic-skeleton.md" },
{ "dbt skeleton" = "data/dbt-skeleton.md" },
{ "Airflow DAG skeleton" = "data/airflow-dag.md" },
] },
{ Observability = [
"observability/index.md",
{ "Structured logging" = "observability/structured-logging.md" },
{ OpenTelemetry = "observability/opentelemetry.md" },
{ "Prometheus + RED/USE" = "observability/prometheus.md" },
] },
{ "Repo hygiene" = [
"hygiene/index.md",
{ ".gitignore by stack" = "hygiene/gitignore.md" },
{ ".editorconfig" = "hygiene/editorconfig.md" },
{ "pre-commit configs" = "hygiene/pre-commit.md" },
{ "Makefile patterns" = "hygiene/makefile.md" },
] },
]
# ---------------------------------------------------------------------------
# Theme
# ---------------------------------------------------------------------------
[project.theme]
name = "material"
# "classic" matches Material for MkDocs look-and-feel; "modern" is Zensical's
# new design. Our extra.css targets Material's --md-* variables, so use classic.
# https://zensical.org/docs/setup/basics/#theme-variant
variant = "classic"
language = "en"
favicon = "assets/favicon.ico"
logo = "assets/favicon.svg"
features = [
# Header / announcements
"header.autohide",
"announce.dismiss",
# Navigation
"navigation.instant",
"navigation.instant.prefetch",
"navigation.instant.progress",
"navigation.tracking",
"navigation.tabs",
"navigation.tabs.sticky",
"navigation.sections",
"navigation.indexes",
"navigation.path", # breadcrumbs
"navigation.prune", # only render visible sidebar entries (perf)
"navigation.top",
"navigation.footer",
"toc.follow",
# Search
"search.suggest",
"search.highlight",
"search.share",
# Content
"content.code.copy",
"content.code.annotate",
"content.code.select",
"content.tabs.link",
"content.tooltips",
"content.footnote.tooltips",
"content.action.edit",
"content.action.view",
]
[project.theme.font]
text = "Inter"
code = "JetBrains Mono"
[project.theme.icon]
repo = "fontawesome/brands/github"
edit = "material/pencil"
view = "material/eye"
# Tag identifiers + icons. Add `tags: [terraform, aws]` to a page's
# front-matter to use them. https://zensical.org/docs/setup/tags/
[project.theme.icon.tag]
default = "lucide/hash"
# Section tags (one per nav top-level section)
api = "lucide/plug"
data = "lucide/database"
observability = "lucide/activity"
hygiene = "lucide/sparkles"
# Tool / provider tags
terraform = "fontawesome/brands/hashnode"
terragrunt = "fontawesome/brands/hashnode"
aws = "fontawesome/brands/aws"
gcp = "fontawesome/brands/google"
azure = "fontawesome/brands/microsoft"
github = "fontawesome/brands/github"
github-actions = "fontawesome/brands/github"
docker = "fontawesome/brands/docker"
kubernetes = "simple/kubernetes"
python = "fontawesome/brands/python"
go = "fontawesome/brands/golang"
node = "fontawesome/brands/node-js"
postgres = "simple/postgresql"
fastapi = "simple/fastapi"
prometheus = "simple/prometheus"
opentelemetry = "simple/opentelemetry"
# Custom admonition icons (octicons set, slightly more distinctive than the
# defaults). https://zensical.org/docs/authoring/admonitions/
[project.theme.icon.admonition]
note = "octicons/tag-16"
abstract = "octicons/checklist-16"
info = "octicons/info-16"
tip = "octicons/squirrel-16"
success = "octicons/check-16"
question = "octicons/question-16"
warning = "octicons/alert-16"
failure = "octicons/x-circle-16"
danger = "octicons/zap-16"
bug = "octicons/bug-16"
example = "octicons/beaker-16"
quote = "octicons/quote-16"
# ---- palette: auto / light / dark -----------------------------------------
[[project.theme.palette]]
media = "(prefers-color-scheme)"
toggle.icon = "material/brightness-auto"
toggle.name = "Switch to light mode"
[[project.theme.palette]]
media = "(prefers-color-scheme: light)"
scheme = "default"
primary = "custom"
accent = "custom"
toggle.icon = "material/brightness-7"
toggle.name = "Switch to dark mode"
[[project.theme.palette]]
media = "(prefers-color-scheme: dark)"
scheme = "slate"
primary = "custom"
accent = "custom"
toggle.icon = "material/brightness-4"
toggle.name = "Switch to system preference"
# ---------------------------------------------------------------------------
# Markdown extensions
# Mirrors the canonical default from
# https://zensical.org/docs/setup/extensions/
# ---------------------------------------------------------------------------
[project.markdown_extensions.abbr]
[project.markdown_extensions.admonition]
[project.markdown_extensions.attr_list]
[project.markdown_extensions.def_list]
[project.markdown_extensions.footnotes]
[project.markdown_extensions.md_in_html]
[project.markdown_extensions.tables]
[project.markdown_extensions.toc]
permalink = true
permalink_title = "Anchor link to this section"
[project.markdown_extensions.pymdownx.betterem]
[project.markdown_extensions.pymdownx.caret]
[project.markdown_extensions.pymdownx.details]
[project.markdown_extensions.pymdownx.inlinehilite]
[project.markdown_extensions.pymdownx.keys]
[project.markdown_extensions.pymdownx.mark]
[project.markdown_extensions.pymdownx.smartsymbols]
[project.markdown_extensions.pymdownx.snippets]
[project.markdown_extensions.pymdownx.tilde]
[project.markdown_extensions.pymdownx.emoji]
emoji_index = "zensical.extensions.emoji.twemoji"
emoji_generator = "zensical.extensions.emoji.to_svg"
[project.markdown_extensions.pymdownx.highlight]
anchor_linenums = true
line_spans = "__span"
pygments_lang_class = true
auto_title = false
[project.markdown_extensions.pymdownx.magiclink]
repo_url_shorthand = true
user = "RemoteRabbit"
repo = "boilplate"
[project.markdown_extensions.pymdownx.superfences]
custom_fences = [
{ name = "mermaid", class = "mermaid", format = "pymdownx.superfences.fence_code_format" },
]
[project.markdown_extensions.pymdownx.tabbed]
alternate_style = true
combine_header_slug = true
slugify = { object = "pymdownx.slugs.slugify", kwds = { case = "lower" } }
[project.markdown_extensions.pymdownx.tasklist]
custom_checkbox = true
# Image captions via the blocks extension. Use as: /// caption | Text \n  \n ///
# https://zensical.org/docs/authoring/images/
[project.markdown_extensions.pymdownx.blocks.caption]
# Image lightbox / zoom. Auto-applies to all <img> tags by default.
# https://zensical.org/docs/setup/extensions/glightbox/
[project.markdown_extensions.zensical.extensions.glightbox]
# ---------------------------------------------------------------------------
# Extra
# ---------------------------------------------------------------------------
[project.extra]
generator = false
# ---------------------------------------------------------------------------
# Plugins
# ---------------------------------------------------------------------------
# Offline usage: makes site search work when serving via file:// (downloads,
# air-gapped envs, distributing alongside a product).
# https://zensical.org/docs/setup/offline/
#
# Caveat: features that rely on `fetch` won't work from the file system.
# When *distributing* the build for offline use, also disable
# `navigation.instant*`, repo links, analytics, and comment systems.
[project.plugins.offline]
[[project.extra.social]]
icon = "fontawesome/brands/github"
link = "https://github.com/RemoteRabbit"