Skip to content

Commit 5a4d660

Browse files
author
Ron
authored
Merge pull request #1808 from MikeRalphson/gh-pages
[gh-pages] Hand-craft API templates for leaner output
2 parents 9cd199d + 523ad57 commit 5a4d660

File tree

13 files changed

+61
-22
lines changed

13 files changed

+61
-22
lines changed

api/alternative-schema.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
---
22
---
3-
{{ site.alternative-schema | jsonify }}
4-
3+
{
4+
{% for page in site.alternative-schema %}"{{ page.slug }}": {
5+
"slug": "{{ page.slug }}",
6+
"title": "{{ page.title }}",
7+
"issue": "{{ page.issue }}",
8+
"description": "{{ page.description }}",
9+
"owner": "{{ page.owner }}"
10+
}{% unless forloop.last %},{% endunless %}
11+
{% endfor %}
12+
}

api/draft-feature.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
---
22
---
3-
{{ site.draft-feature | jsonify }}
4-
3+
{
4+
{% for page in site.draft-feature %}"{{ page.slug }}": {
5+
"slug": "{{ page.slug }}",
6+
"title": "{{ page.title }}",
7+
"issue": "{{ page.issue }}",
8+
"description": "{{ page.description }}",
9+
"owner": "{{ page.owner }}"
10+
}{% unless forloop.last %},{% endunless %}
11+
{% endfor %}
12+
}

api/extension.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
---
22
---
3-
{{ site.extension | jsonify }}
4-
3+
{
4+
{% for page in site.extension %}"{{ page.slug }}": {
5+
"slug": "{{ page.slug }}",
6+
"title": "{{ page.title }}",
7+
"issue": "{{ page.issue }}",
8+
"description": "{{ page.description }}",
9+
"owner": "{{ page.owner }}",
10+
"objects": {{ page.objects | jsonify }},
11+
"schema": {{ page.schema | jsonify }}
12+
}{% unless forloop.last %},{% endunless %}
13+
{% endfor %}
14+
}

api/format.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
---
22
---
3-
{{ site.format | jsonify }}
4-
3+
{
4+
{% for page in site.format %}"{{ page.slug }}": {
5+
"slug": "{{ page.slug }}",
6+
"title": "{{ page.title }}",
7+
"issue": "{{ page.issue }}",
8+
"description": "{{ page.description }}",
9+
"owner": "{{ page.owner }}",
10+
"base_type": "{{ page.base_type" }}"
11+
}{% unless forloop.last %},{% endunless %}
12+
{% endfor %}
13+
}

api/registries.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
22
---
3-
{{ site.collections | jsonify }}
4-
3+
[
4+
{% for collection in site.collections %}"{{ collection.slug }}"{% unless forloop.last %},{% endunless %}
5+
{% endfor %}
6+
]

registries/_alternative-schema/jsonSchema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
owner: darrel_miller
2+
owner: darrelmiller
33
issue: 1532
44
description: JSON Schema
55
layout: default

registries/_alternative-schema/xmlSchema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
owner: darrel_miller
2+
owner: darrelmiller
33
issue: 1532
44
description: xml Schema
55
layout: default

registries/_draft-feature/alternativeSchema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
owner: darrel_miller
2+
owner: darrelmiller
33
issue: 1532
44
description: x-oas-draft-alternativeSchema
55

registries/_extension/x-twitter.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
---
2-
slug: x-twitter
3-
name: x-twitter
4-
owner: mike_ralphson
2+
owner: MikeRalphson
53
issue:
64
description: Used to hold a reference to the API provider's Twitter account.
75
schema:
86
type: string
97
objects: [ "contactObject" ]
10-
118
layout: default
129
---
1310

registries/_format/commonmark.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
---
2-
slug: commonmark
32
owner: MikeRalphson
43
description: commonmark-formatted text
4+
base_type: string
5+
issue:
56
layout: default
67
---
78

89
# <a href="..">{{ page.collection }}</a>
910

1011
## {{ page.slug }} - {{ page.description }}
1112

12-
Base type: `string`.
13+
Base type: `{{ page.base_type }}`.
1314

1415
The `{{page.slug}}` format represents [CommonMark](https://commonmark.org/) formatted text.
1516

registries/_format/html.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
22
owner: MikeRalphson
33
description: HTML-formatted text
4+
base_type: string
5+
issue:
46
layout: default
57
---
68

79
# <a href="..">{{ page.collection }}</a>
810

911
## {{ page.slug }} - {{ page.description }}
1012

11-
Base type: `string`.
13+
Base type: `{{ page.base_type}}`.
1214

1315
The `{{page.slug}}` format represents HTML-formatted text.
1416

registries/_format/int8.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
owner: MikeRalphson
33
issue: 845
44
description: signed 8-bit integer
5+
base_type: number
56
layout: default
67
---
78

89
# <a href="..">{{ page.collection }}</a>
910

1011
## {{ page.slug }} - {{ page.description }}
1112

12-
Base type: `number`.
13+
Base type: `{{ page.base_type }}`.
1314

1415
The `{{page.slug}}` format represents a signed 8-bit integer, with the range -128 to 127.
1516

registries/_format/uint8.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
owner: MikeRalphson
33
issue: 845
44
description: unsigned 8-bit integer
5+
base_type: number
56
layout: default
67
---
78

89
# <a href="..">{{ page.collection }}</a>
910

1011
## {{ page.slug }} - {{ page.description }}
1112

12-
Base type: `number`.
13+
Base type: `{{ page.base_type }}`.
1314

1415
The `{{page.slug}}` format represents an unsigned 8-bit integer, with the range 0 to 255.
1516

0 commit comments

Comments
 (0)