Adds [discrete] to common parameters and API titles when generating API docs (#1316)

This commit is contained in:
István Zoltán Szabó
2020-09-28 10:14:53 +02:00
committed by GitHub
parent 88ef53b0ef
commit 93990b88fb

View File

@ -111,6 +111,7 @@ function generateDocs (common, spec) {
function commonParameters (spec) { function commonParameters (spec) {
var doc = dedent` var doc = dedent`
[discrete]
=== Common parameters === Common parameters
Parameters that are accepted by all API endpoints. Parameters that are accepted by all API endpoints.
@ -210,6 +211,7 @@ function generateApiDoc (spec) {
: `*Stability:* ${spec[name].stability}` : `*Stability:* ${spec[name].stability}`
var doc = dedent` var doc = dedent`
[discrete]
=== ${camelify(name)} === ${camelify(name)}
${stability} ${stability}
[source,ts] [source,ts]