This is an automated email from the ASF dual-hosted git repository.
gopidesu pushed a commit to branch move-js-fonts-to-static
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
The following commit(s) were added to refs/heads/move-js-fonts-to-static by
this push:
new 2e8caa89d5 Move js/fonts to static location
2e8caa89d5 is described below
commit 2e8caa89d53b4ac884a045bf1ad1e96c6a3c59ed
Author: Pavan Kumar <[email protected]>
AuthorDate: Sun Jan 19 14:22:31 2025 +0000
Move js/fonts to static location
---
landing-pages/site/assets/scss/main-custom.scss | 6 +++---
landing-pages/site/layouts/_default/baseof.html | 2 +-
landing-pages/site/layouts/blog/baseof.html | 2 +-
landing-pages/site/layouts/community/baseof.html | 2 +-
landing-pages/site/layouts/docs/baseof.html | 2 +-
landing-pages/site/layouts/install/baseof.html | 2 +-
landing-pages/site/layouts/meetups/baseof.html | 2 +-
landing-pages/site/layouts/partials/scripts.html | 14 ++++++++++++++
landing-pages/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 +-
...en+Sans:300,300i,400,400i,700,700i.css => OpenSans.css} | 0
...Roboto:400,400i,500,700&display=swap.css => Roboto.css} | 0
...Roboto+Mono:400,700&display=swap.css => RobotoMono.css} | 0
.../static/css/{Rubik:500&display=swap.css => Rubik.css} | 0
landing-pages/site/static/js/4.1.3-bootstrap.min.js | 7 -------
.../js/stackpath.bootstrapcdn.com-4.1.3-bootstrap.min.js | 2 +-
18 files changed, 28 insertions(+), 21 deletions(-)
diff --git a/landing-pages/site/assets/scss/main-custom.scss
b/landing-pages/site/assets/scss/main-custom.scss
index f154929f4e..ba92eef45a 100644
--- a/landing-pages/site/assets/scss/main-custom.scss
+++ b/landing-pages/site/assets/scss/main-custom.scss
@@ -17,9 +17,9 @@
* under the License.
*/
-@import url('/css/Rubik:500&display=swap.css');
-@import url('/css/Roboto:400,400i,500,700&display=swap.css');
-@import url('/css/Roboto+Mono:400,700&display=swap.css');
+@import url('/css/Rubik.css');
+@import url('/css/Roboto.css');
+@import url('/css/RobotoMono.css');
@import "typography";
@import "accordion";
diff --git a/landing-pages/site/layouts/_default/baseof.html
b/landing-pages/site/layouts/_default/baseof.html
index 0dffd856ae..8858e75f7c 100644
--- a/landing-pages/site/layouts/_default/baseof.html
+++ b/landing-pages/site/layouts/_default/baseof.html
@@ -36,7 +36,7 @@
</div>
</div>
{{ partialCached "footer.html" . }}
-{{ partialCached "scripts.html" . }}
+{{ partial "scripts.html" . }}
</body>
{{ with .Site.Data.webpack }}
<script src="{{ relURL .main.js }}"></script>
diff --git a/landing-pages/site/layouts/blog/baseof.html
b/landing-pages/site/layouts/blog/baseof.html
index 817539281a..8466877599 100644
--- a/landing-pages/site/layouts/blog/baseof.html
+++ b/landing-pages/site/layouts/blog/baseof.html
@@ -35,7 +35,7 @@
</div>
</div>
{{ partialCached "footer.html" . }}
-{{ partialCached "scripts.html" . }}
+{{ partial "scripts.html" . }}
</body>
{{ $script := .Site.Data.webpack.main }}
{{ with $script.js }}
diff --git a/landing-pages/site/layouts/community/baseof.html
b/landing-pages/site/layouts/community/baseof.html
index ac197b3af2..6814d9bd5a 100644
--- a/landing-pages/site/layouts/community/baseof.html
+++ b/landing-pages/site/layouts/community/baseof.html
@@ -35,7 +35,7 @@
</div>
</div>
{{ partialCached "footer.html" . }}
-{{ partialCached "scripts.html" . }}
+{{ partial "scripts.html" . }}
</body>
{{ $script := .Site.Data.webpack.main }}
{{ with $script.js }}
diff --git a/landing-pages/site/layouts/docs/baseof.html
b/landing-pages/site/layouts/docs/baseof.html
index caaecb748a..5742a85d16 100644
--- a/landing-pages/site/layouts/docs/baseof.html
+++ b/landing-pages/site/layouts/docs/baseof.html
@@ -35,7 +35,7 @@
{{ partial "suggest-change" . }}
</div>
{{ partialCached "footer.html" . }}
-{{ partialCached "scripts.html" . }}
+{{ partial "scripts.html" . }}
</body>
{{ $script := .Site.Data.webpack.main }}
{{ with $script.js }}
diff --git a/landing-pages/site/layouts/install/baseof.html
b/landing-pages/site/layouts/install/baseof.html
index 8c03b1934d..7f46604fb7 100644
--- a/landing-pages/site/layouts/install/baseof.html
+++ b/landing-pages/site/layouts/install/baseof.html
@@ -35,7 +35,7 @@
</div>
</div>
{{ partialCached "footer.html" . }}
-{{ partialCached "scripts.html" . }}
+{{ partial "scripts.html" . }}
</body>
{{ $script := .Site.Data.webpack.main }}
{{ with $script.js }}
diff --git a/landing-pages/site/layouts/meetups/baseof.html
b/landing-pages/site/layouts/meetups/baseof.html
index 817539281a..8466877599 100644
--- a/landing-pages/site/layouts/meetups/baseof.html
+++ b/landing-pages/site/layouts/meetups/baseof.html
@@ -35,7 +35,7 @@
</div>
</div>
{{ partialCached "footer.html" . }}
-{{ partialCached "scripts.html" . }}
+{{ partial "scripts.html" . }}
</body>
{{ $script := .Site.Data.webpack.main }}
{{ with $script.js }}
diff --git a/landing-pages/site/layouts/partials/scripts.html
b/landing-pages/site/layouts/partials/scripts.html
new file mode 100644
index 0000000000..e8e9f2840f
--- /dev/null
+++ b/landing-pages/site/layouts/partials/scripts.html
@@ -0,0 +1,14 @@
+
+<script src="/js/cdnjs.cloudflare.com-1.14.3-popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
+<script src="/js/stackpath.bootstrapcdn.com-4.1.3-bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
+{{ $jsBase := resources.Get "js/base.js" }}
+{{ $jsAnchor := resources.Get "js/anchor.js" }}
+{{ $jsSearch := resources.Get "js/search.js" | resources.ExecuteAsTemplate
"js/search.js" .Site.Home }}
+{{ $js := (slice $jsBase $jsAnchor $jsSearch) | resources.Concat "js/main.js"
}}
+{{ if .Site.IsServer }}
+<script src="{{ $js.RelPermalink }}"></script>
+{{ else }}
+{{ $js := $js | minify | fingerprint }}
+<script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}"
crossorigin="anonymous"></script>
+{{ end }}
+{{ partial "hooks/body-end.html" . }}
diff --git a/landing-pages/site/layouts/privacy-notice/baseof.html
b/landing-pages/site/layouts/privacy-notice/baseof.html
index caaecb748a..5742a85d16 100644
--- a/landing-pages/site/layouts/privacy-notice/baseof.html
+++ b/landing-pages/site/layouts/privacy-notice/baseof.html
@@ -35,7 +35,7 @@
{{ partial "suggest-change" . }}
</div>
{{ partialCached "footer.html" . }}
-{{ partialCached "scripts.html" . }}
+{{ partial "scripts.html" . }}
</body>
{{ $script := .Site.Data.webpack.main }}
{{ with $script.js }}
diff --git a/landing-pages/site/layouts/roadmap/baseof.html
b/landing-pages/site/layouts/roadmap/baseof.html
index e0de629781..ca7dcd7b2f 100644
--- a/landing-pages/site/layouts/roadmap/baseof.html
+++ b/landing-pages/site/layouts/roadmap/baseof.html
@@ -68,7 +68,7 @@
{{ partial "suggest-change" . }}
</div>
{{ partialCached "footer.html" . }}
-{{ partialCached "scripts.html" . }}
+{{ partial "scripts.html" . }}
</body>
{{ $script := .Site.Data.webpack.main }}
{{ with $script.js }}
diff --git a/landing-pages/site/layouts/taxonomy/baseof.html
b/landing-pages/site/layouts/taxonomy/baseof.html
index 817539281a..8466877599 100644
--- a/landing-pages/site/layouts/taxonomy/baseof.html
+++ b/landing-pages/site/layouts/taxonomy/baseof.html
@@ -35,7 +35,7 @@
</div>
</div>
{{ partialCached "footer.html" . }}
-{{ partialCached "scripts.html" . }}
+{{ partial "scripts.html" . }}
</body>
{{ $script := .Site.Data.webpack.main }}
{{ with $script.js }}
diff --git a/landing-pages/site/layouts/use-cases/baseof.html
b/landing-pages/site/layouts/use-cases/baseof.html
index 817539281a..8466877599 100644
--- a/landing-pages/site/layouts/use-cases/baseof.html
+++ b/landing-pages/site/layouts/use-cases/baseof.html
@@ -35,7 +35,7 @@
</div>
</div>
{{ partialCached "footer.html" . }}
-{{ partialCached "scripts.html" . }}
+{{ partial "scripts.html" . }}
</body>
{{ $script := .Site.Data.webpack.main }}
{{ with $script.js }}
diff --git
a/landing-pages/site/static/css/Open+Sans:300,300i,400,400i,700,700i.css
b/landing-pages/site/static/css/OpenSans.css
similarity index 100%
rename from
landing-pages/site/static/css/Open+Sans:300,300i,400,400i,700,700i.css
rename to landing-pages/site/static/css/OpenSans.css
diff --git
a/landing-pages/site/static/css/Roboto:400,400i,500,700&display=swap.css
b/landing-pages/site/static/css/Roboto.css
similarity index 100%
rename from
landing-pages/site/static/css/Roboto:400,400i,500,700&display=swap.css
rename to landing-pages/site/static/css/Roboto.css
diff --git a/landing-pages/site/static/css/Roboto+Mono:400,700&display=swap.css
b/landing-pages/site/static/css/RobotoMono.css
similarity index 100%
rename from landing-pages/site/static/css/Roboto+Mono:400,700&display=swap.css
rename to landing-pages/site/static/css/RobotoMono.css
diff --git a/landing-pages/site/static/css/Rubik:500&display=swap.css
b/landing-pages/site/static/css/Rubik.css
similarity index 100%
rename from landing-pages/site/static/css/Rubik:500&display=swap.css
rename to landing-pages/site/static/css/Rubik.css
diff --git a/landing-pages/site/static/js/4.1.3-bootstrap.min.js
b/landing-pages/site/static/js/4.1.3-bootstrap.min.js
deleted file mode 100644
index 1a4771236a..0000000000
--- a/landing-pages/site/static/js/4.1.3-bootstrap.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Bootstrap v4.1.3 (https://getbootstrap.com/)
- * Copyright 2011-2018 The Bootstrap Authors
(https://github.com/twbs/bootstrap/graphs/contributors)
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- */
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof
module?e(exports,require("jquery"),require("popper.js")):"function"==typeof
define&&define.amd?define(["exports","jquery","popper.js"],e):e(t.bootstrap={},t.jQuery,t.Popper)}(this,function(t,e,h){"use
strict";function i(t,e){for(var n=0;n<e.length;n++){var
i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in
i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return
e&&i(t.prototype,e),n&&i(t,n),t [...]
-//# sourceMappingURL=bootstrap.min.js.map
diff --git
a/landing-pages/site/static/js/stackpath.bootstrapcdn.com-4.1.3-bootstrap.min.js
b/landing-pages/site/static/js/stackpath.bootstrapcdn.com-4.1.3-bootstrap.min.js
index 1a4771236a..00c895f0f3 100644
---
a/landing-pages/site/static/js/stackpath.bootstrapcdn.com-4.1.3-bootstrap.min.js
+++
b/landing-pages/site/static/js/stackpath.bootstrapcdn.com-4.1.3-bootstrap.min.js
@@ -4,4 +4,4 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof
module?e(exports,require("jquery"),require("popper.js")):"function"==typeof
define&&define.amd?define(["exports","jquery","popper.js"],e):e(t.bootstrap={},t.jQuery,t.Popper)}(this,function(t,e,h){"use
strict";function i(t,e){for(var n=0;n<e.length;n++){var
i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in
i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return
e&&i(t.prototype,e),n&&i(t,n),t [...]
-//# sourceMappingURL=bootstrap.min.js.map
+//# sourceMappingURL=bootstrap.min.js.map
\ No newline at end of file