From e10bcc13046600ce9abc36828927ce0b608e1d68 Mon Sep 17 00:00:00 2001 From: Chaoren Lin Date: Fri, 10 Jan 2025 16:15:13 -0500 Subject: [PATCH] Add redirect from api/latest to the Javadoc of the latest release. Also: - Added badges for the latest and snapshot versions of Javadocs. - Fixed the whitespaces in the generated HTML files. - Fixed the config so that the website works on local development servers. - Removed some unused files. - Added a basic 404 page. --- 404.md | 8 +++++ _config.yml | 1 - _includes/footer.html | 6 ++-- _includes/head.html | 17 +++++---- _includes/navigation.html | 12 +++---- _includes/social.html | 39 --------------------- _layouts/base.html | 18 +++++----- _layouts/default.html | 3 +- _layouts/post.html | 18 ---------- _layouts/redirect.html | 4 +++ api/badge.svg | 36 +++++++++++++++++++ api/latest/badge.svg | 36 +++++++++++++++++++ api/latest/index.html | 18 ++++++++++ elements/GitHub-Mark-Light-32px.png | Bin 1571 -> 0 bytes elements/github-fab.html | 52 ---------------------------- 15 files changed, 129 insertions(+), 139 deletions(-) create mode 100644 404.md delete mode 100644 _includes/social.html delete mode 100644 _layouts/post.html create mode 100644 api/badge.svg create mode 100644 api/latest/badge.svg create mode 100644 api/latest/index.html delete mode 100644 elements/GitHub-Mark-Light-32px.png delete mode 100644 elements/github-fab.html diff --git a/404.md b/404.md new file mode 100644 index 000000000000..2cac40dd6831 --- /dev/null +++ b/404.md @@ -0,0 +1,8 @@ +--- +layout: default +title: Page Not Found +--- + +# 404 + +The requested URL does not exist. diff --git a/_config.yml b/_config.yml index a15ec6c4ead1..fbed776e1c80 100644 --- a/_config.yml +++ b/_config.yml @@ -2,7 +2,6 @@ title: Guava subtitle: Google core libraries for Java description: Google core libraries for Java -baseurl: / url: https://guava.dev themeColor: red diff --git a/_includes/footer.html b/_includes/footer.html index 0054ae10cd02..5c9912fcf627 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,4 +1,4 @@ -{% comment %} +{%- comment -%} Copyright (C) 2018 Google LLC. Licensed under the Apache License, Version 2.0 (the "License"); @@ -11,8 +11,8 @@ 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.foobar2 -{% endcomment %} +limitations under the License. +{%- endcomment -%}