From 66c7dd262b7a9d3306d478cf9c5df85559bc5fe0 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sat, 4 Apr 2026 22:10:31 -0400 Subject: [PATCH] Add Netlify config for PR preview deployments Enable automatic PR preview builds via Netlify while keeping GitHub Pages as the production deployment for docs.dandiarchive.org. Closes #119 Co-Authored-By: Claude Code 2.1.92 / Claude Opus 4.6 --- netlify.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..2f84088a --- /dev/null +++ b/netlify.toml @@ -0,0 +1,10 @@ +# Netlify configuration for PR preview deployments. +# Production site remains on GitHub Pages (docs.dandiarchive.org). +# Netlify is used ONLY for PR previews — do NOT configure a custom domain here. + +[build] + command = "git submodule update --init && pip install -r requirements.txt && mkdocs build" + publish = "site" + +[build.environment] + PYTHON_VERSION = "3.11"