Skip to content

Commit

Permalink
[SPARK-49494][DOCS] Use spark logos from spark-website in docs
Browse files Browse the repository at this point in the history
### 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 <yao@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
  • Loading branch information
yaooqinn authored and dongjoon-hyun committed Sep 3, 2024
1 parent 7508f6d commit 48f9cc7
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/_layouts/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Binary file removed docs/img/spark-logo-hd.png
Binary file not shown.
7 changes: 0 additions & 7 deletions docs/img/spark-logo-rev.svg

This file was deleted.

Binary file removed docs/img/spark-logo-reverse.png
Binary file not shown.
Binary file removed python/docs/source/_static/spark-logo-dark.png
Binary file not shown.
Binary file removed python/docs/source/_static/spark-logo-light.png
Binary file not shown.
6 changes: 3 additions & 3 deletions python/docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@
"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": [
{
Expand Down Expand Up @@ -234,7 +234,7 @@

# 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
Expand Down

0 comments on commit 48f9cc7

Please sign in to comment.