You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "srchilukoori (via GitHub)" <gi...@apache.org> on 2026/07/20 16:44:45 UTC
[PR] Add --local-theme flag to breeze build-docs for local theme development [airflow]
srchilukoori opened a new pull request, #70139:
URL: https://github.com/apache/airflow/pull/70139
Add a `--local-theme` flag to `breeze build-docs` that bind-mounts a local
sphinx-airflow-theme directory into the container. This lets developers
iterate on theme changes without publishing a wheel or bumping versions.
Usage:
```bash
breeze build-docs --local-theme ~/airflow-site/sphinx_airflow_theme
```
Follows the existing `--mount-ui-dist` compose overlay pattern: one new
compose file, one ShellParams field, one click option. Default behavior
(no flag) is unchanged; CI never passes `--local-theme`.
This replaces the approach in #65840 (adding sphinx-airflow-theme as a uv
workspace member), which was closed after the reviewer pivoted to a
bind-mount approach.
closes: #45576
related: #65840
## Files changed
| File | Change |
|------|--------|
| `scripts/ci/docker-compose/mount-local-theme.yml` | Compose overlay, mounts `$LOCAL_THEME_PATH` over `/opt/airflow/docs-theme/sphinx_airflow_theme/` |
| `dev/breeze/src/airflow_breeze/utils/path_utils.py` | Path constant |
| `dev/breeze/src/airflow_breeze/commands/common_options.py` | `--local-theme` click option (Path, dir-only, resolve) |
| `dev/breeze/src/airflow_breeze/params/shell_params.py` | Field, compose overlay append, env var |
| `dev/breeze/src/airflow_breeze/commands/developer_commands.py` | Wire through `build_docs` and `_build_python_docs` |
| `dev/breeze/src/airflow_breeze/commands/developer_commands_config.py` | Help grouping |
| `dev/breeze/tests/test_shell_params.py` | 4 test cases (env var + compose overlay) |
| `dev/breeze/doc/images/output_build-docs.*` | Auto-regenerated CLI help |
## Test plan
- [x] `pytest dev/breeze/tests/test_shell_params.py` (20 passed)
- [x] `pytest dev/breeze/tests/test_docker_command_utils.py dev/breeze/tests/test_run_test_args.py` (86 passed)
- [x] `prek run --from-ref upstream/main --stage pre-commit` (all passed)
- [ ] Manual: `breeze build-docs --local-theme <path>` with a local airflow-site checkout
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (Claude)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add --local-theme flag to breeze build-docs for local theme development [airflow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #70139:
URL: https://github.com/apache/airflow/pull/70139#issuecomment-5577195714
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add --local-theme flag to breeze build-docs for local theme development [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #70139:
URL: https://github.com/apache/airflow/pull/70139#issuecomment-5025662779
I think we also need a doc describing the process. It also should run doc build to automatically rebuild changes (The docs build already has this option) and we should make sure that the mounted sphinx_theme files are automatically rebuilt when they are changed in the mounted directory - this should be locally tested if ti works as expected
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add --local-theme flag to breeze build-docs for local theme development [airflow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #70139: Add --local-theme flag to breeze build-docs for local theme development
URL: https://github.com/apache/airflow/pull/70139
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org