From 6c65345edb891da558a6cf53861e98bf2e0dbb63 Mon Sep 17 00:00:00 2001 From: Itamar Haber Date: Thu, 28 Apr 2022 08:16:20 +0300 Subject: [PATCH] Injects Hugo FrontMatter to module-api.md (#10658) --- utils/generate-module-api-doc.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/utils/generate-module-api-doc.rb b/utils/generate-module-api-doc.rb index c6872e903..cba08f765 100755 --- a/utils/generate-module-api-doc.rb +++ b/utils/generate-module-api-doc.rb @@ -137,7 +137,16 @@ def is_func_line(src, i) src[i-1] =~ /\*\// end -puts "# Modules API reference\n\n" +puts "---\n" +puts "title: "Modules API reference"\n" +puts "linkTitle: "API reference"\n" +puts "weight: 1\n" +puts "description: >\n" +puts " Reference for the Redis Modules API\n" +puts "aliases:\n" +puts " - /topics/modules-api-ref\n" +puts "---\n" +puts "\n" puts "\n\n" src = File.open(File.dirname(__FILE__) ++ "/../src/module.c").to_a