This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 48f9cc7e716d [SPARK-49494][DOCS] Use spark logos from spark-website in
docs
48f9cc7e716d is described below
commit 48f9cc7e716d7c3568049a80a9af7ca1b5c9ec01
Author: Kent Yao <[email protected]>
AuthorDate: Tue Sep 3 09:18:28 2024 -0700
[SPARK-49494][DOCS] Use spark logos from spark-website in docs
### What changes were proposed in this pull request?
Use spark logos from spark-website in docs and remove them from spark main
repo
### Why are the changes needed?
- reduce spark-website incremental size
- fix some cases when `/img/spark-logo-rev.svg` is invalid
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
doc build,
https://github.com/yaooqinn/spark/actions/runs/10676269598/artifacts/1884295142
### Was this patch authored or co-authored using generative AI tooling?
no
Closes #47966 from yaooqinn/SPARK-49494.
Authored-by: Kent Yao <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
docs/_layouts/global.html | 2 +-
docs/img/spark-logo-hd.png | Bin 11306 -> 0 bytes
docs/img/spark-logo-rev.svg | 7 -------
docs/img/spark-logo-reverse.png | Bin 21547 -> 0 bytes
python/docs/source/_static/spark-logo-dark.png | Bin 23555 -> 0 bytes
python/docs/source/_static/spark-logo-light.png | Bin 18773 -> 0 bytes
python/docs/source/conf.py | 6 +++---
7 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/docs/_layouts/global.html b/docs/_layouts/global.html
index 502113d11b77..a85fd1645146 100755
--- a/docs/_layouts/global.html
+++ b/docs/_layouts/global.html
@@ -58,7 +58,7 @@
<!-- This code is taken from
http://twitter.github.com/bootstrap/examples/hero.html -->
<nav class="navbar navbar-expand-lg navbar-dark p-0 px-4 fixed-top"
style="background: #1d6890;" id="topbar">
<div class="navbar-brand"><a href="{{ rel_path_to_root
}}index.html">
- <img src="/img/spark-logo-rev.svg" width="141"
height="72"/></a><span class="version">{{site.SPARK_VERSION_SHORT}}</span>
+ <img src="https://spark.apache.org/images/spark-logo-rev.svg"
width="141" height="72"/></a><span
class="version">{{site.SPARK_VERSION_SHORT}}</span>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarCollapse"
aria-controls="navbarCollapse"
diff --git a/docs/img/spark-logo-hd.png b/docs/img/spark-logo-hd.png
deleted file mode 100644
index 464eda547ba9..000000000000
Binary files a/docs/img/spark-logo-hd.png and /dev/null differ
diff --git a/docs/img/spark-logo-rev.svg b/docs/img/spark-logo-rev.svg
deleted file mode 100644
index fc4f6790218d..000000000000
--- a/docs/img/spark-logo-rev.svg
+++ /dev/null
@@ -1,7 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="68" height="36" viewBox="0 0 68
36">
- <g fill="none" fill-rule="evenodd">
- <path fill="#E25A1C" d="M62.061 17.243c-.058.123-.085.186-.117.245-.85
1.594-1.698 3.19-2.555 4.78-.087.159-.076.254.042.39 1.352 1.558 2.697 3.122
4.044
4.685.047.054.09.113.108.21-.394-.101-.788-.201-1.181-.304-1.634-.427-3.268-.853-4.9-1.285-.152-.04-.221.003-.297.128-.927
1.528-1.86 3.053-2.792
4.578-.048.08-.1.157-.202.223-.075-.407-.152-.814-.225-1.221l-.777-4.314c-.028-.156-.067-.31-.08-.467-.014-.148-.09-.203-.227-.245-1.925-.596-3.848-1.198-5.772-1.8-.084-.026-.167-.06-.
[...]
- <path fill="#FFF" d="M59.483 3.841c-1.193.002-2.386.008-3.58.003-.157
0-.246.045-.334.177-1.412 2.122-2.83 4.239-4.248
6.357-.045.068-.093.133-.174.246l-.902-6.767h-3.124c.037.3.069.59.107.88.305
2.296.611 4.594.918 6.89.292 2.195.583 4.39.88 6.585.009.065.053.148.107.183
1.075.69 2.154 1.376 3.232 2.062.016.01.038.011.094.027l-.974-7.324.038-.026
5.113
5.59.136-.772c.121-.698.237-1.396.367-2.092.026-.14-.011-.228-.106-.325-1.094-1.13-2.185-2.263-3.276-3.396l-.147-.159c.035-.055.
[...]
- <path fill="#FFF" fill-rule="nonzero" d="M62.9
3.859v1.207h-.006l-.48-1.207h-.154l-.48
1.207h-.007V3.86h-.242v1.446h.373l.438-1.099.43 1.099h.37V3.859h-.241zm-2.127
1.253V3.859h-.242v1.253h-.46v.193h1.16v-.193h-.458M16.682 20.339h.72l-.17
1.073-.55-1.073zm.832-.694h-1.196l-.38-.734h-.847l1.868
3.443h.817l.636-3.443h-.785l-.113.734M21.793 21.66h-.426l-.143-.794h.425c.257 0
.463.166.463.48 0 .208-.13.314-.319.314zm-1.032.694h1.12c.585 0
.995-.345.995-.937 0-.744-.534-1.245-1.293-1. [...]
- </g>
-</svg>
diff --git a/docs/img/spark-logo-reverse.png b/docs/img/spark-logo-reverse.png
deleted file mode 100644
index a3e4ed4bb3d0..000000000000
Binary files a/docs/img/spark-logo-reverse.png and /dev/null differ
diff --git a/python/docs/source/_static/spark-logo-dark.png
b/python/docs/source/_static/spark-logo-dark.png
deleted file mode 100644
index 7460faec37fc..000000000000
Binary files a/python/docs/source/_static/spark-logo-dark.png and /dev/null
differ
diff --git a/python/docs/source/_static/spark-logo-light.png
b/python/docs/source/_static/spark-logo-light.png
deleted file mode 100644
index 41938560822c..000000000000
Binary files a/python/docs/source/_static/spark-logo-light.png and /dev/null
differ
diff --git a/python/docs/source/conf.py b/python/docs/source/conf.py
index 66b985092faf..5640ba151176 100644
--- a/python/docs/source/conf.py
+++ b/python/docs/source/conf.py
@@ -205,8 +205,8 @@ html_theme_options = {
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
"footer_start": ["spark_footer", "sphinx-version"],
"logo": {
- "image_light": "_static/spark-logo-light.png",
- "image_dark": "_static/spark-logo-dark.png",
+ "image_light": "https://spark.apache.org/images/spark-logo.png",
+ "image_dark": "https://spark.apache.org/images/spark-logo-rev.svg",
},
"icon_links": [
{
@@ -234,7 +234,7 @@ html_theme_options = {
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
-html_logo = "../../../docs/img/spark-logo-reverse.png"
+html_logo = "https://spark.apache.org/images/spark-logo-rev.svg"
# The name of an image file (within the static path) to use as a favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]