mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Implement a new element in AstXML for AMI actions documentation.
A new xml element was created to manage the AMI actions documentation, using AstXML. To register a manager action using XML documentation it is now possible using ast_manager_register_xml(). The CLI command 'manager show command' can be used to show the parsed documentation. Example manager xml documentation: <manager name="ami action name" language="en_US"> <synopsis> AMI action synopsis. </synopsis> <syntax> <xi:include xpointer="xpointer(...)" /> <-- for ActionID <parameter name="header1" required="true"> <para>Description</para> </parameter> ... </syntax> <description> <para>AMI action description</para> </description> <see-also> ... </see-also> </manager> git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@196308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!ELEMENT docs (application|function|agi)*>
|
||||
<!ELEMENT docs (application|function|agi|manager)*>
|
||||
<!ATTLIST docs xmlns:xi CDATA #FIXED "http://www.w3.org/2001/XInclude">
|
||||
|
||||
<!ELEMENT xi:include (xi:fallback?) >
|
||||
@@ -23,6 +23,10 @@
|
||||
<!ATTLIST agi name CDATA #REQUIRED>
|
||||
<!ATTLIST agi language CDATA #REQUIRED>
|
||||
|
||||
<!ELEMENT manager (synopsis?,syntax?,description?,see-also?)>
|
||||
<!ATTLIST manager name CDATA #REQUIRED>
|
||||
<!ATTLIST manager language CDATA #REQUIRED>
|
||||
|
||||
<!ELEMENT see-also (ref|xi:include)*>
|
||||
|
||||
<!ELEMENT ref (#PCDATA)>
|
||||
|
Reference in New Issue
Block a user