From 522dc3562408df9cca6e8bd260b46e0b0a7a06f2 Mon Sep 17 00:00:00 2001 From: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> Date: Fri, 10 Feb 2023 20:27:31 +0300 Subject: [PATCH] Overhaul the downloads page (#553) * (WIP) Rework the downloads page * Enable incremental builds * Improve styling and layout of the downloads page --------- Co-authored-by: Emi <2206700+coppolaemilio@users.noreply.github.com> --- .gitignore | 1 + Gemfile.lock | 2 +- _config.development.yml | 5 + _layouts/default.html | 2 +- _layouts/download.html | 623 +++++++++++------- assets/css/main.css | 10 +- assets/download/download-background.jpg | Bin 0 -> 181586 bytes assets/icons/{server.svg => linux-server.svg} | 0 build-and-watch.sh | 4 + collections/_download/android.md | 48 +- collections/_download/linux.md | 48 +- collections/_download/macos.md | 70 +- collections/_download/server.md | 57 +- collections/_download/windows.md | 72 +- 14 files changed, 590 insertions(+), 352 deletions(-) create mode 100644 assets/download/download-background.jpg rename assets/icons/{server.svg => linux-server.svg} (100%) create mode 100644 build-and-watch.sh diff --git a/.gitignore b/.gitignore index 501a8ea288..e25f7e5836 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Build artifacts and cache .bundle/ .jekyll-cache +.jekyll-metadata _site vendor/ diff --git a/Gemfile.lock b/Gemfile.lock index b36d7b6705..996326375e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,6 +11,7 @@ GEM eventmachine (1.2.7) ffi (1.15.5) ffi (1.15.5-x64-mingw-ucrt) + ffi (1.15.5-x64-unknown) forwardable-extended (2.6.0) http_parser.rb (0.8.0) i18n (1.12.0) @@ -70,7 +71,6 @@ PLATFORMS x64-mingw-ucrt x64-unknown x86_64-linux - x86_64-linux-musl DEPENDENCIES jekyll (= 4.2.2) diff --git a/_config.development.yml b/_config.development.yml index 3c20e09faf..13e4c66181 100644 --- a/_config.development.yml +++ b/_config.development.yml @@ -1,2 +1,7 @@ # Overrides from the main config url: "http://localhost:4000" + +# Enables incremental builds to speed up iteration times. +incremental: true +# Switch to polling instead of I/O watching, solves Docker issues. +force_polling: true diff --git a/_layouts/default.html b/_layouts/default.html index f12e089d6d..e934e483ca 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -21,7 +21,7 @@ - + diff --git a/_layouts/download.html b/_layouts/download.html index 917fd823cb..daccdd8757 100644 --- a/_layouts/download.html +++ b/_layouts/download.html @@ -5,8 +5,66 @@ layout: default {% include header.html %} + -
-
-
-

Download

+
+
+

Download Godot for {{ page.platform }}

+ +
+ {% assign featured_downloads = page.downloads | where: "featured", "true" %} + {% for download in featured_downloads %} + + {% capture download_url %} + https://downloads.tuxfamily.org/godotengine/{{site.stable_version}}/{% if download.mono %}mono/{% endif %}Godot_v{{site.stable_version}}-stable_{{ download.slug }} + {% endcapture %} + +
+ +
+ ({{ page.platform }}) + Godot Engine{% if download.featured_flavor %} - {{ download.featured_flavor }}{% endif %} +
+
{{ site.stable_version }}
+
+

+ {{ page.platform }}{% for tag in download.tags %} · {{ tag }}{% endfor %} · {{ site.stable_version_date }} +

+
+ + {% endfor %} + +

+ You can find previous releases on GitHub or the download repository. +

- + +
+
+ Looking for other platforms? See below!
+