diff --git a/_config.yml b/_config.yml index 6fd6c75a46..5200d17f38 100644 --- a/_config.yml +++ b/_config.yml @@ -20,8 +20,7 @@ collections: extension: slug: extension name: Specification Extension Registry - output: false - hidden: true + output: true permalink: /registry/:collection/:title draft-feature: slug: draft-feature diff --git a/_includes/extension-entry.md b/_includes/extension-entry.md new file mode 100644 index 0000000000..ee2dd4a504 --- /dev/null +++ b/_includes/extension-entry.md @@ -0,0 +1,16 @@ +# {{ page.collection }} + +## {{ page.slug }} - {{ page.description }} + +{{ include.summary }} + +### Schema + +```yaml +{{page.schema}} +``` + +### Example + +{{ include.example }} + diff --git a/registries/_extension/x-twitter.md b/registries/_extension/x-twitter.md index 0b05ec9910..6fe0ea333c 100644 --- a/registries/_extension/x-twitter.md +++ b/registries/_extension/x-twitter.md @@ -8,20 +8,11 @@ objects: [ "contactObject" ] layout: default --- -# {{ page.collection }} - -## {{ page.slug }} - {{ page.description }} - +{% capture summary %} The `x-twitter` extension is used to hold a reference to the API provider's Twitter account. It can appear as a property in the following objects: `{{page.objects|jsonify}}`. +{% endcapture %} -### Schema - -```yaml -{{page.schema}} -``` - -### Example - +{% capture example %} ```yaml openapi: 3.0.0 info: @@ -34,4 +25,6 @@ info: Used by: (informational) * APIs.guru +{% endcapture %} +{% include extension-entry.md summary=summary example=example %}