Skip to content

Commit

Permalink
Add @deprecated tag to relevant functions
Browse files Browse the repository at this point in the history
  • Loading branch information
berwynhoyt committed Jul 22, 2024
1 parent 9f72c5a commit dbb4eb3
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 31 deletions.
13 changes: 12 additions & 1 deletion docs/config/main.ld
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,16 @@ sort = true
--readme = 'README.md' -- ldoc's rendering isn't very pretty so instead link to README.md on github
--examples = 'examples' -- ldoc doesn't support .ci and .m files so examples are instead links to github

-- format @deprecated tag
custom_display_name_handler = function(item, default_handler)
if item.tags.deprecated then
return default_handler(item) .. (' [deprecated %s]:'):format(item.tags.deprecated[1])
end
return default_handler(item)
end

alias('example', 'usage')
custom_tags = {{'invocation', title='Invocation', hidden=true}}
custom_tags = {
{'invocation', title='Invocation', hidden=true},
{'deprecated', title='Deprecated', hidden=true},
}
13 changes: 12 additions & 1 deletion docs/config/private.ld
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,16 @@ merge = true
--readme = 'README.md' -- ldoc's rendering isn't very pretty so instead link to README.md on github
--examples = 'examples' -- ldoc doesn't support .ci and .m files so examples are instead links to github

-- format @deprecated tag
custom_display_name_handler = function(item, default_handler)
if item.tags.deprecated then
return default_handler(item) .. (' [deprecated %s]:'):format(item.tags.deprecated[1])
end
return default_handler(item)
end

alias('example', 'usage')
custom_tags = {{'invocation', title='Invocation', hidden=true}}
custom_tags = {
{'invocation', title='Invocation', hidden=true},
{'deprecated', title='Deprecated', hidden=true},
}
13 changes: 12 additions & 1 deletion docs/config/ydb.ld
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,16 @@ backtick_references = true
format = 'markdown'
sort = true

-- format @deprecated tag
custom_display_name_handler = function(item, default_handler)
if item.tags.deprecated then
return default_handler(item) .. (' [deprecated %s]:'):format(item.tags.deprecated[1])
end
return default_handler(item)
end

alias('example', 'usage')
custom_tags = {{'invocation', title='Invocation', hidden=true}}
custom_tags = {
{'invocation', title='Invocation', hidden=true},
{'deprecated', title='Deprecated', hidden=true},
}
Loading

0 comments on commit dbb4eb3

Please sign in to comment.