From 72f2a8743c0dc250a184a76c377427e5ee8e6dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20S=C3=B6derqvist?= Date: Tue, 14 May 2024 01:12:30 +0200 Subject: [PATCH] Minor fix in module API doc script (#494) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script extracts the comments and prototypes from module.c and does some pre-processing, e.g. converts URLs to markdown links. The URL regexp didn't account for '#', '?' (and a few more chars) so an URL like `https://example.com/#section` was converted to markdown as [https://example.com/](https://example.com/)#section With this change, it's instead correctly converted to [https://example.com/#section](https://example.com/#section) Additional change: Removes an unused metadata field. Signed-off-by: Viktor Söderqvist --- utils/generate-module-api-doc.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/generate-module-api-doc.rb b/utils/generate-module-api-doc.rb index 8ea6d3839..65fdeeaeb 100755 --- a/utils/generate-module-api-doc.rb +++ b/utils/generate-module-api-doc.rb @@ -25,7 +25,7 @@ def markdown(s) # Add backquotes around macro and var names containing underscores. l = l.gsub(/(?\n" puts " Reference for the Valkey Modules API\n" puts "---\n"