Skip to content

Commit 69ebe87

Browse files
committed
enhance: openapi3/openapi3html: update support for generic external doc URLs
1 parent 96903e8 commit 69ebe87

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

openapi3/openapi3html/openapi3html/page.qtpl

+4-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ var table = new Tabulator("#{%s data.TableDomID %}", {
100100
columns: {%z= data.TabulatorColumnsJSONBytesOrEmpty() %},
101101
rowClick:function(e, row){
102102
var data = row.getData();
103-
var baseURL = "https://developers.ringcentral.com/api-reference/";
104-
baseURL += data["Tags"].replace(/\s+/g, '-') + "/" + data["OperationID"];
105-
window.open(baseURL, '_blank');
103+
var docsURL = data["DocsURL"];
104+
if ((docsURL?.trim()?.length || 0) > 0) {
105+
window.open(docsURL, '_blank');
106+
}
106107
},
107108
});
108109
</script>

openapi3/openapi3html/page_qtpl.go

+17-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)