# * `nitdoc` wikilinks like `[[doc: MEntity::name]]`
module doc_commands
-import doc_base
-
# A command aimed at a documentation tool like `nitdoc` or `nitx`.
#
# `DocCommand` are generally of the form `command: args`.
return new ArticleCommand(command_string)
else if command_string.has_prefix("comment:") then
return new CommentCommand(command_string)
+ else if command_string.has_prefix("list:") then
+ return new ListCommand(command_string)
else if command_string.has_prefix("param:") then
return new ParamCommand(command_string)
else if command_string.has_prefix("return:") then
return new CallCommand(command_string)
else if command_string.has_prefix("code:") then
return new CodeCommand(command_string)
+ else if command_string.has_prefix("graph:") then
+ return new GraphCommand(command_string)
end
return new UnknownCommand(command_string)
end
super AbstractDocCommand
end
+# A `DocCommand` that includes a list of something.
+#
+# Syntax: `list:kind: <arg>`.
+class ListCommand
+ super AbstractDocCommand
+end
+
# A `DocCommand` that includes the list of methods tanking a `MType` as parameter.
#
# Syntax: `param: MType`.
class CodeCommand
super AbstractDocCommand
end
+
+# A `DocCommand` that display an graph for a `MEntity`.
+#
+# Syntax:
+# * `graph: MEntity::name`
+class GraphCommand
+ super AbstractDocCommand
+end