Skip to content

Commit 8877a67

Browse files
committed
attempt to generic api reference
1 parent c3df7c3 commit 8877a67

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
2-
Title: API Reference
2+
Title: Redis Cloud API
3+
linkTitle: API reference
34
layout: apireference
45
type: page
6+
params:
7+
sourcefile: ./openapi.json
58
---

layouts/_default/apireference.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33

44
<head>
5-
<title>Redis Cloud API</title>
5+
<title>{{ .Title }}</title>
66
{{ partial "scss.html" (dict "path" "scss/style.scss") }}
77
{{ partial "css.html" (dict "path" "css/index.css") }}
88
{{ $relref := printf "%s%s" .Site.BaseURL "operate/rc/api/" }}
@@ -62,7 +62,7 @@
6262
<body>
6363
<div>
6464
<redoc
65-
spec-url='./openapi.json'
65+
spec-url='{{ .Params.sourcefile }}'
6666
scroll-y-offset='#apiReferenceHeader'
6767
json-sample-expand-level=all
6868
sort-operations-alphabetically="true"

0 commit comments

Comments
 (0)