Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion content/develop/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
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]({{< relref "/develop/tools" >}}):

{{< client-splash >}}

{{< dev-features >}}
96 changes: 96 additions & 0 deletions layouts/develop/list-landing.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{{ define "head" }}
<script src='{{ relURL "js/cli.js" }}' defer></script>
<script src='{{ relURL "js/codetabs.js" }}' defer></script>
{{ end }}

{{ define "main" }}
<main class="docs w-full max-w-[1920px] mx-auto px-5 flex flex-col md:flex-row overflow-hidden">
{{ partial "docs-nav.html" . }}
<div class="w-full py-12 md:pl-4 xl:px-16 overflow-hidden">
{{ partial "breadcrumbs" . }}
<section class="prose w-full py-12 max-w-none">
<h1>
{{ .Title }}
</h1>

{{ with .Params.description }}<p class="text-lg -mt-5 mb-10">{{ . | markdownify }}</p>{{ end }}

<!-- In-page banner -->
{{ if .Params.bannerText }}
<!-- Banner params are in the current page's front matter -->
{{ partial "banner-article.html" . }}
{{ else }}
<!-- Iterate through the page's ancestors to determine if a
section-wide banner is enabled by a parent page's front matter -->
{{ $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 }}

<!-- Responsive CLI Display Block as Table -->
<div class="overflow-x-auto">
<table class="w-full border-collapse md:table" style="background-color: rgb(240,240,240);">
<thead>
<tr>
<th class="p-4 text-left">Try these Redis commands</th>
<th class="p-4 text-left hidden md:table-cell">Redis CLI</th>
</tr>
</thead>
<tbody>
<tr class="flex flex-col md:table-row">
<td class="align-top p-4 w-full md:w-[40%] text-base font-mono">
<code><a href="/commands/ping">PING</a></code></br>
<code><a href="/commands/hset">HSET</a> user:1 name antirez vocation artist</code></br>
<code><a href="/commands/hgetall">HGETALL</a> user:1</code></br>
<code><a href="/commands/set">SET</a> e 2.71</code></br>
<code><a href="/commands/incrbyfloat">INCRBYFLOAT</a> e 0.43</code></br>
<code><a href="/commands/rename">RENAME</a> e pi</code></br>
<code><a href="/commands/get">GET</a> pi</code><br/><br/>
# <a href='{{ relURL "/commands/"}}'>See all commands</a>
</td>
<td class="align-top p-4 w-full md:w-[60%]">
<div class="bg-slate-900 rounded-xl shadow-lg shadow-slate-900/10 h-60 overflow-y-auto">
<div class="border-b border-slate-700 rounded-t-xl px-4 py-3 w-full flex">
{{ 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") }}
</div>
<form class="redis-cli" typewriter>
<pre tabindex="0" class="whitespace-pre">
PING
</pre>
</form>
</div>
</td>
</tr>
</tbody>
</table>
</div>

{{ .Content }}
{{ if not .Params.hideListLinks }}
<nav>
{{ range .CurrentSection.Pages }}
<a href="{{ .RelPermalink }}"{{ with .Params.manualLinkTitle }} title="{{ . }}"{{ end }}{{ with .Params.manualLinkTarget }} target="{{ . }}"{{ if eq . "_blank" }} rel="noopener"{{ end }}{{ end }}>{{- .Title -}}</a>
{{ if .Description }}
<p>{{ .Description | markdownify }}</p>
{{ else }}
<br /><br />
{{ end }}
{{ end }}
</nav>
{{ end }}
{{ partial "feedback.html" . }}
</section>
</div>
{{/* partial "docs-toc.html" . */}}
</main>
{{ end }}
39 changes: 0 additions & 39 deletions layouts/develop/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,45 +35,6 @@ <h1>
{{ end }}
{{ end }}

<!-- Responsive CLI Display Block as Table -->
<div class="overflow-x-auto">
<table class="w-full border-collapse md:table">
<thead>
<tr>
<th class="p-4 text-left">Try these Redis commands</th>
<th class="p-4 text-left hidden md:table-cell">Redis CLI</th>
</tr>
</thead>
<tbody>
<tr class="flex flex-col md:table-row">
<td class="align-top p-4 w-full md:w-[40%] text-base font-mono">
<code><a href="/commands/ping">PING</a></code></br>
<code><a href="/commands/hset">HSET</a> user:1 name antirez vocation artist</code></br>
<code><a href="/commands/hgetall">HGETALL</a> user:1</code></br>
<code><a href="/commands/set">SET</a> e 2.71</code></br>
<code><a href="/commands/incrbyfloat">INCRBYFLOAT</a> e 0.43</code></br>
<code><a href="/commands/rename">RENAME</a> e pi</code></br>
<code><a href="/commands/get">GET</a> pi</code>
</td>
<td class="align-top p-4 w-full md:w-[60%]">
<div class="bg-slate-900 rounded-xl shadow-lg shadow-slate-900/10 h-60 overflow-y-auto">
<div class="border-b border-slate-700 rounded-t-xl px-4 py-3 w-full flex">
{{ 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") }}
</div>
<form class="redis-cli" typewriter>
<pre tabindex="0" class="whitespace-pre">
PING
</pre>
</form>
</div>
</td>
</tr>
</tbody>
</table>
</div>

{{ .Content }}
{{ if not .Params.hideListLinks }}
<nav>
Expand Down
111 changes: 111 additions & 0 deletions layouts/shortcodes/client-splash.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<table>
<tr>
<td>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove these three lines, which cause the footer to behave erratically.

<table>
<tr>
<th></th>
<th style="text-align:center">Getting started</th>
<th style="text-align:center">Document search</th>
<th style="text-align:center">Vector search</th>
</tr>
<tr>
<td><a href='{{- relref . "/develop/clients/redis-py" -}}'>Python</a></td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/redis-py/connect" -}}'>&#9989;</a>
</td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/redis-py/queryjson" -}}'>&#9989;</a>
</td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/redis-py/vecsearch" -}}'>&#9989;</a>
</td>
</tr>
<tr>
<td><a href='{{- relref . "/develop/clients/dotnet" -}}'>C#/.NET</a></td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/dotnet/connect" -}}'>&#9989;</a>
</td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/dotnet/queryjson" -}}'>&#9989;</a>
</td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/dotnet/vecsearch" -}}'>&#9989;</a>
</td>
</tr>
<tr>
<td><a href='{{- relref . "/develop/clients/nodejs" -}}'>Node.js</a></td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/nodejs/connect" -}}'>&#9989;</a>
</td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/nodejs/queryjson" -}}'>&#9989;</a>
</td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/nodejs/vecsearch" -}}'>&#9989;</a>
</td>
</tr>
<tr>
<td><a href='{{- relref . "/develop/clients/jedis" -}}'>Java</a></td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/jedis/connect" -}}'>&#9989;</a>
</td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/jedis/queryjson" -}}'>&#9989;</a>
</td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/jedis/vecsearch" -}}'>&#9989;</a>
</td>
</tr>
<tr>
<td><a href='{{- relref . "/develop/clients/go" -}}'>Go</a></td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/go/connect" -}}'>&#9989;</a>
</td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/go/queryjson" -}}'>&#9989;</a>
</td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/go/vecsearch" -}}'>&#9989;</a>
</td>
</tr>
<tr>
<td><a href='{{- relref . "/develop/clients/php" -}}'>PHP</a></td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/php/connect" -}}'>&#9989;</a>
</td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/php/queryjson" -}}'>&#9989;</a>
</td>
<td style="text-align:center">
<a href='{{- relref . "/develop/clients/php/vecsearch" -}}'>&#9989;</a>
</td>
</tr>
<tr>
<td colspan="4">
<img
style="float: left;padding-left: 5%;padding-right: 5%;padding-top:0"
src='{{- relURL "/develop/tools/insight/images/Browser.png" -}}'
width="300px"
/>
<p>
<a href='{{ relURL "/develop/tools/insight" }}'><strong>Redis Insight</strong></a><br/>
Visual client tool for creating, managing, and analyzing
Redis databases.
</p>
</td>
</tr>
<tr>
<td colspan="4">
<img
style="float: left;padding-left: 5%;padding-right: 5%"
src='{{- relURL "/images/dev/connect/vscode/vscode-cli.png" -}}'
width="300px"
/>
<p>
<a href='{{ relURL "/develop/tools/redis-for-vscode" }}'><strong>Redis for VSCode</strong></a><br/>
Create and manage Redis databases directly from a <a href="https://code.visualstudio.com/">VSCode</a>
window using our editor extension.
</p>
</td>
</tr>
</table>
55 changes: 55 additions & 0 deletions layouts/shortcodes/dev-features.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<table>
<tr>
<th>
<a href='{{ relref . "/develop/get-started" }}'>
<img src={{ relURL "/images/icon_logo/icon-developers-32-midnight.png" }}/>
<strong>Quick start</strong>
</a>
</th>
<th>
<a href='{{ relref . "/develop/data-types" }}'>
<img src={{ relURL "/images/icon_logo/icon-data-structures-32-midnight.png" }}/>
<strong>Data types</strong>
</a>
</th>
<th>
<a href='{{ relref . "/develop/interact/search-and-query" }}'>
<img src={{ relURL "/images/icon_logo/icon-text-search-32-midnight.png" }}/>
<strong>Query engine</strong>
</a>
</th>
</tr>
<tr>
<td>
<ul style="list-style-type: none; padding-left:0%;margin-left:-2%">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace styling with this Tailwind CSS class:

class="list-none pl-0 -ml-[2%]"

Same for the other instances further down.

<li><a href='{{ relref . "/develop/get-started/vector-database" }}'>Vector database</a></li>
<li><a href='{{ relref . "/develop/get-started/document-database" }}'>Document store</a></li>
<li><a href='{{ relref . "/develop/get-started/data-store" }}'>Data structure store</a></li>
<li><a href='{{ relref . "/develop/get-started/rag" }}'>RAG with Redis</a></li>
<li><a href='/develop/get-started/redis-in-ai'>GenAI</a></li>
</ul>
</td>
<td>
<ul style="list-style-type: none; padding-left:0%;margin-left:-2%">
<li><a href='{{ relref . "/develop/data-types/strings" }}'>String</a></li>
<li><a href='{{ relref . "/develop/data-types/json" }}'>JSON</a></li>
<li><a href='{{ relref . "/develop/data-types/hashes" }}'>Hash</a></li>
<li><a href='{{ relref . "/develop/data-types/vector-sets" }}'>Vector set</a></li>
<li><a href='{{ relref . "/develop/data-types/probabilistic" }}'>Probabilistic</a></li>
</ul>
</td>
<td>
<ul style="list-style-type: none; padding-left:0%;margin-left:-2%">
<li><a href='{{ relref . "/develop/interact/search-and-query" }}'>Get started</a></li>
<li><a href='{{ relref . "/develop/interact/search-and-query/basic-constructs/field-and-type-options" }}'>Schema field types</a></li>
<li><a href='{{ relref . "/develop/interact/search-and-query/indexing" }}'>Indexing</a></li>
<li><a href='{{ relref . "/develop/interact/search-and-query/query" }}'>Querying</a></li>
<li><a href='{{ relref . "/develop/interact/search-and-query/query-use-cases" }}'>Use cases</a></li>
</ul>
</td>
</tr>
</table>




Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.