Skip to content
Snippets Groups Projects
Commit 1d9ea900 authored by George Joseph's avatar George Joseph Committed by Asterisk Development Team
Browse files

ari-stubs: Fix more local anchor references

Also allow CreateDocs job to be run manually with default branches.

(cherry picked from commit b7dae87d1ddc92c0b408199fd8c331b253709c0c)
parent e5a65362
Branches
Tags
1 merge request!193Merge tag '20.8.1' into 'merge-asterisk-20.8.1'
...@@ -5,6 +5,7 @@ on: ...@@ -5,6 +5,7 @@ on:
branches: branches:
description: "JSON array of branches: ['18','20'] (no spaces)" description: "JSON array of branches: ['18','20'] (no spaces)"
required: true required: true
default: ${{ vars.WIKIDOCS_ENABLE }}
type: string type: string
schedule: schedule:
# Times are UTC # Times are UTC
......
...@@ -5,14 +5,14 @@ ...@@ -5,14 +5,14 @@
|:------ |:------------------------------------ |:------------ |:------- | |:------ |:------------------------------------ |:------------ |:------- |
{{#apis}} {{#apis}}
{{#operations}} {{#operations}}
| {{http_method}} | [{{wiki_path}}](#{{nickname}}) | {{#response_class}}{{#is_primitive}}{{name}}{{/is_primitive}}{{^is_primitive}}[{{wiki_name}}]({{wiki_prefix}}Asterisk_REST_Data_Models#{{lc_singular_name}}){{/is_primitive}}{{/response_class}} | {{{summary}}} | | {{http_method}} | [{{wiki_path}}](#{{nickname_lc}}) | {{#response_class}}{{#is_primitive}}{{name}}{{/is_primitive}}{{^is_primitive}}[{{wiki_name}}]({{wiki_prefix}}Asterisk_REST_Data_Models#{{lc_singular_name}}){{/is_primitive}}{{/response_class}} | {{{summary}}} |
{{/operations}} {{/operations}}
{{/apis}} {{/apis}}
{{#apis}} {{#apis}}
{{#operations}} {{#operations}}
--- ---
[//]: # (anchor:{{nickname}}) [//]: # (anchor:{{nickname_lc}})
## {{nickname}} ## {{nickname}}
### {{http_method}} {{wiki_path}} ### {{http_method}} {{wiki_path}}
{{{wiki_summary}}}{{#wiki_notes}} {{{wiki_notes}}}{{/wiki_notes}} {{{wiki_summary}}}{{#wiki_notes}} {{{wiki_notes}}}{{/wiki_notes}}
......
...@@ -367,6 +367,7 @@ class Operation(Stringify): ...@@ -367,6 +367,7 @@ class Operation(Stringify):
def __init__(self): def __init__(self):
self.http_method = None self.http_method = None
self.nickname = None self.nickname = None
self.nickname_lc = None
self.response_class = None self.response_class = None
self.parameters = [] self.parameters = []
self.summary = None self.summary = None
...@@ -378,6 +379,7 @@ class Operation(Stringify): ...@@ -378,6 +379,7 @@ class Operation(Stringify):
validate_required_fields(op_json, self.required_fields, context) validate_required_fields(op_json, self.required_fields, context)
self.http_method = op_json.get('httpMethod') self.http_method = op_json.get('httpMethod')
self.nickname = op_json.get('nickname') self.nickname = op_json.get('nickname')
self.nickname_lc = self.nickname.lower()
response_class = op_json.get('responseClass') response_class = op_json.get('responseClass')
self.response_class = response_class and SwaggerType().load( self.response_class = response_class and SwaggerType().load(
response_class, processor, context) response_class, processor, context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment