From 4067ead6bd2d0c188c10058866fd5744d7bfa859 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Thu, 27 Jan 2022 12:56:35 +0100 Subject: rename main.html to index.html --- src/support/lombok/website/RunSite.java | 6 +++--- website/extra/htaccess | 4 ++-- website/resources/js/main.js | 2 +- website/templates/index.html | 35 +++++++++++++++++++++++++++++++++ website/templates/main.html | 35 --------------------------------- website/templates/setup/index.html | 14 +++++++++++++ website/templates/setup/main.html | 14 ------------- 7 files changed, 55 insertions(+), 55 deletions(-) create mode 100644 website/templates/index.html delete mode 100644 website/templates/main.html create mode 100644 website/templates/setup/index.html delete mode 100644 website/templates/setup/main.html diff --git a/src/support/lombok/website/RunSite.java b/src/support/lombok/website/RunSite.java index 17e158c0..1df89bdb 100644 --- a/src/support/lombok/website/RunSite.java +++ b/src/support/lombok/website/RunSite.java @@ -29,9 +29,9 @@ public class RunSite { private void go(boolean open) throws Exception { port(DEFAULT_PORT); - get("/", serve("main.html")); - get("/setup/overview", serve("setup/main.html")); - get("/setup", serve("setup/main.html")); + get("/", serve("index.html")); + get("/setup/overview", serve("setup/index.html")); + get("/setup", serve("setup/index.html")); get("/features", serve("features/index.html")); get("/features/all", serve("features/index.html")); get("/features/experimental/all", serve("features/experimental/index.html")); diff --git a/website/extra/htaccess b/website/extra/htaccess index 3539950f..2a17dd17 100644 --- a/website/extra/htaccess +++ b/website/extra/htaccess @@ -1,9 +1,9 @@ RewriteEngine On -RewriteRule ^$ /main.html [L,END] +RewriteRule ^$ /index.html [L,END] RewriteRule ^(index|home)(\.html)?$ / [NC,R=301] -RewriteRule ^setup/overview$ /setup/main.html [L,END] +RewriteRule ^setup/overview$ /setup/index.html [L,END] RewriteRule ^setup/overview(\.html)?/?$ /setup/overview [NC,R=301] RewriteRule ^setup/main(\.html)?/?$ /setup/overview [NC,R=301] RewriteRule ^setup/index(\.html)?/?$ /setup/overview [NC,R=301] diff --git a/website/resources/js/main.js b/website/resources/js/main.js index 3d18b996..fe90a086 100644 --- a/website/resources/js/main.js +++ b/website/resources/js/main.js @@ -64,7 +64,7 @@ $(window).on("statechange", function() { var hs = History.getState(); var u = hs.data.urlPath; - if (u === "/" || u === "") u = "/main.html"; + if (u === "/" || u === "") u = "/index.html"; if (u.substring(u.length - 5) !== ".html") u += ".html"; if (u.substring(u.length - 8) === "all.html") u = u.substring(0, u.length - 8) + "index.html"; var key = toKey(u); diff --git a/website/templates/index.html b/website/templates/index.html new file mode 100644 index 00000000..bb868517 --- /dev/null +++ b/website/templates/index.html @@ -0,0 +1,35 @@ +<#import "/_scaffold.html" as main> +<@main.scaffold load=["/js/supporters.js"]> + Get Lombok for Enterprise + + diff --git a/website/templates/main.html b/website/templates/main.html deleted file mode 100644 index bb868517..00000000 --- a/website/templates/main.html +++ /dev/null @@ -1,35 +0,0 @@ -<#import "/_scaffold.html" as main> -<@main.scaffold load=["/js/supporters.js"]> - Get Lombok for Enterprise - - diff --git a/website/templates/setup/index.html b/website/templates/setup/index.html new file mode 100644 index 00000000..8c874a55 --- /dev/null +++ b/website/templates/setup/index.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}

+ + + + diff --git a/website/templates/setup/main.html b/website/templates/setup/main.html deleted file mode 100644 index 8c874a55..00000000 --- a/website/templates/setup/main.html +++ /dev/null @@ -1,14 +0,0 @@ -<#import "_setup.html" as s> - -<@s.scaffold title="Using lombok"> - <@s.introduction> - <#list s.main.setupTargets as cat, tgtList> -

${cat}

- - - - -- cgit