mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
documentation: Update Gosub, Goto, and add new documentationtype.
Gosub and Goto were not displaying their syntax correctly on the docs
site. This change adds a new way to specify an optional context, an
optional extension, and a required priority that the xml stylesheet can
parse without having to know which optional parameters come in which
order. In Asterisk, it looks like this:
parameter name="context" documentationtype="dialplan_context"
parameter name="extension" documentationtype="dialplan_extension"
parameter name="priority" documentationtype="dialplan_priority" required="true"
The stylesheet will ignore the context and extension parameters, but for
priority, it will automatically inject the following:
[[context,]extension,]priority
This is the correct oder for applications such as Gosub and Goto.
(cherry picked from commit 6921ede7cb
)
This commit is contained in:
committed by
Asterisk Development Team
parent
6bd4446f0f
commit
d9b715a582
@@ -122,7 +122,7 @@
|
||||
|
||||
<!ELEMENT description (para|note|warning|variablelist|enumlist|info|example|xi:include)*>
|
||||
|
||||
<!ELEMENT parameter (optionlist|enumlist|argument|para|note|warning|parameter|info|xi:include)*>
|
||||
<!ELEMENT parameter (optionlist|enumlist|argument|para|note|warning|parameter|info|documentationtype|xi:include)*>
|
||||
<!ATTLIST parameter name CDATA "">
|
||||
<!ATTLIST parameter required (yes|no|true|false) "false">
|
||||
<!ATTLIST parameter multiple (yes|no|true|false) "false">
|
||||
@@ -130,6 +130,7 @@
|
||||
<!ATTLIST parameter literal (yes|no|true|false) "false">
|
||||
<!ATTLIST parameter default CDATA "">
|
||||
<!ATTLIST parameter argsep CDATA ",">
|
||||
<!ATTLIST parameter documentationtype CDATA "">
|
||||
|
||||
<!ELEMENT optionlist (option+)>
|
||||
<!ELEMENT option (argument|para|note|warning|variablelist|enumlist|info|xi:include)*>
|
||||
|
Reference in New Issue
Block a user