diff --git a/.redocly.yaml b/.redocly.yaml index c8e29f87e3..a97fdb6ba2 100644 --- a/.redocly.yaml +++ b/.redocly.yaml @@ -18,6 +18,7 @@ apis: admin-capella: root: "./docs/api/admin-capella.yaml" decorators: + plugin/excise-rbac-capella: on filter-out: property: x-capella value: false @@ -36,6 +37,8 @@ apis: value: false info-override: description: "App Services manages access and synchronization between Couchbase Lite and Couchbase Capella" + title: "App Services" + plugin/excise-rbac-capella: on plugin/replace-description-capella: on plugin/replace-server-capella: serverUrl: 'https://{hostname}:4984' diff --git a/docs/api/plugins/decorators/excise-rbac-capella.js b/docs/api/plugins/decorators/excise-rbac-capella.js index afe1feef3e..fce8c1bfa7 100644 --- a/docs/api/plugins/decorators/excise-rbac-capella.js +++ b/docs/api/plugins/decorators/excise-rbac-capella.js @@ -23,7 +23,7 @@ function ExciseRBACCapella() { Operation: { leave(Operation) { // remove all text after first regex match - idx = Operation.description.search(re); + idx = (Operation.description || '').search(re); if (idx > 0) { Operation.description = Operation.description.substr(0, idx); } diff --git a/docs/api/plugins/decorators/replace-description-capella.js b/docs/api/plugins/decorators/replace-description-capella.js index 252d3947fb..4c146cfe3a 100644 --- a/docs/api/plugins/decorators/replace-description-capella.js +++ b/docs/api/plugins/decorators/replace-description-capella.js @@ -20,10 +20,12 @@ function ReplaceDescriptionCapella() { return { Operation: { leave(Operation) { - Operation.description = Operation.description.replace( - "Sync Gateway", - "App Services", - ); + if (Operation.description) { + Operation.description = Operation.description.replace( + "Sync Gateway", + "App Services", + ); + } }, }, };