Skip to content

Commit

Permalink
update autodoc-conf-ee script with latest badges
Browse files Browse the repository at this point in the history
  • Loading branch information
lena-larionova committed Aug 1, 2023
1 parent ee4ca47 commit a214bd4
Showing 1 changed file with 30 additions and 27 deletions.
57 changes: 30 additions & 27 deletions autodoc-conf-ee/run.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,44 +192,47 @@ for _, section in ipairs(parsed) do

else
write("### " .. var.name)
if string.match(var.name, "admin_gui_auth") then
write("{:.badge .enterprise}")

elseif string.match(var.name, "admin_gui_session") then
write("{:.badge .enterprise}")

elseif string.match(var.name, "cluster_telemetry") then
write("{:.badge .enterprise}")

elseif string.match(var.name, "cluster_fallback") then
write("{:.badge .enterprise}")

elseif string.match(var.name, "rbac") then
if string.match(var.name, "admin_gui_auth") or
string.match(var.name, "admin_gui_session") or
string.match(var.name, "cluster_telemetry") or
string.match(var.name, "cluster_fallback") or
string.match(var.name, "rbac") or
string.match(var.name, "event_hooks") or
string.match(var.name, "keyring") or
then
write("{:.badge .enterprise}")

elseif string.match(var.name, "event_hooks") then
elseif string.match(var.name, "debug_")
and not string.match(var.name, "allow_debug_header")
then
write("{:.badge .enterprise}")

elseif string.match(var.name, "keyring") then
elseif string.match(var.name, "vault_")
and not string.match(var.name, "vault_env")
then
write("{:.badge .enterprise}")

elseif string.match(section.name, "PORTAL") then
elseif string.match(section.name, "PORTAL") or
string.match(section.name, "VITALS") or
string.match(section.name, "SMTP") or
string.match(section.name, "GRANULAR TRACING") or
string.match(section.name, "ROUTE COLLISION")
then
write("{:.badge .enterprise}")

elseif string.match(section.name, "KONG MANAGER") then
elseif string.match(section.name, "KONG MANAGER")
and not string.match(var.name, "admin_gui_listen")
and not string.match(var.name, "admin_gui_url")
and not string.match(var.name, "admin_gui_path")
and not string.match(var.name, "admin_gui_path_url")
and not string.match(var.name, "admin_gui_ssl_cert")
and not string.match(var.name, "admin_gui_ssl_cert_key")
and not string.match(var.name, "admin_gui_access_log")
and not string.match(var.name, "admin_gui_error_log")
then
write("{:.badge .free}")

elseif string.match(section.name, "VITALS") then
write("{:.badge .enterprise}")

elseif string.match(section.name, "SMTP") then
write("{:.badge .enterprise}")

elseif string.match(section.name, "GRANULAR TRACING") then
write("{:.badge .enterprise}")

elseif string.match(section.name, "ROUTE COLLISION") then
write("{:.badge .enterprise}")
end
write("")
write(format_description(var.description))
Expand Down

0 comments on commit a214bd4

Please sign in to comment.