This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new 50f5e9ca780 [SPARK-39055][DOC] Fix documentation 404 page
50f5e9ca780 is described below
commit 50f5e9ca780f66a67d08027fb94980e043ab5dc1
Author: Kent Yao <[email protected]>
AuthorDate: Thu Apr 28 19:57:40 2022 +0900
[SPARK-39055][DOC] Fix documentation 404 page
### What changes were proposed in this pull request?
replace unused `docs/_layouts/404.html` with `docs/404.md`
### Why are the changes needed?
make the custom 404 page work
<img width="638" alt="image"
src="https://user-images.githubusercontent.com/8326978/165706963-6cc96cf5-299e-4b60-809f-79dd771f3b5d.png">
### Does this PR introduce _any_ user-facing change?
### How was this patch tested?
```
bundle exec jekyll serve
```
and visit a non-existing page `http://localhost:4000/abcd`
Closes #36392 from yaooqinn/SPARK-39055.
Authored-by: Kent Yao <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
(cherry picked from commit ec2bfa566ed3c796e91987f7a158e8b60fbd5c42)
Signed-off-by: Hyukjin Kwon <[email protected]>
---
docs/404.md | 28 +++++++++
docs/_config.yml | 2 +
docs/_layouts/404.html | 157 -------------------------------------------------
3 files changed, 30 insertions(+), 157 deletions(-)
diff --git a/docs/404.md b/docs/404.md
new file mode 100644
index 00000000000..4d78234927a
--- /dev/null
+++ b/docs/404.md
@@ -0,0 +1,28 @@
+---
+layout: global
+title: 404 Not Found
+license: |
+ 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.
+---
+
+## Oops!
+
+Sorry, but the page you were trying to view does not exist.
+
+It looks like this was the result of either:
+
+- a mistyped address
+- an out-of-date link
diff --git a/docs/_config.yml b/docs/_config.yml
index 8ac911a1fe4..e6cbee146a1 100644
--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -44,3 +44,5 @@ DOCSEARCH_SCRIPT: |
},
debug: false // Set debug to true if you want to inspect the dropdown
});
+
+permalink: 404.html
diff --git a/docs/_layouts/404.html b/docs/_layouts/404.html
deleted file mode 100755
index 78f98b9ede5..00000000000
--- a/docs/_layouts/404.html
+++ /dev/null
@@ -1,157 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Page Not Found :(</title>
- <style>
- ::-moz-selection {
- background: #b3d4fc;
- text-shadow: none;
- }
-
- ::selection {
- background: #b3d4fc;
- text-shadow: none;
- }
-
- html {
- padding: 30px 10px;
- font-size: 20px;
- line-height: 1.4;
- color: #737373;
- background: #f0f0f0;
- -webkit-text-size-adjust: 100%;
- -ms-text-size-adjust: 100%;
- }
-
- html,
- input {
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
- }
-
- body {
- max-width: 500px;
- _width: 500px;
- padding: 30px 20px 50px;
- border: 1px solid #b3b3b3;
- border-radius: 4px;
- margin: 0 auto;
- box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff;
- background: #fcfcfc;
- }
-
- h1 {
- margin: 0 10px;
- font-size: 50px;
- text-align: center;
- }
-
- h1 span {
- color: #bbb;
- }
-
- h3 {
- margin: 1.5em 0 0.5em;
- }
-
- p {
- margin: 1em 0;
- }
-
- ul {
- padding: 0 0 0 40px;
- margin: 1em 0;
- }
-
- .container {
- max-width: 380px;
- _width: 380px;
- margin: 0 auto;
- }
-
- /* google search */
-
- #goog-fixurl ul {
- list-style: none;
- padding: 0;
- margin: 0;
- }
-
- #goog-fixurl form {
- margin: 0;
- }
-
- #goog-wm-qt,
- #goog-wm-sb {
- border: 1px solid #bbb;
- font-size: 16px;
- line-height: normal;
- vertical-align: top;
- color: #444;
- border-radius: 2px;
- }
-
- #goog-wm-qt {
- width: 220px;
- height: 20px;
- padding: 5px;
- margin: 5px 10px 0 0;
- box-shadow: inset 0 1px 1px #ccc;
- }
-
- #goog-wm-sb {
- display: inline-block;
- height: 32px;
- padding: 0 10px;
- margin: 5px 0 0;
- white-space: nowrap;
- cursor: pointer;
- background-color: #f5f5f5;
- background-image: -webkit-linear-gradient(rgba(255,255,255,0),
#f1f1f1);
- background-image: -moz-linear-gradient(rgba(255,255,255,0),
#f1f1f1);
- background-image: -ms-linear-gradient(rgba(255,255,255,0),
#f1f1f1);
- background-image: -o-linear-gradient(rgba(255,255,255,0),
#f1f1f1);
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
- *overflow: visible;
- *display: inline;
- *zoom: 1;
- }
-
- #goog-wm-sb:hover,
- #goog-wm-sb:focus {
- border-color: #aaa;
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
- background-color: #f8f8f8;
- }
-
- #goog-wm-qt:hover,
- #goog-wm-qt:focus {
- border-color: #105cb6;
- outline: 0;
- color: #222;
- }
-
- input::-moz-focus-inner {
- padding: 0;
- border: 0;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <h1>Not found <span>:(</span></h1>
- <p>Sorry, but the page you were trying to view does not exist.</p>
- <p>It looks like this was the result of either:</p>
- <ul>
- <li>a mistyped address</li>
- <li>an out-of-date link</li>
- </ul>
- <script>
- var GOOG_FIXURL_LANG = (navigator.language ||
'').slice(0,2),GOOG_FIXURL_SITE = location.host;
- </script>
- <script
src="https://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
- </div>
- </body>
-</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]