-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
28 lines (24 loc) · 987 Bytes
/
Copy pathnetlify.toml
File metadata and controls
28 lines (24 loc) · 987 Bytes
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
# Netlify build config for the docs site at sheaf-serve.dev.
#
# Connect: github.com/korbonits/sheaf → Netlify → "Add new site" → "Import
# from Git". Netlify reads this file; no other dashboard setup needed
# beyond setting the custom domain.
[build]
base = "."
command = "pip install --upgrade uv && uv sync --extra docs && uv run mkdocs build --site-dir _site"
publish = "_site"
[build.environment]
# mkdocstrings + griffe parse the Python source; pin to the version
# the project supports (3.11 is the lower bound — same as CI).
PYTHON_VERSION = "3.11"
# Sensible cache headers for a docs site. Versioned assets (mkdocs-
# material's hashed CSS/JS) can be cached forever; HTML pages should
# revalidate so deploys propagate within a refresh.
[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.html"
[headers.values]
Cache-Control = "public, max-age=0, must-revalidate"