Skip to content

Commit 183ddc0

Browse files
authored
Merge pull request #3829 from Bellangelo/encapsulate-namespaces-page-layout
Encapsulate page layout for namespaces
2 parents 7ec03d3 + 26fa6be commit 183ddc0

File tree

4 files changed

+21
-31
lines changed

4 files changed

+21
-31
lines changed

_includes/namespace-entry.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# <a href="..">{{ page.collection }}</a>
2+
3+
## {{ page.slug }} - {{ page.description }}
4+
5+
{{ include.summary }}
6+
7+
{% if page.issue %}
8+
### GitHub Issue
9+
10+
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
11+
{% endif %}

registries/_namespace/ms.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@ description: Extensions created and used by Microsoft
55
layout: default
66
---
77

8-
# <a href="..">{{ page.collection }}</a>
9-
10-
## {{ page.slug }} - {{ page.description }}
11-
12-
8+
{% capture summary %}
139
The `x-{{page.slug}}-` prefix is reserved for extensions created by Microsoft. These extensions are available for use by anyone.
10+
{% endcapture %}
1411

15-
{% if page.issue %}
16-
### GitHub Issue
17-
18-
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
19-
{% endif %}
12+
{% include namespace-entry.md summary=summary %}

registries/_namespace/oas-draft.md

+4-11
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@ description: Extensions created by OAI to indicate proposed changes to the OAS s
55
layout: default
66
---
77

8-
# <a href="..">{{ page.collection }}</a>
8+
{% capture summary %}
9+
The `x-{{page.slug}}-` prefix is reserved for extensions created as part of the [draft features](https://github.com/OAI/OpenAPI-Specification/blob/main/DEVELOPMENT.md#draft-features) process. These extensions are available for use by anyone.
10+
{% endcapture %}
911

10-
## {{ page.slug }} - {{ page.description }}
11-
12-
13-
The `x-{{page.slug}}-` prefix is reserved for extensions created as part of the [draft features(https://github.com/OAI/OpenAPI-Specification/blob/main/DEVELOPMENT.md#draft-features)] process. These extensions are available for use by anyone.
14-
15-
{% if page.issue %}
16-
### GitHub Issue
17-
18-
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
19-
{% endif %}
12+
{% include namespace-entry.md summary=summary %}

registries/_namespace/sap.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,10 @@ description: Extensions created and used by SAP
55
layout: default
66
---
77

8-
# <a href="..">{{ page.collection }}</a>
9-
10-
## {{ page.slug }} - {{ page.description }}
11-
12-
8+
{% capture summary %}
139
The `x-{{page.slug}}-` prefix is reserved for extensions created by SAP. These extensions are available for use by anyone.
1410

1511
The official list of supported SAP extensions can be found in [SAP/openapi-specification](https://github.com/SAP/openapi-specification) repository.
12+
{% endcapture %}
1613

17-
{% if page.issue %}
18-
### GitHub Issue
19-
20-
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
21-
{% endif %}
14+
{% include namespace-entry.md summary=summary %}

0 commit comments

Comments
 (0)