From 70e7bc2f952394042133b7975d0e79477ac245f1 Mon Sep 17 00:00:00 2001
From: Reinier Zwitserloot
Date: Mon, 11 Sep 2017 21:25:14 +0200
Subject: solved some bugs in our site.
---
website/resources/js/main.js | 4 +++-
website/templates/features/GetterSetter.html | 2 +-
website/templates/features/experimental/index.html | 2 ++
website/templates/features/index.html | 8 +++++++-
website/templates/main.html | 7 ++++++-
5 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/website/resources/js/main.js b/website/resources/js/main.js
index 35d0620d..99ae3b19 100644
--- a/website/resources/js/main.js
+++ b/website/resources/js/main.js
@@ -14,7 +14,7 @@
if (self.data("clc")) return;
var href = self.attr("href");
self.data("clc", true);
- if (!href || href.substr(0, 4) === "http") return;
+ if (!href || href.substr(0, 4) === "http" || href === "/api/") return;
var ext = href.substr(href.length - 4, 4);
if (ext === ".xml" || ext === ".jar") return;
self.on("click", function(evt) {
@@ -63,6 +63,8 @@
$("#main-section").replaceWith(newH);
collapseMenu();
$("a").each(captureLinkClick);
+ }, error: function() {
+ window.location = u;
}
});
}
diff --git a/website/templates/features/GetterSetter.html b/website/templates/features/GetterSetter.html
index 7ceaa3ba..1baa5bd0 100644
--- a/website/templates/features/GetterSetter.html
+++ b/website/templates/features/GetterSetter.html
@@ -62,7 +62,7 @@
You can annotate a class with a @Getter or @Setter annotation. Doing so is equivalent to annotating all non-static fields in that class with that annotation. @Getter/@Setter annotations on fields take precedence over the ones on classes.
- Using the AccessLevel.NONE access level simply generates nothing. It's useful only in combination with @Data or a class-wide @Getter or @Setter.
+ Using the AccessLevel.NONE access level simply generates nothing. It's useful only in combination with @Data or a class-wide @Getter or @Setter.
@Getter can also be used on enums. @Setter can't, not for a technical reason, but for a pragmatic one: Setters on enums are an extremely bad idea.
diff --git a/website/templates/features/experimental/index.html b/website/templates/features/experimental/index.html
index a1ea867a..dbd2f93c 100644
--- a/website/templates/features/experimental/index.html
+++ b/website/templates/features/experimental/index.html
@@ -7,6 +7,8 @@
<@main.h1 title="Lombok experimental features" />
+ The
Lombok javadoc is available, but we advise these pages.
+
Experimental features are available in your normal lombok installation, but are not as robustly supported as lombok's main features. In particular, experimental features:
diff --git a/website/templates/features/index.html b/website/templates/features/index.html
index a09c4b72..73b5dce8 100644
--- a/website/templates/features/index.html
+++ b/website/templates/features/index.html
@@ -3,9 +3,11 @@
<@main.scaffold>