Injects Hugo FrontMatter to module-api.md (#10658)

This commit is contained in:
Itamar Haber 2022-04-28 08:16:20 +03:00 committed by GitHub
parent f36eac9f68
commit 6c65345edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,16 @@ def is_func_line(src, i)
src[i-1] =~ /\*\// src[i-1] =~ /\*\//
end 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 "<!-- This file is generated from module.c using\n" puts "<!-- This file is generated from module.c using\n"
puts " utils/generate-module-api-doc.rb -->\n\n" puts " utils/generate-module-api-doc.rb -->\n\n"
src = File.open(File.dirname(__FILE__) ++ "/../src/module.c").to_a src = File.open(File.dirname(__FILE__) ++ "/../src/module.c").to_a