From b92667ede3984240987db699f2f4a6b8141cad8e Mon Sep 17 00:00:00 2001 From: Andy Stark Date: Thu, 15 May 2025 12:51:48 +0100 Subject: [PATCH 01/12] DOC-5131 first attempt at links/formatting for develop landing page --- content/develop/_index.md | 13 +- layouts/develop/list-landing.html | 96 +++++++++++++++ layouts/develop/list.html | 39 ------ layouts/shortcodes/client-splash.html | 111 ++++++++++++++++++ layouts/shortcodes/dev-features.html | 55 +++++++++ .../icon-data-structures-32-midnight.png | Bin 0 -> 1610 bytes .../icon_logo/icon-developers-32-midnight.png | Bin 0 -> 1500 bytes .../icon-text-search-32-midnight.png | Bin 0 -> 1262 bytes 8 files changed, 274 insertions(+), 40 deletions(-) create mode 100644 layouts/develop/list-landing.html create mode 100644 layouts/shortcodes/client-splash.html create mode 100644 layouts/shortcodes/dev-features.html create mode 100644 static/images/icon_logo/icon-data-structures-32-midnight.png create mode 100644 static/images/icon_logo/icon-developers-32-midnight.png create mode 100644 static/images/icon_logo/icon-text-search-32-midnight.png diff --git a/content/develop/_index.md b/content/develop/_index.md index 860a94248..81aebb398 100644 --- a/content/develop/_index.md +++ b/content/develop/_index.md @@ -2,6 +2,17 @@ title: Develop with Redis description: Learn how to develop with Redis linkTitle: Develop +layout: list-landing +hideListLinks: true --- -Explore the pages below to learn more about developing with Redis Open Source. +Get a Redis server running in minutes with a free trial of +[Redis Cloud]({{< relref "/operate/rc" >}}), or install +[Redis Open Source]({{< relref "/operate/oss_and_stack" >}}) locally +on your machine. Then, explore Redis with your favorite +[programming language]({{< relref "/develop/clients" >}}) +or analyze and manage your database with our UI tools: + +{{< client-splash >}} + +{{< dev-features >}} diff --git a/layouts/develop/list-landing.html b/layouts/develop/list-landing.html new file mode 100644 index 000000000..7cc1bd65c --- /dev/null +++ b/layouts/develop/list-landing.html @@ -0,0 +1,96 @@ +{{ define "head" }} + + +{{ end }} + +{{ define "main" }} +
+ {{ partial "docs-nav.html" . }} +
+ {{ partial "breadcrumbs" . }} +
+

+ {{ .Title }} +

+ + {{ with .Params.description }}

{{ . | markdownify }}

{{ end }} + + + {{ if .Params.bannerText }} + + {{ partial "banner-article.html" . }} + {{ else }} + + {{ $ancestorDirs := slice }} + {{ with .File }} + {{ $ancestorDirs = split .Dir "/" }} + {{ end }} + {{ $currPage := .Page }} + {{ range $i, $page := $ancestorDirs }} + {{ if and $currPage.Params.bannerText $currPage.Params.bannerChildren }} + {{ partial "banner-article.html" $currPage }} + {{ end }} + {{ $currPage = $currPage.Parent }} + {{ end }} + {{ end }} + + +
+ + + + + + + + + + + + + +
Try these Redis commands
+ PING
+ HSET user:1 name antirez vocation artist
+ HGETALL user:1
+ SET e 2.71
+ INCRBYFLOAT e 0.43
+ RENAME e pi
+ GET pi

+ # See all commands +
+
+
+ {{ partial "icons/cli-circle" (dict "class" "shrink-0 h-[1.0625rem] w-[1.0625rem] fill-slate-50") }} + {{ partial "icons/cli-triangle" (dict "class" "shrink-0 h-[1.0625rem] w-[1.0625rem] fill-slate-50") }} + {{ partial "icons/cli-star" (dict "class" "shrink-0 h-[1.0625rem] w-[1.0625rem] fill-slate-50") }} +
+
+
+PING
+                      
+
+
+
+
+ + {{ .Content }} + {{ if not .Params.hideListLinks }} + + {{ end }} + {{ partial "feedback.html" . }} +
+
+ {{/* partial "docs-toc.html" . */}} +
+{{ end }} diff --git a/layouts/develop/list.html b/layouts/develop/list.html index 2ab017c35..0751f6f19 100644 --- a/layouts/develop/list.html +++ b/layouts/develop/list.html @@ -35,45 +35,6 @@

{{ end }} {{ end }} - -
- - - - - - - - - - - - - -
Try these Redis commands
- PING
- HSET user:1 name antirez vocation artist
- HGETALL user:1
- SET e 2.71
- INCRBYFLOAT e 0.43
- RENAME e pi
- GET pi -
-
-
- {{ partial "icons/cli-circle" (dict "class" "shrink-0 h-[1.0625rem] w-[1.0625rem] fill-slate-50") }} - {{ partial "icons/cli-triangle" (dict "class" "shrink-0 h-[1.0625rem] w-[1.0625rem] fill-slate-50") }} - {{ partial "icons/cli-star" (dict "class" "shrink-0 h-[1.0625rem] w-[1.0625rem] fill-slate-50") }} -
-
-
-PING
-                      
-
-
-
-
- {{ .Content }} {{ if not .Params.hideListLinks }}