You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/01/06 02:15:55 UTC
(superset) branch docs-netlify-preview created (now ef460e17f2)
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a change to branch docs-netlify-preview
in repository https://gitbox.apache.org/repos/asf/superset.git
at ef460e17f2 docs: add Netlify configuration for PR deploy previews
This branch includes the following new commits:
new ef460e17f2 docs: add Netlify configuration for PR deploy previews
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(superset) 01/01: docs: add Netlify configuration for PR deploy previews
Posted by ru...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch docs-netlify-preview
in repository https://gitbox.apache.org/repos/asf/superset.git
commit ef460e17f2bdfbb3936c73f815bdc11a378a4619
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Mon Jan 5 18:15:36 2026 -0800
docs: add Netlify configuration for PR deploy previews
Adds netlify.toml to enable automatic deploy previews for documentation
changes. When configured on Netlify, PRs modifying docs/** will get
preview URLs like deploy-preview-123--superset-docs.netlify.app.
This requires a Netlify site to be created and connected to this repo
with deploy previews enabled.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <no...@anthropic.com>
---
docs/netlify.toml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/docs/netlify.toml b/docs/netlify.toml
new file mode 100644
index 0000000000..699d5e24bf
--- /dev/null
+++ b/docs/netlify.toml
@@ -0,0 +1,53 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Netlify configuration for Superset documentation
+# This enables automatic deploy previews for PRs that modify docs
+
+[build]
+ # Base directory is the docs folder
+ base = "docs"
+ # Build command for Docusaurus
+ command = "yarn install && yarn build"
+ # Output directory (relative to base)
+ publish = "build"
+
+[build.environment]
+ # Node version matching docs/.nvmrc
+ NODE_VERSION = "20"
+ # Yarn version
+ YARN_VERSION = "1.22.22"
+
+# Deploy preview settings
+[context.deploy-preview]
+ command = "yarn install && yarn build"
+
+# Branch deploy settings (for feature branches)
+[context.branch-deploy]
+ command = "yarn install && yarn build"
+
+# Redirect /docs to the main docs page
+[[redirects]]
+ from = "/docs"
+ to = "/docs/intro"
+ status = 301
+
+# Handle SPA routing for Docusaurus
+[[redirects]]
+ from = "/*"
+ to = "/index.html"
+ status = 200