Rename the presence EDU files to be accurate to their types; Misc cleanup of titles

This commit is contained in:
Travis Ralston 2018-08-17 10:53:47 -06:00
parent ebca4c7d86
commit 750d4f9fda
8 changed files with 7 additions and 8 deletions

View file

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
type: object type: object
title: Presence EDU title: ``m.presence`` EDU
description: |- description: |-
An EDU representing presence updates for users of the sending homeserver. An EDU representing presence updates for users of the sending homeserver.
allOf: allOf:

View file

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
type: object type: object
title: Presence Invite Accept EDU title: ``m.presence_accept`` EDU
description: |- description: |-
An EDU representing approval for the observing user to subscribe to the An EDU representing approval for the observing user to subscribe to the
presence of the the observed user. presence of the the observed user.

View file

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
type: object type: object
title: Presence Invite Deny EDU title: ``m.presence_deny`` EDU
description: |- description: |-
An EDU representing a declination or revocation for the observing user An EDU representing a declination or revocation for the observing user
to subscribe to the presence of the observed user. to subscribe to the presence of the observed user.

View file

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
type: object type: object
title: Presence Invite EDU title: ``m.presence_invite`` EDU
description: |- description: |-
An EDU representing a request to subscribe to a user's presence. An EDU representing a request to subscribe to a user's presence.
allOf: allOf:

View file

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
type: object type: object
title: Receipt EDU title: ``m.receipt`` EDU
description: |- description: |-
An EDU representing receipt updates for users of the sending homeserver. An EDU representing receipt updates for users of the sending homeserver.
When receiving receipts, the server should only update entries that are When receiving receipts, the server should only update entries that are

View file

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
type: object type: object
title: Typing Notification EDU title: ``m.typing`` EDU
description: A typing notification EDU for a user in a room. description: A typing notification EDU for a user in a room.
allOf: allOf:
- $ref: ../edu.yaml - $ref: ../edu.yaml

View file

@ -1,6 +1,6 @@
{% import 'tables.tmpl' as tables -%} {% import 'tables.tmpl' as tables -%}
``{{definition.title}}`` Schema ``{{definition.title}}`` schema
{{(11 + definition.title | length) * title_kind}} {{(11 + definition.title | length) * title_kind}}
{% if 'description' in definition %} {% if 'description' in definition %}

View file

@ -49,7 +49,6 @@ SWAGGER_DEFINITIONS = {
os.path.join(matrix_doc_dir, "api/identity/definitions"): "is", os.path.join(matrix_doc_dir, "api/identity/definitions"): "is",
os.path.join(matrix_doc_dir, "api/push-gateway/definitions"): "push", os.path.join(matrix_doc_dir, "api/push-gateway/definitions"): "push",
os.path.join(matrix_doc_dir, "api/server-server/definitions"): "ss", os.path.join(matrix_doc_dir, "api/server-server/definitions"): "ss",
os.path.join(matrix_doc_dir, "api/server-server/definitions/presence"): "ss_presence",
} }
EVENT_EXAMPLES = os.path.join(matrix_doc_dir, "event-schemas/examples") EVENT_EXAMPLES = os.path.join(matrix_doc_dir, "event-schemas/examples")
EVENT_SCHEMA = os.path.join(matrix_doc_dir, "event-schemas/schema") EVENT_SCHEMA = os.path.join(matrix_doc_dir, "event-schemas/schema")