aboutsummaryrefslogtreecommitdiff
path: root/website2/resources
diff options
context:
space:
mode:
Diffstat (limited to 'website2/resources')
-rw-r--r--website2/resources/css/custom.css6
-rw-r--r--website2/resources/files/pom.xml78
-rw-r--r--website2/resources/img/eclipse-about.pngbin0 -> 110054 bytes
-rw-r--r--website2/resources/img/lombok-installer.pngbin0 -> 104350 bytes
-rw-r--r--website2/resources/img/netbeans-enable-annotation-processing-in-editor.pngbin0 -> 130876 bytes
-rw-r--r--website2/resources/js/main.js46
6 files changed, 111 insertions, 19 deletions
diff --git a/website2/resources/css/custom.css b/website2/resources/css/custom.css
index 3545508b..0b2c70c9 100644
--- a/website2/resources/css/custom.css
+++ b/website2/resources/css/custom.css
@@ -1,3 +1,7 @@
+ul.dropdown-menu .header {
+ padding-left: 10px;
+}
+
div.snippet code {
padding: 0;
}
@@ -119,7 +123,7 @@ h1, h2, h3 {
padding: 4px;
border: 1px dotted #888;
text-align: left;
- width: 635px;
+ width: 760px;
}
.snippet font {
diff --git a/website2/resources/files/pom.xml b/website2/resources/files/pom.xml
new file mode 100644
index 00000000..6562afe8
--- /dev/null
+++ b/website2/resources/files/pom.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.projectlombok</groupId>
+ <artifactId>eclipse-compiler-test</artifactId>
+ <version>1.0-SNAPSHOT</version>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <lombok.version>1.16.8</lombok.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.projectlombok</groupId>
+ <artifactId>lombok</artifactId>
+ <version>${lombok.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.5.1</version>
+ <configuration>
+ <compilerId>eclipse</compilerId>
+ <source>1.8</source>
+ <target>1.8</target>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-compiler-eclipse</artifactId>
+ <version>2.7</version>
+ </dependency>
+ <dependency>
+ <groupId>org.projectlombok</groupId>
+ <artifactId>lombok</artifactId>
+ <version>${lombok.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.10</version>
+ <executions>
+ <execution>
+ <id>get-lombok</id>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.projectlombok</groupId>
+ <artifactId>lombok</artifactId>
+ <version>${lombok.version}</version>
+ <type>jar</type>
+ <outputDirectory>${project.build.directory}</outputDirectory>
+ <destFileName>lombok.jar</destFileName>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project>
diff --git a/website2/resources/img/eclipse-about.png b/website2/resources/img/eclipse-about.png
new file mode 100644
index 00000000..71b18e99
--- /dev/null
+++ b/website2/resources/img/eclipse-about.png
Binary files differ
diff --git a/website2/resources/img/lombok-installer.png b/website2/resources/img/lombok-installer.png
new file mode 100644
index 00000000..d71148f5
--- /dev/null
+++ b/website2/resources/img/lombok-installer.png
Binary files differ
diff --git a/website2/resources/img/netbeans-enable-annotation-processing-in-editor.png b/website2/resources/img/netbeans-enable-annotation-processing-in-editor.png
new file mode 100644
index 00000000..d8a6b4c3
--- /dev/null
+++ b/website2/resources/img/netbeans-enable-annotation-processing-in-editor.png
Binary files differ
diff --git a/website2/resources/js/main.js b/website2/resources/js/main.js
index 497b310c..4ac490d3 100644
--- a/website2/resources/js/main.js
+++ b/website2/resources/js/main.js
@@ -9,41 +9,51 @@
return lnk;
}
+ function captureLinkClick() {
+ var self = $(this);
+ if (self.data("clc")) return;
+ var href = self.attr("href");
+ self.data("clc", true);
+ if (!href || href.substr(0, 4) === "http" || href.substr(href.length - 4, 4) === ".xml") return;
+ self.on("click", function(evt) {
+ evt.preventDefault();
+ var key = toKey(window.location.pathname);
+ if ($("#" + key).length < 1) {
+ var d = $("<div />").attr("id", key).append($("#main-section").contents()).hide();
+ $("body").append(d);
+ }
+ History.pushState({urlPath: href}, self.text(), href);
+ });
+ }
+
function ajaxFeaturePages() {
if (!History.enabled) return;
History.replaceState({urlPath: window.location.pathname}, $("title").text(), History.getState().urlpath);
- $("a").each(function() {
- var self = $(this);
- var href = self.attr("href");
- if (!href) return;
- if (href.substring(0, 10) !== "/features/") return;
- self.on("click", function(evt) {
- evt.preventDefault();
- var key = toKey(window.location.pathname);
- if ($("#" + key).length < 1) {
- var d = $("<div />").attr("id", key).append($("#featureContent").contents()).hide();
- $("body").append(d);
- }
- History.pushState({urlPath: href}, self.text(), href);
- });
- });
+ $("a").each(captureLinkClick);
$(window).on("statechange", function() {
var hs = History.getState();
var u = hs.data.urlPath;
+ if (u === "/" || u === "") u = "/main.html";
if (u.substring(u.length - 5) !== ".html") u += ".html";
var key = toKey(u);
var sc = $("#" + key);
if (sc.length > 0) {
- var a = $("#featureContent");
- sc.show().attr("id", "featureContent");
+ var a = $("#main-section");
+ sc.show().attr("id", "main-section").attr("class", "container-fluid main-section");
a.replaceWith(sc);
} else {
$.ajax({
url: u,
success: function(response) {
- $("#featureContent").replaceWith($(response).find("#featureContent"));
+ var x = '<div class="container-fluid main-section" id="main-section">';
+ var y = '<footer';
+ var start = response.indexOf(x);
+ var end = response.indexOf(y);
+ var newH = $(response.substr(start, end - start));
+ $("#main-section").replaceWith(newH);
+ $("a").each(captureLinkClick);
}
});
}