From 8877a679358ad8f78486a1bcb0c60baaf6d7b9d2 Mon Sep 17 00:00:00 2001 From: Cameron Bates Date: Mon, 16 Jun 2025 10:30:02 -0400 Subject: [PATCH 1/3] attempt to generic api reference --- content/operate/rc/api/api-reference.md | 5 ++++- layouts/_default/apireference.html | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/content/operate/rc/api/api-reference.md b/content/operate/rc/api/api-reference.md index 3188f697d0..24d4b59495 100644 --- a/content/operate/rc/api/api-reference.md +++ b/content/operate/rc/api/api-reference.md @@ -1,5 +1,8 @@ --- -Title: API Reference +Title: Redis Cloud API +linkTitle: API reference layout: apireference type: page +params: + sourcefile: ./openapi.json --- diff --git a/layouts/_default/apireference.html b/layouts/_default/apireference.html index 2aec3f707d..85b201e4a2 100644 --- a/layouts/_default/apireference.html +++ b/layouts/_default/apireference.html @@ -2,7 +2,7 @@ - Redis Cloud API + {{ .Title }} {{ partial "scss.html" (dict "path" "scss/style.scss") }} {{ partial "css.html" (dict "path" "css/index.css") }} {{ $relref := printf "%s%s" .Site.BaseURL "operate/rc/api/" }} @@ -62,7 +62,7 @@
Date: Wed, 18 Jun 2025 12:21:08 -0400 Subject: [PATCH 2/3] Add defaults, dynamically generate back to docs link, and change RDI API to use the generic api layout --- .../reference/api-reference.md | 5 ++- content/operate/rc/api/api-reference.md | 2 - layouts/_default/apireference.html | 45 ++++++++++++++++++- 3 files changed, 46 insertions(+), 6 deletions(-) diff --git a/content/integrate/redis-data-integration/reference/api-reference.md b/content/integrate/redis-data-integration/reference/api-reference.md index 3dc0e763b7..c0a06d10f7 100644 --- a/content/integrate/redis-data-integration/reference/api-reference.md +++ b/content/integrate/redis-data-integration/reference/api-reference.md @@ -1,5 +1,6 @@ --- -Title: RDI API Reference -layout: rdiapireference +linkTitle: RDI API Reference +Title: Redis Data Integration API +layout: apireference type: page --- diff --git a/content/operate/rc/api/api-reference.md b/content/operate/rc/api/api-reference.md index 24d4b59495..8c467ced14 100644 --- a/content/operate/rc/api/api-reference.md +++ b/content/operate/rc/api/api-reference.md @@ -3,6 +3,4 @@ Title: Redis Cloud API linkTitle: API reference layout: apireference type: page -params: - sourcefile: ./openapi.json --- diff --git a/layouts/_default/apireference.html b/layouts/_default/apireference.html index 85b201e4a2..ad0ab238b1 100644 --- a/layouts/_default/apireference.html +++ b/layouts/_default/apireference.html @@ -1,11 +1,52 @@ + {{ .Title }} {{ partial "scss.html" (dict "path" "scss/style.scss") }} {{ partial "css.html" (dict "path" "css/index.css") }} - {{ $relref := printf "%s%s" .Site.BaseURL "operate/rc/api/" }} + {{ $relref := .Parent.Permalink }} + {{ if .Params.backLink}} + {{ $relref = printf "%s%s" .Site.BaseURL .Params.backLink }} + {{ end }} - - - - -
- -
- - - - - - -
- - - -
- - - \ No newline at end of file