Skip to content

Commit e6c6448

Browse files
authored
DEV: add banner to modules API page (redis#3369)
1 parent 17de623 commit e6c6448

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

content/develop/reference/modules/modules-api-ref.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
bannerText: This page is generated automatically from the Redis source code. To report an issue, please [open one on the redis/redis repo](https://github.com/redis/redis/issues/new?title=Feedback%20on%20Modules%20API%20reference).
23
categories:
34
- docs
45
- develop
@@ -10,6 +11,7 @@ categories:
1011
- kubernetes
1112
- clients
1213
description: Reference for the Redis Modules API
14+
hideEditLinks: true
1315
linkTitle: API reference
1416
title: Modules API reference
1517
weight: 1

layouts/partials/meta-links.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
{{ end }}
3333

3434
<nav class="flex flex-col gap-3 pb-3 w-52 text-redis-pencil-600 border-b border-b-redis-pen-700 border-opacity-50">
35+
{{ if not .Params.hideEditLinks }}
3536
<a {{ printf "href=%q" $editURL | safeHTMLAttr }} target="_blank" class="group inline-flex items-center gap-1 hover:text-redis-pen-400 mt-auto self-start">
3637
<svg class="w-4 h-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
3738
<path d="M11 44q-1.2 0-2.1-.9Q8 42.2 8 41V7q0-1.2.9-2.1Q9.8 4 11 4h17l12 12v7.8h-3V18H26V7H11v34h15v3Zm0-3V7v34Zm26.8-11.15 1.4 1.4-8.2 8.2V42h2.55l8.2-8.2 1.4 1.4-8.8 8.8H29v-5.35Zm5.35 5.35-5.35-5.35 3.05-3.05q.45-.45 1.05-.45.6 0 1.05.45l3.25 3.25q.45.45.45 1.05 0 .6-.45 1.05Z" fill="currentColor" />
@@ -44,6 +45,7 @@
4445
</svg>
4546
Create an issue
4647
</a>
48+
{{ end }}
4749
{{ if $markdownURL }}
4850
<a href="#" onclick="downloadMarkdown('{{ $markdownURL }}', '{{ $filename }}'); return false;" class="group inline-flex items-center gap-1 hover:text-redis-pen-400 mt-auto self-start">
4951
<svg class="w-4 h-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">

0 commit comments

Comments
 (0)