This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
The following commit(s) were added to refs/heads/main by this push:
new 1b551e3c5e Upgrade Docsy theme to v0.18.1 (#1742)
1b551e3c5e is described below
commit 1b551e3c5e6d970ccd32dc6d63f2c04238d65ac5
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Nov 15 05:41:06 2026 +0100
Upgrade Docsy theme to v0.18.1 (#1742)
Move the landing pages from Docsy 0.12.0 to 0.18.1 (Hugo 0.170, Dart
Sass) while keeping the site looking the same, and fix the problems the
previous attempt (#1443, reverted in #1456) papered over.
- Point the theme at docsy/theme (Docsy moved into a theme/ subfolder)
and the submodule at the new docsy/docsy repository.
- Build CSS with Dart Sass. CI installs it as `dart-sass`, which Hugo
picks before the pure-JS `sass` that `yarn run` puts first on PATH.
Hugo and Dart Sass downloads are checksum-verified.
- Feed our Bootstrap overrides (no link underlines, palette, fonts) in
through Docsy's _variables_project hooks. They used to reach Docsy's
CSS only because our file names collided with Docsy's own.
- Keep fonts self-hosted; Docsy now hard-codes a Google Fonts URL.
- Keep the tango/onedark code highlighting the blog has been using.
- Replace the td/code-dark import that needed a $enable-dark-mode
band-aid, drop the never-used sidebar-tree override (the issue's
"delete it and use upstream"), and remove other legacy partial
copies that newer Hugo would have activated (double main.js load,
different favicons).
- Stop loading jQuery: nothing on the site uses it any more.
- Fix Hugo deprecations (hugo.Data, Language.Label, imaging quality,
HTML content allow-list) so the build has no warnings.
- KaTeX is no longer loaded on posts without math; it was mangling
code blocks on two posts.
closes: #1413
Generated-by: Claude Opus 5
---
.github/workflows/build.yml | 33 ++++++-
.gitmodules | 2 +-
CONTRIBUTE.md | 35 ++++---
Dockerfile | 14 ++-
.../site/assets/scss/_code-highlighting.scss | 38 ++++++++
landing-pages/site/assets/scss/_roadmap.scss | 6 +-
landing-pages/site/assets/scss/_variables.scss | 11 +--
.../site/assets/scss/_variables_project.scss | 25 +++++
.../assets/scss/_variables_project_after_bs.scss | 24 +++++
landing-pages/site/assets/scss/chroma/_dark.scss | 93 ++++++++++++++++++
landing-pages/site/assets/scss/chroma/_light.scss | 108 +++++++++++++++++++++
landing-pages/site/assets/scss/main-custom.scss | 2 +-
landing-pages/site/config.toml | 14 ++-
landing-pages/site/layouts/_default/baseof.html | 2 +-
landing-pages/site/layouts/_partials/favicons.html | 33 +++++++
landing-pages/site/layouts/_partials/head-css.html | 8 +-
landing-pages/site/layouts/_partials/head.html | 4 -
.../site/layouts/_partials/hooks/head-end.html | 2 +-
landing-pages/site/layouts/blog/baseof.html | 2 +-
landing-pages/site/layouts/community/baseof.html | 2 +-
landing-pages/site/layouts/community/list.html | 8 +-
landing-pages/site/layouts/docs/baseof.html | 2 +-
landing-pages/site/layouts/index.html | 2 +-
landing-pages/site/layouts/install/baseof.html | 2 +-
landing-pages/site/layouts/meetups/baseof.html | 2 +-
landing-pages/site/layouts/meetups/list.html | 2 +-
landing-pages/site/layouts/partials/favicons.html | 37 -------
landing-pages/site/layouts/partials/head-css.html | 28 ------
landing-pages/site/layouts/partials/head.html | 43 --------
.../site/layouts/partials/hooks/body-end.html | 23 -----
.../site/layouts/partials/lang-selector.html | 4 +-
landing-pages/site/layouts/partials/navbar.html | 79 ---------------
.../site/layouts/partials/sidebar-tree.html | 69 -------------
.../site/layouts/partials/video-section.html | 6 +-
.../site/layouts/privacy-notice/baseof.html | 2 +-
landing-pages/site/layouts/roadmap/baseof.html | 2 +-
landing-pages/site/layouts/taxonomy/baseof.html | 2 +-
landing-pages/site/layouts/use-cases/baseof.html | 2 +-
landing-pages/site/themes/docsy | 2 +-
site.sh | 8 +-
40 files changed, 436 insertions(+), 347 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e77aefe508..12ed2a26a0 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -77,17 +77,40 @@ jobs:
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 #
v7.1.0
with:
python-version: '3.12'
- - name: ❤️ Install Node 22 LTS
+ - name: ❤️ Install Node 24 LTS
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 #
v7.1.0
with:
- node-version: 22
+ node-version: 24
- name: 📚 Install Hugo
+ # Hugo 0.170 dropped the separate "extended" edition; the standard
+ # archive is the full build. Checksum from hugo_0.170.0_checksums.txt.
run: |
- HUGO_VERSION="0.146.0"
- curl -fsSL
"https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
| sudo tar -xz -C /usr/local/bin hugo
+ HUGO_VERSION="0.170.0"
+
HUGO_SHA256="0930754ec22ad2dd1a252f8c31a5e57faccc9d15f1c3d381ddafcb96eeb8aef0"
+ HUGO_TGZ="hugo_${HUGO_VERSION}_linux-amd64.tar.gz"
+ curl -fsSL -o "/tmp/${HUGO_TGZ}"
"https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_TGZ}"
+ echo "${HUGO_SHA256} /tmp/${HUGO_TGZ}" | shasum -a 256 -c -
+ sudo tar -xzf "/tmp/${HUGO_TGZ}" -C /usr/local/bin hugo
+ hugo version
+ - name: 🎨 Install Dart Sass
+ # Docsy compiles its SCSS with Dart Sass (Hugo's LibSass is
deprecated).
+ # Expose it as `dart-sass`: Hugo looks that name up before `sass`, so
the
+ # pure-JS `sass` that `yarn run` puts first on PATH (node_modules/.bin)
+ # never shadows it. Checksum is the GitHub release asset digest (Dart
+ # Sass publishes no checksums file).
+ run: |
+ DART_SASS_VERSION="1.108.2"
+
DART_SASS_SHA256="32d2eb5b83cbc180fce9657ff3c57401a9006c59eccfe0bfdde0aa755a66d42f"
+ DART_SASS_TGZ="dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz"
+ curl -fsSL -o "/tmp/${DART_SASS_TGZ}"
"https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/${DART_SASS_TGZ}"
+ echo "${DART_SASS_SHA256} /tmp/${DART_SASS_TGZ}" | shasum -a 256 -c
-
+ sudo tar -xzf "/tmp/${DART_SASS_TGZ}" -C /opt
+ printf '#!/bin/sh\nexec /opt/dart-sass/sass "$@"\n' | sudo tee
/usr/local/bin/dart-sass > /dev/null
+ sudo chmod +x /usr/local/bin/dart-sass
+ dart-sass --version
- name: 📦 Install Docsy theme dependencies (Bootstrap & FontAwesome)
working-directory: /mnt/airflow-site/landing-pages/site/themes/docsy
- run: npm install
+ run: npm run install:theme-deps
- name: 🟢 Install node dependencies
run: |
/mnt/airflow-site/site.sh install-node-deps
diff --git a/.gitmodules b/.gitmodules
index eb4cefba81..054022c960 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -17,4 +17,4 @@
[submodule "landing-pages/site/themes/docsy"]
path = landing-pages/site/themes/docsy
- url = https://github.com/google/docsy.git
+ url = https://github.com/docsy/docsy.git
diff --git a/CONTRIBUTE.md b/CONTRIBUTE.md
index 3850fd39d2..7b786e2e28 100644
--- a/CONTRIBUTE.md
+++ b/CONTRIBUTE.md
@@ -84,9 +84,10 @@ The following applications must be installed to use the
project:
* git
* docker (for the shell language linter)
-* Node 22
+* Node 24
* Yarn
-* Hugo >= 0.146.0
+* Hugo >= 0.170.0 (the version used in CI)
+* Dart Sass, available on `PATH` as `dart-sass` (see below)
It is also worth adding SSH keys for the `github.com` server to trusted ones.
It is necessary to clone repositories. You can do this using following command:
```bash
@@ -112,11 +113,11 @@ git config --global user.email '<[email protected]>'
git config --global user.name '<you name>'
```
-To install Node 22, first install the [Node version
manager](https://github.com/nvm-sh/nvm), `nvm`. Then, install Node 22 with
these commands:
+To install Node 24, first install the [Node version
manager](https://github.com/nvm-sh/nvm), `nvm`. Then, install Node 24 with
these commands:
```bash
-nvm install 22
-nvm use 22
+nvm install 24
+nvm use 24
```
To install yarn, run the following command:
@@ -124,14 +125,24 @@ To install yarn, run the following command:
npm install -g yarn
```
-To install hugo on Debian, run the following command:
+Debian's packaged Hugo is usually too old; install the
`hugo_<version>_linux-amd64.deb` package from the
+[Hugo releases page](https://github.com/gohugoio/hugo/releases) instead.
+
+To verify your Hugo version meets the requirement (>= 0.170.0), run:
```bash
-sudo apt install hugo -y
+hugo version
```
-To verify your Hugo version meets the requirement (>= 0.146.0), run:
+**Dart Sass**
+
+The Docsy theme compiles its styles with [Dart
Sass](https://sass-lang.com/dart-sass/). Hugo must find it
+under the name `dart-sass`: the build runs through `yarn`, which puts the
pure-JavaScript `sass` package
+from `node_modules/.bin` first on `PATH`, and Hugo cannot use that one. On
Debian, download the
+`dart-sass-<version>-linux-x64.tar.gz` archive from the [Dart Sass releases
page](https://github.com/sass/dart-sass/releases)
+and link its `sass` script as `dart-sass`; on macOS, after `brew install
sass/sass/sass`, run:
+
```bash
-hugo version
+ln -s "$(brew --prefix)/bin/sass" "$(brew --prefix)/bin/dart-sass"
```
**macOS installation**
@@ -141,12 +152,12 @@ To install git on macOS, install the XCode Command Line
Tools with the following
xcode-select --install
```
-Then, install [Homebrew](https://brew.sh). Once that has completed, you can
install Hugo:
+Then, install [Homebrew](https://brew.sh). Once that has completed, you can
install Hugo and Dart Sass:
```bash
-brew install hugo
+brew install hugo sass/sass/sass
```
-To verify your Hugo version meets the requirement (>= 0.146.0), run:
+To verify your Hugo version meets the requirement (>= 0.170.0), run:
```bash
hugo version
```
diff --git a/Dockerfile b/Dockerfile
index 3351bfed21..001e307bab 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -38,7 +38,7 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
-RUN curl -sL https://deb.nodesource.com/setup_22.x | bash - \
+RUN curl -sL https://deb.nodesource.com/setup_24.x | bash - \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
nodejs \
@@ -59,10 +59,20 @@ RUN curl -sL
"https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
RUN HUGOHOME="$(mktemp -d)" \
&& export HUGOHOME \
- && curl -sL
https://github.com/gohugoio/hugo/releases/download/v0.135.0/hugo_extended_0.135.0_linux-amd64.tar.gz
> "${HUGOHOME}/hugo.tar.gz" \
+ && curl -fsSL
https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_linux-amd64.tar.gz
> "${HUGOHOME}/hugo.tar.gz" \
+ && echo "0930754ec22ad2dd1a252f8c31a5e57faccc9d15f1c3d381ddafcb96eeb8aef0
${HUGOHOME}/hugo.tar.gz" | sha256sum -c - \
&& tar -xzvf "${HUGOHOME}/hugo.tar.gz" hugo \
&& mv hugo /usr/local/bin/hugo \
&& chmod +x /usr/local/bin/hugo \
&& rm -r "${HUGOHOME}"
+# Docsy compiles its SCSS with Dart Sass. Expose it as `dart-sass`, which Hugo
+# looks up before `sass`, so the pure-JS `sass` in node_modules/.bin can't
shadow it.
+RUN curl -fsSL -o /tmp/dart-sass.tar.gz
https://github.com/sass/dart-sass/releases/download/1.108.2/dart-sass-1.108.2-linux-x64.tar.gz
\
+ && echo "32d2eb5b83cbc180fce9657ff3c57401a9006c59eccfe0bfdde0aa755a66d42f
/tmp/dart-sass.tar.gz" | sha256sum -c - \
+ && tar -xzf /tmp/dart-sass.tar.gz -C /opt \
+ && rm /tmp/dart-sass.tar.gz \
+ && printf '#!/bin/sh\nexec /opt/dart-sass/sass "$@"\n' >
/usr/local/bin/dart-sass \
+ && chmod +x /usr/local/bin/dart-sass
+
WORKDIR /opt/site/
diff --git a/landing-pages/site/assets/scss/_code-highlighting.scss
b/landing-pages/site/assets/scss/_code-highlighting.scss
new file mode 100644
index 0000000000..e767d08696
--- /dev/null
+++ b/landing-pages/site/assets/scss/_code-highlighting.scss
@@ -0,0 +1,38 @@
+/**
+ * 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.
+ */
+
+// Chroma (Hugo syntax highlighting) styles for blog markdown code blocks,
+// scoped to the light/dark color mode. main-custom.scss is compiled on its
+// own, outside Docsy's module graph, so Docsy's `td/code-dark` wrapper (which
+// is gated on Bootstrap's $enable-dark-mode) can't be used here. We also keep
+// our own generated tango/onedark styles (chroma/) rather than Docsy's
+// td/chroma ones, which switched to friendly/native in Docsy 0.14.2.
+@use "sass:meta";
+
+[data-bs-theme="light"] {
+ @include meta.load-css("chroma/light");
+}
+
+[data-bs-theme="dark"] {
+ @include meta.load-css("chroma/dark");
+
+ .chroma {
+ background-color: var(--td-pre-bg);
+ }
+}
diff --git a/landing-pages/site/assets/scss/_roadmap.scss
b/landing-pages/site/assets/scss/_roadmap.scss
index 991a84a8d5..bfb2ae217f 100644
--- a/landing-pages/site/assets/scss/_roadmap.scss
+++ b/landing-pages/site/assets/scss/_roadmap.scss
@@ -24,17 +24,17 @@
padding-left: 40px;
}
- .breadcrumb {
+ .td-breadcrumbs__list {
padding-bottom: 0;
margin-bottom: 30px;
}
- .breadcrumb-item {
+ .td-breadcrumbs__item {
a {
@extend .bodytext__medium--brownish-grey;
}
- & + .breadcrumb-item {
+ & + .td-breadcrumbs__item {
padding-left: 4px;
&::before {
diff --git a/landing-pages/site/assets/scss/_variables.scss
b/landing-pages/site/assets/scss/_variables.scss
index 1b022e699c..419cb5e3e7 100644
--- a/landing-pages/site/assets/scss/_variables.scss
+++ b/landing-pages/site/assets/scss/_variables.scss
@@ -75,15 +75,14 @@ $link-hover-decoration: none !default;
// Fonts
-$google_font_name: "Open Sans" !default;
-$google_font_family: "Open+Sans:300,300i,400,400i,700,700i" !default;
-$web-font-path: "/external/css/OpenSans.css";
-$font-awesome-font-name: "Font Awesome 6 Free" !default; // Required by Docsy
v0.6.0+ for Font Awesome 6 compatibility
+$td-google-font-name: "Open Sans" !default;
+$td-google-font-family: "Open+Sans:300,300i,400,400i,700,700i" !default;
+// $td-web-font-path (self-hosted fonts) is set in
_variables_project_after_bs.scss.
$td-fonts-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
@if $td-enable-google-fonts {
- $td-fonts-serif: prepend($td-fonts-serif, "#{$google_font_name}");
+ $td-fonts-serif: prepend($td-fonts-serif, "#{$td-google-font-name}");
}
$font-family-sans-serif: $td-fonts-serif !default;
@@ -99,7 +98,7 @@ $font-weight-normal: 400 !default;
$font-weight-medium: 500 !default;
$font-weight-bold: 700 !default;
-$font-weight-body-text: $font-weight-normal !default;
+$td-font-weight-body-text: $font-weight-normal !default;
$headings-font-weight: $font-weight-medium !default;
// Heading sizes
diff --git a/landing-pages/site/assets/scss/_variables_project.scss
b/landing-pages/site/assets/scss/_variables_project.scss
new file mode 100644
index 0000000000..d884335dba
--- /dev/null
+++ b/landing-pages/site/assets/scss/_variables_project.scss
@@ -0,0 +1,25 @@
+/**
+ * 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.
+ */
+
+// Docsy project hook, imported by Docsy's main stylesheet before Bootstrap.
+// Docsy <= 0.13 imported an unprefixed "variables" partial, which resolved to
+// our _variables.scss and so applied our Bootstrap overrides (link decoration,
+// palette, fonts, heading sizes, ...). Docsy 0.14+ namespaces its internals
+// under td/, so feed our overrides in through the supported hook instead.
+@import "variables";
diff --git a/landing-pages/site/assets/scss/_variables_project_after_bs.scss
b/landing-pages/site/assets/scss/_variables_project_after_bs.scss
new file mode 100644
index 0000000000..ae71d523e3
--- /dev/null
+++ b/landing-pages/site/assets/scss/_variables_project_after_bs.scss
@@ -0,0 +1,24 @@
+/**
+ * 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.
+ */
+
+// Docsy project hook, imported after Docsy's td/variables and Bootstrap.
+// Docsy assigns $td-web-font-path without !default (pointing at Google Fonts),
+// so it can only be overridden here. Keep the web fonts self-hosted: the site
+// must not load fonts from fonts.googleapis.com (privacy).
+$td-web-font-path: "/external/css/OpenSans.css";
diff --git a/landing-pages/site/assets/scss/chroma/_dark.scss
b/landing-pages/site/assets/scss/chroma/_dark.scss
new file mode 100644
index 0000000000..0c43bb98f8
--- /dev/null
+++ b/landing-pages/site/assets/scss/chroma/_dark.scss
@@ -0,0 +1,93 @@
+/**
+ * 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.
+ */
+
+/* Chroma style: onedark (the style Docsy <= 0.14.1 shipped for dark mode) */
+
+/* Generated using: hugo gen chromastyles --style=onedark -- regenerate, do
not edit by hand. */
+/* Background */ .bg { color:#abb2bf;background-color:#282c34; }
+/* PreWrapper */ .chroma {
color:#abb2bf;background-color:#282c34;-webkit-text-size-adjust:none; }
+/* LineLink */ .chroma .lnlinks {
outline:none;text-decoration:none;color:inherit }
+/* LineTableTD */ .chroma .lntd {
vertical-align:top;padding:0;margin:0;border:0; }
+/* LineTable */ .chroma .lntable {
border-spacing:0;padding:0;margin:0;border:0; }
+/* LineHighlight */ .chroma .hl { background-color:#3d4148 }
+/* LineNumbersTable */ .chroma .lnt {
white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0
0.4em 0 0.4em;color:#55595f }
+/* LineNumbers */ .chroma .ln {
white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0
0.4em 0 0.4em;color:#55595f }
+/* Line */ .chroma .line { display:flex; }
+/* Keyword */ .chroma .k { color:#c678dd }
+/* KeywordConstant */ .chroma .kc { color:#e5c07b }
+/* KeywordDeclaration */ .chroma .kd { color:#c678dd }
+/* KeywordNamespace */ .chroma .kn { color:#c678dd }
+/* KeywordPseudo */ .chroma .kp { color:#c678dd }
+/* KeywordReserved */ .chroma .kr { color:#c678dd }
+/* KeywordType */ .chroma .kt { color:#e5c07b }
+/* Name */ .chroma .n { color:#e06c75 }
+/* NameAttribute */ .chroma .na { color:#e06c75 }
+/* NameClass */ .chroma .nc { color:#e5c07b }
+/* NameConstant */ .chroma .no { color:#e06c75 }
+/* NameDecorator */ .chroma .nd { color:#61afef }
+/* NameEntity */ .chroma .ni { color:#e06c75 }
+/* NameException */ .chroma .ne { color:#e06c75 }
+/* NameLabel */ .chroma .nl { color:#e06c75 }
+/* NameNamespace */ .chroma .nn { color:#e06c75 }
+/* NameOther */ .chroma .nx { color:#e06c75 }
+/* NameProperty */ .chroma .py { color:#e06c75 }
+/* NameTag */ .chroma .nt { color:#e06c75 }
+/* NameBuiltin */ .chroma .nb { color:#e5c07b }
+/* NameBuiltinPseudo */ .chroma .bp { color:#e5c07b }
+/* NameVariable */ .chroma .nv { color:#e06c75 }
+/* NameVariableClass */ .chroma .vc { color:#e06c75 }
+/* NameVariableGlobal */ .chroma .vg { color:#e06c75 }
+/* NameVariableInstance */ .chroma .vi { color:#e06c75 }
+/* NameVariableMagic */ .chroma .vm { color:#e06c75 }
+/* NameFunction */ .chroma .nf { color:#61afef;font-weight:bold }
+/* NameFunctionMagic */ .chroma .fm { color:#56b6c2;font-weight:bold }
+/* LiteralString */ .chroma .s { color:#98c379 }
+/* LiteralStringAffix */ .chroma .sa { color:#98c379 }
+/* LiteralStringBacktick */ .chroma .sb { color:#98c379 }
+/* LiteralStringChar */ .chroma .sc { color:#98c379 }
+/* LiteralStringDelimiter */ .chroma .dl { color:#98c379 }
+/* LiteralStringDoc */ .chroma .sd { color:#98c379 }
+/* LiteralStringDouble */ .chroma .s2 { color:#98c379 }
+/* LiteralStringEscape */ .chroma .se { color:#98c379 }
+/* LiteralStringHeredoc */ .chroma .sh { color:#98c379 }
+/* LiteralStringInterpol */ .chroma .si { color:#98c379 }
+/* LiteralStringOther */ .chroma .sx { color:#98c379 }
+/* LiteralStringRegex */ .chroma .sr { color:#98c379 }
+/* LiteralStringSingle */ .chroma .s1 { color:#98c379 }
+/* LiteralStringSymbol */ .chroma .ss { color:#98c379 }
+/* LiteralNumber */ .chroma .m { color:#d19a66 }
+/* LiteralNumberBin */ .chroma .mb { color:#d19a66 }
+/* LiteralNumberFloat */ .chroma .mf { color:#d19a66 }
+/* LiteralNumberHex */ .chroma .mh { color:#d19a66 }
+/* LiteralNumberInteger */ .chroma .mi { color:#d19a66 }
+/* LiteralNumberIntegerLong */ .chroma .il { color:#d19a66 }
+/* LiteralNumberOct */ .chroma .mo { color:#d19a66 }
+/* Operator */ .chroma .o { color:#56b6c2 }
+/* OperatorWord */ .chroma .ow { color:#56b6c2 }
+/* OperatorReserved */ .chroma .or { color:#56b6c2 }
+/* Punctuation */ .chroma .p { color:#abb2bf }
+/* Comment */ .chroma .c { color:#7f848e }
+/* CommentHashbang */ .chroma .ch { color:#7f848e }
+/* CommentMultiline */ .chroma .cm { color:#7f848e }
+/* CommentSingle */ .chroma .c1 { color:#7f848e }
+/* CommentSpecial */ .chroma .cs { color:#7f848e }
+/* CommentPreproc */ .chroma .cp { color:#7f848e }
+/* CommentPreprocFile */ .chroma .cpf { color:#7f848e }
+/* GenericDeleted */ .chroma .gd { color:#e06c75 }
+/* GenericInserted */ .chroma .gi { color:#98c379;font-weight:bold }
diff --git a/landing-pages/site/assets/scss/chroma/_light.scss
b/landing-pages/site/assets/scss/chroma/_light.scss
new file mode 100644
index 0000000000..930e81102f
--- /dev/null
+++ b/landing-pages/site/assets/scss/chroma/_light.scss
@@ -0,0 +1,108 @@
+/**
+ * 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.
+ */
+
+/* Chroma style: tango (the style Docsy <= 0.14.1 shipped for light mode) */
+
+/* Generated using: hugo gen chromastyles --style=tango -- regenerate, do not
edit by hand. */
+/* Background */ .bg { background-color:#f8f8f8; }
+/* PreWrapper */ .chroma {
background-color:#f8f8f8;-webkit-text-size-adjust:none; }
+/* Other */ .chroma .x { color:#000 }
+/* Error */ .chroma .err { color:#a40000 }
+/* LineLink */ .chroma .lnlinks {
outline:none;text-decoration:none;color:inherit }
+/* LineTableTD */ .chroma .lntd {
vertical-align:top;padding:0;margin:0;border:0; }
+/* LineTable */ .chroma .lntable {
border-spacing:0;padding:0;margin:0;border:0; }
+/* LineHighlight */ .chroma .hl { background-color:#dfdfdf }
+/* LineNumbersTable */ .chroma .lnt {
white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0
0.4em 0 0.4em;color:#7f7f7f }
+/* LineNumbers */ .chroma .ln {
white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0
0.4em 0 0.4em;color:#7f7f7f }
+/* Line */ .chroma .line { display:flex; }
+/* Keyword */ .chroma .k { color:#204a87;font-weight:bold }
+/* KeywordConstant */ .chroma .kc { color:#204a87;font-weight:bold }
+/* KeywordDeclaration */ .chroma .kd { color:#204a87;font-weight:bold }
+/* KeywordNamespace */ .chroma .kn { color:#204a87;font-weight:bold }
+/* KeywordPseudo */ .chroma .kp { color:#204a87;font-weight:bold }
+/* KeywordReserved */ .chroma .kr { color:#204a87;font-weight:bold }
+/* KeywordType */ .chroma .kt { color:#204a87;font-weight:bold }
+/* Name */ .chroma .n { color:#000 }
+/* NameAttribute */ .chroma .na { color:#c4a000 }
+/* NameClass */ .chroma .nc { color:#000 }
+/* NameConstant */ .chroma .no { color:#000 }
+/* NameDecorator */ .chroma .nd { color:#5c35cc;font-weight:bold }
+/* NameEntity */ .chroma .ni { color:#ce5c00 }
+/* NameException */ .chroma .ne { color:#c00;font-weight:bold }
+/* NameLabel */ .chroma .nl { color:#f57900 }
+/* NameNamespace */ .chroma .nn { color:#000 }
+/* NameOther */ .chroma .nx { color:#000 }
+/* NameProperty */ .chroma .py { color:#000 }
+/* NameTag */ .chroma .nt { color:#204a87;font-weight:bold }
+/* NameBuiltin */ .chroma .nb { color:#204a87 }
+/* NameBuiltinPseudo */ .chroma .bp { color:#3465a4 }
+/* NameVariable */ .chroma .nv { color:#000 }
+/* NameVariableClass */ .chroma .vc { color:#000 }
+/* NameVariableGlobal */ .chroma .vg { color:#000 }
+/* NameVariableInstance */ .chroma .vi { color:#000 }
+/* NameVariableMagic */ .chroma .vm { color:#000 }
+/* NameFunction */ .chroma .nf { color:#000 }
+/* NameFunctionMagic */ .chroma .fm { color:#000 }
+/* Literal */ .chroma .l { color:#000 }
+/* LiteralDate */ .chroma .ld { color:#000 }
+/* LiteralString */ .chroma .s { color:#4e9a06 }
+/* LiteralStringAffix */ .chroma .sa { color:#4e9a06 }
+/* LiteralStringBacktick */ .chroma .sb { color:#4e9a06 }
+/* LiteralStringChar */ .chroma .sc { color:#4e9a06 }
+/* LiteralStringDelimiter */ .chroma .dl { color:#4e9a06 }
+/* LiteralStringDoc */ .chroma .sd { color:#8f5902;font-style:italic }
+/* LiteralStringDouble */ .chroma .s2 { color:#4e9a06 }
+/* LiteralStringEscape */ .chroma .se { color:#4e9a06 }
+/* LiteralStringHeredoc */ .chroma .sh { color:#4e9a06 }
+/* LiteralStringInterpol */ .chroma .si { color:#4e9a06 }
+/* LiteralStringOther */ .chroma .sx { color:#4e9a06 }
+/* LiteralStringRegex */ .chroma .sr { color:#4e9a06 }
+/* LiteralStringSingle */ .chroma .s1 { color:#4e9a06 }
+/* LiteralStringSymbol */ .chroma .ss { color:#4e9a06 }
+/* LiteralNumber */ .chroma .m { color:#0000cf;font-weight:bold }
+/* LiteralNumberBin */ .chroma .mb { color:#0000cf;font-weight:bold }
+/* LiteralNumberFloat */ .chroma .mf { color:#0000cf;font-weight:bold }
+/* LiteralNumberHex */ .chroma .mh { color:#0000cf;font-weight:bold }
+/* LiteralNumberInteger */ .chroma .mi { color:#0000cf;font-weight:bold }
+/* LiteralNumberIntegerLong */ .chroma .il { color:#0000cf;font-weight:bold }
+/* LiteralNumberOct */ .chroma .mo { color:#0000cf;font-weight:bold }
+/* Operator */ .chroma .o { color:#ce5c00;font-weight:bold }
+/* OperatorWord */ .chroma .ow { color:#204a87;font-weight:bold }
+/* OperatorReserved */ .chroma .or { color:#ce5c00;font-weight:bold }
+/* Punctuation */ .chroma .p { color:#000;font-weight:bold }
+/* Comment */ .chroma .c { color:#8f5902;font-style:italic }
+/* CommentHashbang */ .chroma .ch { color:#8f5902;font-style:italic }
+/* CommentMultiline */ .chroma .cm { color:#8f5902;font-style:italic }
+/* CommentSingle */ .chroma .c1 { color:#8f5902;font-style:italic }
+/* CommentSpecial */ .chroma .cs { color:#8f5902;font-style:italic }
+/* CommentPreproc */ .chroma .cp { color:#8f5902;font-style:italic }
+/* CommentPreprocFile */ .chroma .cpf { color:#8f5902;font-style:italic }
+/* Generic */ .chroma .g { color:#000 }
+/* GenericDeleted */ .chroma .gd { color:#a40000 }
+/* GenericEmph */ .chroma .ge { color:#000;font-style:italic }
+/* GenericError */ .chroma .gr { color:#ef2929 }
+/* GenericHeading */ .chroma .gh { color:#000080;font-weight:bold }
+/* GenericInserted */ .chroma .gi { color:#00a000 }
+/* GenericOutput */ .chroma .go { color:#000;font-style:italic }
+/* GenericPrompt */ .chroma .gp { color:#8f5902 }
+/* GenericStrong */ .chroma .gs { color:#000;font-weight:bold }
+/* GenericSubheading */ .chroma .gu { color:#800080;font-weight:bold }
+/* GenericTraceback */ .chroma .gt { color:#a40000;font-weight:bold }
+/* GenericUnderline */ .chroma .gl { color:#000;text-decoration:underline }
+/* TextWhitespace */ .chroma .w { color:#f8f8f8 }
diff --git a/landing-pages/site/assets/scss/main-custom.scss
b/landing-pages/site/assets/scss/main-custom.scss
index abcc2b2e5b..ff99f5314d 100644
--- a/landing-pages/site/assets/scss/main-custom.scss
+++ b/landing-pages/site/assets/scss/main-custom.scss
@@ -53,7 +53,7 @@
@import "scroll-to-top";
@import "content-drawer";
@import "dropdown";
-@import "td/code-dark"; // Import Docsy Chroma themes for blog markdown code
blocks
+@import "code-highlighting"; // Docsy Chroma themes for blog markdown code
blocks
@import "highlights";
@import "share-social-media";
@import "four-oh-four";
diff --git a/landing-pages/site/config.toml b/landing-pages/site/config.toml
index 8f2535c135..38288d8156 100644
--- a/landing-pages/site/config.toml
+++ b/landing-pages/site/config.toml
@@ -20,7 +20,7 @@ title = "Apache Airflow"
enableRobotsTXT = true
# Hugo allows theme composition (and inheritance). The precedence is from left
to right.
-theme = ["docsy"]
+theme = ["docsy/theme"]
# Will give values to .Lastmod etc.
enableGitInfo = true
@@ -45,8 +45,11 @@ latexDashes = true
# Image processing configuration.
[imaging]
resampleFilter = "CatmullRom"
-quality = 75
anchor = "smart"
+[imaging.jpeg]
+quality = 75
+[imaging.webp]
+quality = 75
[services]
[services.googleAnalytics]
@@ -58,7 +61,7 @@ anchor = "smart"
[languages]
[languages.en]
title = "Apache Airflow"
-languageName ="English"
+label = "English"
# Weight used for sorting.
weight = 1
@@ -182,6 +185,11 @@ toLower = false
tags = "/blog/tags/:slug/"
posts = "/:year/:month/:title/"
+# Recent Hugo versions deny HTML content files by default; several of our pages
+# (e.g. content/en/_index.html) are HTML, so keep only the Org-mode denial.
+[security]
+allowContent = ['! ^text/org$']
+
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
diff --git a/landing-pages/site/layouts/_default/baseof.html
b/landing-pages/site/layouts/_default/baseof.html
index 5dc1d76e49..1615c76c66 100644
--- a/landing-pages/site/layouts/_default/baseof.html
+++ b/landing-pages/site/layouts/_default/baseof.html
@@ -46,7 +46,7 @@
{{ partialCached "footer.html" . }}
{{ partial "scripts.html" . }}
{{/* Load webpack bundle on homepage (confetti, etc.) */}}
-{{ with .Site.Data.webpack }}
+{{ with hugo.Data.webpack }}
<script src="{{ relURL .main.js }}"></script>
{{ end }}
</body>
diff --git a/landing-pages/site/layouts/_partials/favicons.html
b/landing-pages/site/layouts/_partials/favicons.html
new file mode 100644
index 0000000000..46bf8847d7
--- /dev/null
+++ b/landing-pages/site/layouts/_partials/favicons.html
@@ -0,0 +1,33 @@
+{{/*
+ 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.
+*/}}
+{{/* Favicon links for the icons in static/favicons/. Docsy 0.16+ dropped its
+ default favicons partial (it now only links icons found in static/ root),
+ so keep the markup the site has been serving. */ -}}
+
+<!-- Favicons as generated by http://cthedot.de/icongen -->
+<link rel="shortcut icon" href="{{ "favicons/favicon.ico" | relURL }}" >
+<link rel="apple-touch-icon" href="{{ "favicons/apple-touch-icon-180x180.png"
| relURL }}" sizes="180x180">
+<link rel="icon" type="image/png" href="{{ "favicons/favicon-16x16.png" |
relURL }}" sizes="16x16">
+<link rel="icon" type="image/png" href="{{ "favicons/favicon-32x32.png" |
relURL }}" sizes="32x32">
+<link rel="icon" type="image/png" href="{{ "favicons/android-36x36.png" |
relURL }}" sizes="36x36">
+<link rel="icon" type="image/png" href="{{ "favicons/android-48x48.png" |
relURL }}" sizes="48x48">
+<link rel="icon" type="image/png" href="{{ "favicons/android-72x72.png" |
relURL }}" sizes="72x72">
+<link rel="icon" type="image/png" href="{{ "favicons/android-96x96.png" |
relURL }}" sizes="96x96">
+<link rel="icon" type="image/png" href="{{ "favicons/android-144x144.png" |
relURL }}" sizes="144x144">
+<link rel="icon" type="image/png" href="{{ "favicons/android-192x192.png" |
relURL }}" sizes="192x192">
diff --git a/landing-pages/site/layouts/_partials/head-css.html
b/landing-pages/site/layouts/_partials/head-css.html
index 499c6e962b..3be8150711 100644
--- a/landing-pages/site/layouts/_partials/head-css.html
+++ b/landing-pages/site/layouts/_partials/head-css.html
@@ -20,10 +20,10 @@
{{ $scssMain := "scss/main.scss"}}
{{ if hugo.IsServer }}
{{/* Note the missing postCSS. This makes it snappier to develop in Chrome,
but makes it look suboptimal in other browsers. */}}
-{{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" true) }}
+{{ $css := resources.Get $scssMain | toCSS (dict "transpiler" "dartsass"
"enableSourceMap" true "silenceDependencyDeprecations" true) }}
<link href="{{ $css.RelPermalink }}" rel="stylesheet">
{{ else }}
-{{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" false) |
postCSS | minify | fingerprint }}
+{{ $css := resources.Get $scssMain | toCSS (dict "transpiler" "dartsass"
"enableSourceMap" false "silenceDependencyDeprecations" true) | postCSS |
minify | fingerprint }}
<link rel="preload" href="{{ $css.RelPermalink }}" as="style">
<link href="{{ $css.RelPermalink }}" rel="stylesheet" integrity="{{
$css.Data.integrity }}">
{{ end }}
@@ -32,10 +32,10 @@
{{ $scssCustom := "scss/main-custom.scss"}}
{{ $customScssResource := resources.Get $scssCustom }}
{{ if hugo.IsServer }}
-{{ $cssCustom := $customScssResource | toCSS (dict "enableSourceMap" true) |
postCSS }}
+{{ $cssCustom := $customScssResource | toCSS (dict "transpiler" "dartsass"
"enableSourceMap" true "silenceDependencyDeprecations" true
"silenceDeprecations" (slice "import" "global-builtin")) | postCSS }}
<link href="{{ $cssCustom.RelPermalink }}" rel="stylesheet">
{{ else }}
-{{ $cssCustom := $customScssResource | toCSS (dict "enableSourceMap" false) |
postCSS | minify | fingerprint }}
+{{ $cssCustom := $customScssResource | toCSS (dict "transpiler" "dartsass"
"enableSourceMap" false "silenceDependencyDeprecations" true
"silenceDeprecations" (slice "import" "global-builtin")) | postCSS | minify |
fingerprint }}
<link rel="preload" href="{{ $cssCustom.RelPermalink }}" as="style">
<link href="{{ $cssCustom.RelPermalink }}" rel="stylesheet" integrity="{{
$cssCustom.Data.integrity }}">
{{ end }}
diff --git a/landing-pages/site/layouts/_partials/head.html
b/landing-pages/site/layouts/_partials/head.html
index 9fc5a3b070..e9dc15157b 100644
--- a/landing-pages/site/layouts/_partials/head.html
+++ b/landing-pages/site/layouts/_partials/head.html
@@ -35,8 +35,4 @@
{{ template "_internal/google_analytics.html" . }}
{{ end }}
{{ partial "head-css.html" . }}
-<script
- src="/external/js/jquery-3.3.1.min.js"
- integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
- crossorigin="anonymous"></script>
{{ partial "hooks/head-end.html" . }}
diff --git a/landing-pages/site/layouts/_partials/hooks/head-end.html
b/landing-pages/site/layouts/_partials/hooks/head-end.html
index ab2839eca4..cf5aa15647 100644
--- a/landing-pages/site/layouts/_partials/hooks/head-end.html
+++ b/landing-pages/site/layouts/_partials/hooks/head-end.html
@@ -37,7 +37,7 @@
</script>
<!-- End Matomo Code -->
-{{ with .Site.Data.webpack }}
+{{ with hugo.Data.webpack }}
<link rel="preload" href="{{ relURL .main.js }}" as="script">
<link rel="preload" href="{{ relURL .header.js }}" as="script">
{{ $vendorsHeader := index . "vendors~header" }}
diff --git a/landing-pages/site/layouts/blog/baseof.html
b/landing-pages/site/layouts/blog/baseof.html
index eefd3832fc..fe326481a1 100644
--- a/landing-pages/site/layouts/blog/baseof.html
+++ b/landing-pages/site/layouts/blog/baseof.html
@@ -45,7 +45,7 @@
{{ partialCached "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
-{{ $script := .Site.Data.webpack.main }}
+{{ $script := hugo.Data.webpack.main }}
{{ with $script.js }}
<script src="{{ relURL . }}"></script>
{{ end }}
diff --git a/landing-pages/site/layouts/community/baseof.html
b/landing-pages/site/layouts/community/baseof.html
index c001b3d041..a1204c45da 100644
--- a/landing-pages/site/layouts/community/baseof.html
+++ b/landing-pages/site/layouts/community/baseof.html
@@ -45,7 +45,7 @@
{{ partialCached "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
-{{ $script := .Site.Data.webpack.main }}
+{{ $script := hugo.Data.webpack.main }}
{{ with $script.js }}
<script src="{{ relURL . }}"></script>
{{ end }}
diff --git a/landing-pages/site/layouts/community/list.html
b/landing-pages/site/layouts/community/list.html
index 30c561eafb..1e94419fdc 100644
--- a/landing-pages/site/layouts/community/list.html
+++ b/landing-pages/site/layouts/community/list.html
@@ -46,7 +46,7 @@
<div class="section" id="project-management-committee">
<h2 class="community--committers-header
large-margin">Project Management Committee</h2>
<div id="pmc-container" class="list-items">
- {{ range .Site.Data.pmc }}
+ {{ range hugo.Data.pmc }}
<div class="list-item">
{{ partial "boxes/committer" . }}
</div>
@@ -59,7 +59,7 @@
<div class="section" id="committers">
<h2
class="community--committers-header">Committers</h2>
<div id="committers-container" class="list-items">
- {{ range .Site.Data.committers }}
+ {{ range hugo.Data.committers }}
<div class="list-item">
{{ partial "boxes/committer" . }}
</div>
@@ -110,7 +110,7 @@
<div class="section">
<h2 class="community--committers-header large-margin">Project
Management Committee</h2>
<div id="pmc-container-no-desktop" class="list-items">
- {{ range .Site.Data.pmc }}
+ {{ range hugo.Data.pmc }}
<div class="list-item">
{{ partial "boxes/committer" . }}
</div>
@@ -123,7 +123,7 @@
<div class="section">
<h2 class="community--committers-header">Committers</h2>
<div id="committers-container-no-desktop" class="list-items">
- {{ range .Site.Data.committers }}
+ {{ range hugo.Data.committers }}
<div class="list-item">
{{ partial "boxes/committer" . }}
</div>
diff --git a/landing-pages/site/layouts/docs/baseof.html
b/landing-pages/site/layouts/docs/baseof.html
index 6834b97aa6..bb0250441f 100644
--- a/landing-pages/site/layouts/docs/baseof.html
+++ b/landing-pages/site/layouts/docs/baseof.html
@@ -46,7 +46,7 @@
{{ partialCached "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
-{{ $script := .Site.Data.webpack.main }}
+{{ $script := hugo.Data.webpack.main }}
{{ with $script.js }}
<script src="{{ relURL . }}"></script>
{{ end }}
diff --git a/landing-pages/site/layouts/index.html
b/landing-pages/site/layouts/index.html
index 5c5ea75aaf..a6c529cf55 100644
--- a/landing-pages/site/layouts/index.html
+++ b/landing-pages/site/layouts/index.html
@@ -78,7 +78,7 @@
</button>
</form>
<div id="integrations-container" class="list-items">
- {{ range $elem_index, $elem_val := (.Site.Data.integrations) }}
+ {{ range $elem_index, $elem_val := (hugo.Data.integrations) }}
{{ if lt $elem_index 8 }}
<a class="list-item" href="{{ $elem_val.url }}">
{{ partial "boxes/integration" $elem_val }}
diff --git a/landing-pages/site/layouts/install/baseof.html
b/landing-pages/site/layouts/install/baseof.html
index 8333c0733f..fb8ab1084c 100644
--- a/landing-pages/site/layouts/install/baseof.html
+++ b/landing-pages/site/layouts/install/baseof.html
@@ -44,7 +44,7 @@
{{ partialCached "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
-{{ $script := .Site.Data.webpack.main }}
+{{ $script := hugo.Data.webpack.main }}
{{ with $script.js }}
<script src="{{ relURL . }}"></script>
{{ end }}
diff --git a/landing-pages/site/layouts/meetups/baseof.html
b/landing-pages/site/layouts/meetups/baseof.html
index eefd3832fc..fe326481a1 100644
--- a/landing-pages/site/layouts/meetups/baseof.html
+++ b/landing-pages/site/layouts/meetups/baseof.html
@@ -45,7 +45,7 @@
{{ partialCached "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
-{{ $script := .Site.Data.webpack.main }}
+{{ $script := hugo.Data.webpack.main }}
{{ with $script.js }}
<script src="{{ relURL . }}"></script>
{{ end }}
diff --git a/landing-pages/site/layouts/meetups/list.html
b/landing-pages/site/layouts/meetups/list.html
index 81f88c5332..367f18483f 100644
--- a/landing-pages/site/layouts/meetups/list.html
+++ b/landing-pages/site/layouts/meetups/list.html
@@ -49,7 +49,7 @@ under the License.
</button>
</div>
<div id="events-container" class="list-items">
- {{ range .Site.Data.meetups }}
+ {{ range hugo.Data.meetups }}
<div class="list-item">
{{ partial "boxes/event" . }}
</div>
diff --git a/landing-pages/site/layouts/partials/favicons.html
b/landing-pages/site/layouts/partials/favicons.html
deleted file mode 100644
index 23343f2d85..0000000000
--- a/landing-pages/site/layouts/partials/favicons.html
+++ /dev/null
@@ -1,37 +0,0 @@
-{{/*
- 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.
-*/}}
-
-<link rel="icon" type="image/svg+xml" href="{{ "/favicons/favicon.svg" |
relURL }}">
-<link rel="apple-touch-icon" sizes="57x57" href="{{
"/favicons/apple-icon-57x57.png" | relURL }}">
-<link rel="apple-touch-icon" sizes="60x60" href="{{
"/favicons/apple-icon-60x60.png" | relURL }}">
-<link rel="apple-touch-icon" sizes="72x72" href="{{
"/favicons/apple-icon-72x72.png" | relURL }}">
-<link rel="apple-touch-icon" sizes="76x76" href="{{
"/favicons/apple-icon-76x76.png" | relURL }}">
-<link rel="apple-touch-icon" sizes="114x114" href="{{
"/favicons/apple-icon-114x114.png" | relURL }}">
-<link rel="apple-touch-icon" sizes="120x120" href="{{
"/favicons/apple-icon-120x120.png" | relURL }}">
-<link rel="apple-touch-icon" sizes="144x144" href="{{
"/favicons/apple-icon-144x144.png" | relURL }}">
-<link rel="apple-touch-icon" sizes="152x152" href="{{
"/favicons/apple-icon-152x152.png" | relURL }}">
-<link rel="apple-touch-icon" sizes="180x180" href="{{
"/favicons/apple-icon-180x180.png" | relURL }}">
-<link rel="icon" type="image/png" sizes="192x192" href="{{
"/favicons/android-icon-192x192.png" | relURL }}">
-<link rel="icon" type="image/png" sizes="32x32" href="{{
"/favicons/favicon-32x32.png" | relURL }}">
-<link rel="icon" type="image/png" sizes="96x96" href="{{
"/favicons/favicon-96x96.png" | relURL }}">
-<link rel="icon" type="image/png" sizes="16x16" href="{{
"/favicons/favicon-16x16.png" | relURL }}">
-<link rel="manifest" href="{{ "/manifest.json" | relURL }}">
-<meta name="msapplication-TileColor" content="#ffffff">
-<meta name="msapplication-TileImage" content="{{
"/favicons/ms-icon-144x144.png" | relURL }}">
-<meta name="theme-color" content="#ffffff">
diff --git a/landing-pages/site/layouts/partials/head-css.html
b/landing-pages/site/layouts/partials/head-css.html
deleted file mode 100644
index 738714bdc7..0000000000
--- a/landing-pages/site/layouts/partials/head-css.html
+++ /dev/null
@@ -1,28 +0,0 @@
-{{/*
- 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.
-*/}}
-{{ $scssMain := "scss/main.scss"}}
-{{ if hugo.IsServer }}
-{{/* Note the missing postCSS. This makes it snappier to develop in Chrome,
but makes it look suboptimal in other browsers. */}}
-{{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" true) }}
-<link href="{{ $css.RelPermalink }}" rel="stylesheet">
-{{ else }}
-{{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" false) |
postCSS | minify | fingerprint }}
-<link rel="preload" href="{{ $css.RelPermalink }}" as="style">
-<link href="{{ $css.RelPermalink }}" rel="stylesheet" integrity="{{
$css.Data.integrity }}">
-{{ end }}
diff --git a/landing-pages/site/layouts/partials/head.html
b/landing-pages/site/layouts/partials/head.html
deleted file mode 100644
index e4413d8419..0000000000
--- a/landing-pages/site/layouts/partials/head.html
+++ /dev/null
@@ -1,43 +0,0 @@
-{{/*
- 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.
-*/}}
-
-<meta charset="{{ .Site.Params.charset }}">
-<meta name="viewport" content="width=device-width, initial-scale=1,
shrink-to-fit=no">
-{{ hugo.Generator }}
-{{ if eq (getenv "HUGO_ENV") "production" }}
-<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
-{{ else }}
-<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
-{{ end }}
-{{ range .AlternativeOutputFormats -}}
-<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink |
safeURL }}">
-{{ end -}}
-{{ partialCached "favicons.html" . }}
-<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} |
{{ end }}{{ .Site.Title }}{{ end }}</title>
-{{- template "_internal/opengraph.html" . -}}
-{{- template "_internal/schema.html" . -}}
-{{ if eq (getenv "HUGO_ENV") "production" }}
-{{ template "_internal/google_analytics.html" . }}
-{{ end }}
-{{ partialCached "head-css.html" . "asdf" }}
-<script
- src="/external/js/jquery-3.3.1.min.js"
- integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
- crossorigin="anonymous"></script>
-{{ partial "hooks/head-end.html" . }}
diff --git a/landing-pages/site/layouts/partials/hooks/body-end.html
b/landing-pages/site/layouts/partials/hooks/body-end.html
deleted file mode 100644
index e783767480..0000000000
--- a/landing-pages/site/layouts/partials/hooks/body-end.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{{/*
- 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.
-*/}}
-
-{{/* Include webpack-generated main.js for confetti animation and other
features */}}
-{{ with .Site.Data.webpack }}
- <script src="{{ relURL .main.js }}"></script>
-{{ end }}
diff --git a/landing-pages/site/layouts/partials/lang-selector.html
b/landing-pages/site/layouts/partials/lang-selector.html
index b50cbceabd..7a3bb9f97d 100644
--- a/landing-pages/site/layouts/partials/lang-selector.html
+++ b/landing-pages/site/layouts/partials/lang-selector.html
@@ -19,10 +19,10 @@
{{ $langPage := cond (gt (len .Translations) 0) . .Site.Home }}
<a class="dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <span>{{ $langPage.Language.LanguageName }}</span>
+ <span>{{ $langPage.Language.Label }}</span>
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
{{ range $langPage.Translations }}
- <a class="dropdown-item" href="{{ .RelPermalink }}">{{
.Language.LanguageName }}</a>
+ <a class="dropdown-item" href="{{ .RelPermalink }}">{{ .Language.Label
}}</a>
{{ end }}
</div>
diff --git a/landing-pages/site/layouts/partials/navbar.html
b/landing-pages/site/layouts/partials/navbar.html
deleted file mode 100644
index 401c00b9b2..0000000000
--- a/landing-pages/site/layouts/partials/navbar.html
+++ /dev/null
@@ -1,79 +0,0 @@
-{{/*
- 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.
-*/}}
-
-{{ $cover := .HasShortcode "blocks/cover" }}
-<nav class="js-navbar-scroll navbar" aria-label="Main navigation">
-
- <div class="navbar__icon-container">
- <a href="{{ .Site.Home.RelPermalink }}" aria-label="Apache Airflow
home">
- {{ with resources.Get "icons/airflow-logo.svg" }}{{ .Content |
safeHTML }}{{ end }}
- </a>
- </div>
- <div class="desktop-only navbar__menu-container">
- {{ template "menu-content" . }}
- </div>
- {{ if .Site.Params.ui.showLightDarkModeMenu -}}
- <div class="navbar__theme-toggle">
- {{ partial "theme-toggler" . }}
- </div>
- {{ end -}}
- <div class="no-desktop navbar__drawer-container">
- <button class="navbar__toggle-button" id="navbar-toggle-button"
aria-label="Open navigation menu" aria-expanded="false"
aria-controls="navbar-drawer">
- {{ with resources.Get "icons/hamburger-icon.svg" }}
- <div id="hamburger-icon" class="navbar__toggle-button--icon
visible">
- {{ .Content | safeHTML }}
- </div>
- {{ end }}
- {{ with resources.Get "icons/close-icon.svg" }}
- <div id="close-icon" class="navbar__toggle-button--icon">
- {{ .Content | safeHTML }}
- </div>
- {{ end }}
- </button>
- <div class="navbar__drawer" id="navbar-drawer">{{ template
"menu-content" . }}</div>
- </div>
-</nav>
-
-{{ define "menu-content" }}
- <div class="navbar__menu-content" id="main_navbar">
- {{ $p := . }}
- {{ $menusLen := len .Site.Menus.main }}
- <div class="navbar__links-container">
- {{ range $index, $el := .Site.Menus.main }}
- {{ $active := or ($p.IsMenuCurrent "main" $el)
($p.HasMenuCurrent "main" $el) }}
- {{ with $el.Page }}
- {{ $active = or $active ( $.IsDescendant .) }}
- {{ end }}
- {{ if and (eq $el.Name "Blog") (strings.HasPrefix
$.RelPermalink "/blog/") }}
- {{ $active = true }}
- {{ end }}
- {{ if and (eq $el.Name "Blog") (strings.HasPrefix
$.RelPermalink "/blog/airflow-survey-2025/") }}
- {{ $active = false }}
- {{ end }}
- {{ $url := urls.Parse $el.URL }}
- {{ $baseurl := urls.Parse $.Site.Params.Baseurl }}
- <a class="navbar__text-link {{if $active }}active{{end}}"
- href="{{ with $el.Page }}{{ .RelPermalink }}{{ else }}{{
$el.URL | relLangURL }}{{ end }}"
- {{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end
}}>
- {{ $el.Name }}
- </a>
- {{ end }}
- </div>
- </div>
-{{ end }}
diff --git a/landing-pages/site/layouts/partials/sidebar-tree.html
b/landing-pages/site/layouts/partials/sidebar-tree.html
deleted file mode 100644
index 5d8217a12f..0000000000
--- a/landing-pages/site/layouts/partials/sidebar-tree.html
+++ /dev/null
@@ -1,69 +0,0 @@
-{{/*
- 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.
-*/}}
-
-{{/* We cache this partial for bigger sites and set the active class client
side. */}}
-<div id="td-sidebar-menu" class="td-sidebar__inner">
- <nav class="collapse show td-sidebar-nav pt-2 pl-4" id="td-section-nav">
- {{ $rootPage := . }}
- {{ $firstSection := .FirstSection }}
- {{ $pages := where (union $firstSection.Pages
$firstSection.Sections).ByWeight ".Params.toc_hide" "!=" true }}
- {{ $pages := $pages | first 50 }}
- {{ $url := .Permalink}}
- {{ range $pages }}
- {{ if .IsPage }}
- {{ $mid := printf "m-%s" (.RelPermalink | anchorize) }}
- {{ $active := eq .Permalink $url }}
- <a class="td-sidebar-link td-sidebar-link__page {{ if $active
}} active{{ end }}"
- id="{{ $mid }}" href="{{ .RelPermalink }}">{{ .LinkTitle
}}</a>
- {{ else }}
- {{ template "section-tree-nav-section" (dict "page" $rootPage
"section" .) }}
- {{ end }}
- {{ end }}
- </nav>
-</div>
-{{ define "section-tree-nav-section" }}
- {{ $s := .section }}
- {{ $p := .page }}
- {{ $currentSection := eq $p.CurrentSection $s }}
- {{ $active := eq $p.Permalink $s.Permalink }}
- {{ $show := or (and (not $p.Site.Params.ui.sidebar_menu_compact)
($p.IsAncestor $s)) ($p.IsDescendant $s) }}
- {{ $sid := $s.RelPermalink | anchorize }}
- <ul class="td-sidebar-nav__section{{ if $currentSection }}
current-section{{ end }}">
- <li class="td-sidebar-nav__section-title">
- <a href="{{ $s.RelPermalink }}"
- class="align-left pl-0 pr-2{{ if not $show }} collapsed{{ end
}}{{ if $active}} active{{ end }} td-sidebar-link td-sidebar-link__section">{{
$s.LinkTitle }}</a>
- </li>
- <ul>
- <li class="{{ if $show }}show{{ end }}" id="{{ $sid }}">
- {{ $pages := where (union $s.Pages $s.Sections).ByWeight
".Params.toc_hide" "!=" true }}
- {{ $pages := $pages | first 50 }}
- {{ range $pages }}
- {{ if .IsPage }}
- {{ $mid := printf "m-%s" (.RelPermalink | anchorize) }}
- {{ $active := eq . $p }}
- <a class="td-sidebar-link td-sidebar-link__page {{ if
$active }} active{{ end }}"
- id="{{ $mid }}" href="{{ .RelPermalink }}">{{
.LinkTitle }}</a>
- {{ else }}
- {{ template "section-tree-nav-section" (dict "page" $p
"section" .) }}
- {{ end }}
- {{ end }}
- </li>
- </ul>
- </ul>
-{{ end }}
diff --git a/landing-pages/site/layouts/partials/video-section.html
b/landing-pages/site/layouts/partials/video-section.html
index ae868895b8..3f5c683cc9 100644
--- a/landing-pages/site/layouts/partials/video-section.html
+++ b/landing-pages/site/layouts/partials/video-section.html
@@ -19,7 +19,7 @@
<div class="video-section">
<div class="video-wrapper">
- {{ range sort .Site.Data.videos "date" }}
+ {{ range sort hugo.Data.videos "date" }}
<a id="{{ .videoID }}" class="anchor"></a>
<div class="video-container">
{{ partial "youtube" (dict "videoID" .videoID) }}
@@ -28,8 +28,8 @@
</div>
<div class="video-list-wrapper">
<div class="video-list">
- {{ $videosLen := len .Site.Data.videos }}
- {{ range $i, $e := sort .Site.Data.videos "date" }}
+ {{ $videosLen := len hugo.Data.videos }}
+ {{ range $i, $e := sort hugo.Data.videos "date" }}
<a href="#{{ $e.videoID }}" class="video-list__item">
<div class="video-list__item--icon-container">
{{ with resources.Get "icons/play-icon.svg" }}
diff --git a/landing-pages/site/layouts/privacy-notice/baseof.html
b/landing-pages/site/layouts/privacy-notice/baseof.html
index 6ddd5556de..8a3e22e9fc 100644
--- a/landing-pages/site/layouts/privacy-notice/baseof.html
+++ b/landing-pages/site/layouts/privacy-notice/baseof.html
@@ -45,7 +45,7 @@
{{ partialCached "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
-{{ $script := .Site.Data.webpack.main }}
+{{ $script := hugo.Data.webpack.main }}
{{ with $script.js }}
<script src="{{ relURL . }}"></script>
{{ end }}
diff --git a/landing-pages/site/layouts/roadmap/baseof.html
b/landing-pages/site/layouts/roadmap/baseof.html
index 5b52e0a901..4cf688985a 100644
--- a/landing-pages/site/layouts/roadmap/baseof.html
+++ b/landing-pages/site/layouts/roadmap/baseof.html
@@ -78,7 +78,7 @@
{{ partialCached "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
-{{ $script := .Site.Data.webpack.main }}
+{{ $script := hugo.Data.webpack.main }}
{{ with $script.js }}
<script src="{{ relURL . }}"></script>
{{ end }}
diff --git a/landing-pages/site/layouts/taxonomy/baseof.html
b/landing-pages/site/layouts/taxonomy/baseof.html
index eefd3832fc..fe326481a1 100644
--- a/landing-pages/site/layouts/taxonomy/baseof.html
+++ b/landing-pages/site/layouts/taxonomy/baseof.html
@@ -45,7 +45,7 @@
{{ partialCached "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
-{{ $script := .Site.Data.webpack.main }}
+{{ $script := hugo.Data.webpack.main }}
{{ with $script.js }}
<script src="{{ relURL . }}"></script>
{{ end }}
diff --git a/landing-pages/site/layouts/use-cases/baseof.html
b/landing-pages/site/layouts/use-cases/baseof.html
index eefd3832fc..fe326481a1 100644
--- a/landing-pages/site/layouts/use-cases/baseof.html
+++ b/landing-pages/site/layouts/use-cases/baseof.html
@@ -45,7 +45,7 @@
{{ partialCached "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
-{{ $script := .Site.Data.webpack.main }}
+{{ $script := hugo.Data.webpack.main }}
{{ with $script.js }}
<script src="{{ relURL . }}"></script>
{{ end }}
diff --git a/landing-pages/site/themes/docsy b/landing-pages/site/themes/docsy
index ace4e37cee..9cb7b33d27 160000
--- a/landing-pages/site/themes/docsy
+++ b/landing-pages/site/themes/docsy
@@ -1 +1 @@
-Subproject commit ace4e37ceedcec9c48d329adb1128201061ef23d
+Subproject commit 9cb7b33d270c5e340499652dfec55037f96782a7
diff --git a/site.sh b/site.sh
index 7ecbfb0ed7..0853794066 100755
--- a/site.sh
+++ b/site.sh
@@ -59,9 +59,9 @@ function ensure_node_module_exists {
function ensure_docsy_theme_deps_exists {
log "Checking if Docsy theme dependencies exist"
- if [[ ! -d ${MY_DIR}/landing-pages/site/themes/docsy/node_modules/ ]] ;
then
+ if [[ ! -d ${MY_DIR}/landing-pages/site/themes/docsy/theme/node_modules/
]] ; then
log "Missing Docsy theme dependencies (Bootstrap & FontAwesome). Start
installation."
- run_command "${MY_DIR}/landing-pages/site/themes/docsy/" npm install
+ run_command "${MY_DIR}/landing-pages/site/themes/docsy/" npm run
install:theme-deps
log "Docsy theme dependencies installed."
fi
}
@@ -71,7 +71,7 @@ function ensure_that_website_is_build {
log "Check if ${index} exists and is newer than its SCSS/JS sources"
if [[ ! -f ${index} ]] || [[ -n $(find "${MY_DIR}/landing-pages/src" \
"${MY_DIR}/landing-pages/site/assets" \
- "${MY_DIR}/landing-pages/site/themes/docsy/assets" \
+ "${MY_DIR}/landing-pages/site/themes/docsy/theme/assets" \
-type f -newer "${index}" -print -quit) ]] ; then
log "The website is not built or out of date. Start building."
run_command "${MY_DIR}/landing-pages/" yarn run build
@@ -235,7 +235,7 @@ shift
if [[ "${CMD}" == "install-node-deps" ]] ; then
npm install --global yarn
run_command "${MY_DIR}/landing-pages/" yarn install
- run_command "${MY_DIR}/landing-pages/site/themes/docsy/" npm install
+ run_command "${MY_DIR}/landing-pages/site/themes/docsy/" npm run
install:theme-deps
elif [[ "${CMD}" == "preview-landing-pages" ]]; then
ensure_node_module_exists
ensure_docsy_theme_deps_exists