Fix code block syntax highlighting broken by #1421
PR #1421 replaced `pre span { @extend .monotext--brownish-grey }` with
`pre span { color: var(--bs-body-color) }`, which broke CSS inheritance
for Pygments tokens without explicit class rules — they got
--bs-body-color instead of inheriting from .highlight's theme color.
It also removed .nn (Name.Namespace) from the dark theme.
This commit:
- Removes the blanket `pre span { color }` rule so tokens properly
inherit from `.highlight { color: ... }` via the CSS cascade
- Adds .nn override in both light/dark themes to render namespace
tokens (module paths in imports) as plain text color instead of
keyword-colored, matching how GitHub.com actually renders Python
- Adds explicit `color: #212529` to .highlight in the light theme
for a stable default text color
- Removes duplicate `@import "pygments/dark"` from _rst-content.scss
that produced dead double-nested CSS selectors
- Adds a richer Python code example to the demo playground for testing
This is a repository of Apache Airflow website. The repository of Apache Airflow can be found here.
For more detailed description of directory structure, please refer to contributor's guide.
If you're a Macbook user, first install coreutils.
brew install coreutils
The Docsy theme required for the site to work properly is included as a git submodule.
This means that after you already cloned the repository, you need to update submodules
git submodule update --init --recursive
In order to build the site locally,
<ROOT DIRECTORY>/site.sh build-site.In order to preview landing pages, run script <ROOT DIRECTORY>/site.sh preview-landing-pages.
In order to work with documentation theme, please refer to Sphinx Airflow theme's readme file.
For more detailed description of site.sh capabilities, please refer to contributor's guide.
If you'd like to contribute to the Apache Airflow website project, read our contributor's guide where you can find detailed instructions on how to work with the website.