-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Add support for tabs (and other UX components) to docs #36041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
An example of using tabs to display both the TaskFlow API and operator-style in the Python how-to doc: Screen.Recording.2023-12-03.at.10.51.52.PM.mov |
BasPH
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be a great addition to the docs! One minor comment
|
Oh.. Fantastic ! :) . And you can also rebase now, after the |
498794d to
41a9a8b
Compare
|
I noticed that when you change tab the URL stays fixed. |
Don't think it's currently possible. Found this PR: executablebooks/sphinx-design#104 but it's still open |
I agree with @BasPH. It's not entirely obvious, but maybe it's possible with the other attributes you can set on each item like |
e2986fd to
7e737f2
Compare
|
The latest and greatest version of the Python operators doc. I ended up splitting the Screen.Recording.2023-12-04.at.7.00.17.PM.mov |
This PR introduces the [`sphinx-design`](https://sphinx-design.readthedocs.io/en/alabaster-theme/index.html) extension which provides numerous UX components such as tabs, cards, and dropdowns for documentation. There are different ways or flavors of implementing or achieving the same result in Airflow whether that be in configuration, DAG authoring, etc. The current documentation explicitly lists these options as they appear which can lead to some lengthy doc pages as well as inconsistency in their presentation. Any the ability to render these different options for as tabs should combat both the verboseness and inconsistencies.
7e737f2 to
ff1eb7a
Compare
(cherry picked from commit 58e264c)
This PR introduces the
sphinx-designextension which provides numerous UX components such as tabs, cards, and dropdowns for documentation.There are different ways or flavors of implementing or achieving the same result in Airflow whether that be in configuration, DAG authoring, etc. The current documentation explicitly lists these options as they appear which can lead to some lengthy doc pages as well as inconsistency in their presentation. Adding the ability to render these different options as tabs should combat both the verboseness and inconsistencies.
Closes: #29267