From d4740cb18ce6d844f0c03fa5df06feac42cdfa41 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 25 Sep 2017 23:09:32 +0200 Subject: Added an individual ‘setup’ page; hamburger menu now goes to it. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/extra/htaccess | 5 ++++ website/resources/css/custom.css | 24 ++++++++++++++++- website/templates/_scaffold.html | 55 ++++++++++++++++++++++++--------------- website/templates/setup/main.html | 14 ++++++++++ 4 files changed, 76 insertions(+), 22 deletions(-) create mode 100644 website/templates/setup/main.html (limited to 'website') diff --git a/website/extra/htaccess b/website/extra/htaccess index 1dba17ae..6e07f63f 100644 --- a/website/extra/htaccess +++ b/website/extra/htaccess @@ -3,6 +3,11 @@ RewriteEngine On RewriteRule ^$ /main.html [L,END] RewriteRule ^(index|home)(\.html)?$ / [NC,R=301] +RewriteRule ^setup/overview$ /setup/main.html [L,END] +RewriteRule ^setup/main(\.html)?$ /setup/overview [NC,R=301] +RewriteRule ^setup/index(\.html)?$ /setup/overview [NC,R=301] +RewriteRule ^setup(/(overview)?)?$ /setup/overview [NC,R=301] + RewriteRule ^changelog$ /changelog.html [L,END] RewriteRule ^changelog(\.html)?$ /changelog [NC,R=301] RewriteRule ^credits$ /credits.html [L,END] diff --git a/website/resources/css/custom.css b/website/resources/css/custom.css index 3c8e0399..795b155c 100644 --- a/website/resources/css/custom.css +++ b/website/resources/css/custom.css @@ -209,7 +209,7 @@ a { text-align: left; } -@media (max-width: 768px) { +@media (max-width: 767px) { .fork-me { display: none; } @@ -235,9 +235,31 @@ a { width: 100%; height: auto; } + + .smallOnly { + display: block !important; + } + + .wideOnly { + display: none !important; + } +} + +@media (min-width: 768px) { + .smallOnly { + display: none !important; + } + + .wideOnly { + display: block !important; + } } img { max-width: 100%; height: auto; } + +h3.listHeader { + text-align: left; +} diff --git a/website/templates/_scaffold.html b/website/templates/_scaffold.html index 7de5e1d2..d11db914 100644 --- a/website/templates/_scaffold.html +++ b/website/templates/_scaffold.html @@ -5,6 +5,31 @@ +<#assign setupTargets = { + "Compilers": { + "Javac": "javac", + "ECJ": "ecj" + }, + "Build tools": { + "maven": "maven", + "gradle": "gradle", + "ant": "ant", + "kobalt": "kobalt" + }, + "IDEs": { + "Eclipse": "eclipse", + "IntelliJ IDEA": "intellij", + "Netbeans": "netbeans", + "MyEclipse": "eclipse", + "Spring Tool Suite": "eclipse", + "JBoss Developer Studio": "eclipse" + }, + "Platforms": { + "Android": "android", + "GWT": "gwt" + } +}> + <#macro scaffold load=[]> @@ -79,28 +104,16 @@ ga('send', 'pageview');
  • Download
  • diff --git a/website/templates/setup/main.html b/website/templates/setup/main.html new file mode 100644 index 00000000..8c874a55 --- /dev/null +++ b/website/templates/setup/main.html @@ -0,0 +1,14 @@ +<#import "_setup.html" as s> + +<@s.scaffold title="Using lombok"> + <@s.introduction> + <#list s.main.setupTargets as cat, tgtList> +

    ${cat}

    + + + + -- cgit