DOC-3932: remove frontmatter attributes from module API spec generator (#13377)

This PR removes the Hugo frontmatter from this utility.
This commit is contained in:
David Dougherty 2024-07-01 22:25:42 -07:00 committed by GitHub
parent 799c5e5f51
commit c6ceea9a23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 11 deletions

View File

@ -137,18 +137,8 @@ def is_func_line(src, i)
src[i-1] =~ /\*\//
end
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 " utils/generate-module-api-doc.rb -->\n\n"
puts " redis/redis:utils/generate-module-api-doc.rb -->\n\n"
src = File.open(File.dirname(__FILE__) ++ "/../src/module.c").to_a
# Build function index