Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6c65345e
Unverified
Commit
6c65345e
authored
Apr 28, 2022
by
Itamar Haber
Committed by
GitHub
Apr 28, 2022
Browse files
Injects Hugo FrontMatter to module-api.md (#10658)
parent
f36eac9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/generate-module-api-doc.rb
View file @
6c65345e
...
@@ -137,7 +137,16 @@ def is_func_line(src, i)
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment