Repository navigation
Build Airflow docs with the theme from this checkout - #1691
Merged
shahar1 merged 2 commits intoOct 24, 2026
Merged
Conversation
potiuk
approved these changes
Oct 18, 2026
potiuk
left a comment
Member
There was a problem hiding this comment.
Nice. Finally a good idea on how to bridge the two together :)
Contributor
Author
Thanks! Could you please also review apache/airflow#75001 ? |
Member
Did. |
1 task done
Checking a theme change on real Airflow documentation meant building a wheel by hand, copying it into an Airflow checkout and installing it in Breeze before building the docs. Add ./site.sh build-airflow-docs, which prepares the theme and runs breeze build-docs --sphinx-airflow-theme-path in an Airflow checkout, and replace the manual steps in the theme README with it. Pull requests that change the theme version also build the Airflow docs with the new theme and upload them as an artifact. The step does not fail the PR, as it depends on the Breeze option being available on apache/airflow main.
prepare-theme and build-airflow-docs only built the landing pages when dist/index.html was missing, so after the first build, edits to SCSS or JS were silently ignored and the old bundle was copied into the theme. Rebuild when any file under landing-pages/src, landing-pages/site/assets or the docsy theme assets is newer than dist/index.html. Only these asset source directories are checked, so unrelated writes under landing-pages (such as the CI profile-image refresh that runs before build-airflow-docs, after node was removed) do not trigger a rebuild.
shahar1
force-pushed
the
build-airflow-docs-with-local-theme
branch
from
October 23, 2026 19:34
63f6ea8 to
3127387
Compare
shahar1
added a commit
to shahar1/airflow
that referenced
this pull request
Oct 24, 2026
apache/airflow-site#1691 makes prepare-theme rebuild the landing pages when their SCSS/JS sources changed, so the note would be wrong once it lands. The recommended command works with old and new site.sh.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See: apache/airflow#45576
AI Summary
Checking a `sphinx_airflow_theme` change on real Airflow documentation meant building a wheel by hand and installing it inside a Breeze shell of an Airflow checkout, and CI only rendered the small demo site../site.sh build-airflow-docs [args]prepares the theme and runsbreeze build-docs --sphinx-airflow-theme-pathin an Airflow checkout (AIRFLOW_REPO, default../airflow; arguments go tobreeze build-docs, defaultapache-airflow).Build docsuploadsapache-airflowdocs built with the PR's theme as theairflow-docs-with-themeartifact for pull requests that change the theme version. The step is informational (continue-on-error).Depends on the apache/airflow PR adding
--sphinx-airflow-theme-path(for apache/airflow#45576); merge that first, otherwise the preview step fails (without failing the PR).Verified locally with Docker against that branch, with
GITHUB_REPOSITORY=apache/airflow-siteas on Actions.Generated-by: Claude Code (Claude Opus 5.5)
🤖 Generated with Claude Code