Skip to content

Commit de23222

Browse files
turt2liverichvdh
authored andcommitted
Merge branch 'master' into travis/spec/MSC2320-identity-versions
2 parents 5c83678 + 9e7d328 commit de23222

File tree

197 files changed

+1838
-3888
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+1838
-3888
lines changed

CONTRIBUTING.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ To create a changelog entry, create a file named in the format ``prNumber.type``
8989
the ``newsfragments`` directory. The ``type`` can be one of the following:
9090

9191
* ``new`` - Used when adding new endpoints. Please have the file contents be the
92-
method and route being added, surrounded in RST code tags. For example: ``POST
93-
/accounts/whoami``
92+
method and route being added, surrounded in markdown code tags. For example: \`POST
93+
/accounts/whoami\`.
9494

9595
* ``feature`` - Used when adding backwards-compatible changes to the API.
9696

@@ -103,7 +103,7 @@ the ``newsfragments`` directory. The ``type`` can be one of the following:
103103

104104
All news fragments must have a brief summary explaining the change in the
105105
contents of the file. The summary must end in a full stop to be in line with
106-
the style guide and and formatting must be done using Markdown.
106+
the style guide and formatting must be done using Markdown.
107107

108108
Changes that do not change the spec, such as changes to the build script, formatting,
109109
CSS, etc should not get a news fragment.

README.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
This repository contains the Matrix Specification, rendered at [spec.matrix.org](http://spec.matrix.org/).
44

5-
Developers looking to use Matrix should join [#matrix-dev:matrix.org](http://matrix.to/#/#matrix-dev:matrix.org)
5+
Developers looking to use Matrix should join [#matrix-dev:matrix.org](https://matrix.to/#/#matrix-dev:matrix.org)
66
on Matrix for help.
77

8-
Spec authors and proposal writers are welcome to join [#matrix-spec:matrix.org](http://matrix.to/#/#matrix-spec:matrix.org). We welcome contributions! See [CONTRIBUTING.rst](./CONTRIBUTING.rst) for details.
8+
Spec authors and proposal writers are welcome to join [#matrix-spec:matrix.org](https://matrix.to/#/#matrix-spec:matrix.org).
9+
We welcome contributions! See [CONTRIBUTING.rst](./CONTRIBUTING.rst) for details.
910

1011
## Structure
1112

@@ -21,7 +22,7 @@ The Matrix spec is compiled with [Hugo](https://gohugo.io/) (a static site gener
2122

2223
* `/data`: this can contain TOML, YAML, or JSON files. Files kept here are directly available to template code as
2324
[data objects](https://gohugo.io/templates/data-templates/), so templates don't need to load them from a file and
24-
parse them. This is also where our
25+
parse them. This is also where our Swagger/OpenAPI definitions and schemas are.
2526

2627
* `/layouts`: this contains [Hugo templates](https://gohugo.io/templates/). Some templates define the overall layout of
2728
a page: for example, whether it has header, footer, sidebar, and so on.
@@ -35,8 +36,8 @@ The Matrix spec is compiled with [Hugo](https://gohugo.io/) (a static site gener
3536

3637
* `/themes`: you can use just Hugo or use it with a theme. Themes primarily provide additional templates, which are
3738
supplied in a `/themes/$theme_name/layouts` directory. You can use a theme but customise it by providing your own
38-
versions of any of the them layouts in the base `/layouts` directory. That is, if a theme provides
39-
`/themes/$theme_name/layouts/sidebar.html` and you provide `/layouts/sidebar.html`, then your version of this
39+
versions of any of the theme layouts in the base `/layouts` directory. That is, if a theme provides
40+
`/themes/$theme_name/layouts/sidebar.html` and you provide `/layouts/sidebar.html`, then your version of the
4041
template will be used.
4142

4243
It also has the following top-level file:
@@ -48,10 +49,9 @@ Additionally, the following directories may be of interest:
4849

4950
* `/attic`: Here contains historical sections of specification and legacy drafts for the specification.
5051
* `/changelogs`: Various bits of changelog for the specification areas.
51-
* `/event-schemas`: [JSON Schema](http://json-schema.org/) definitions for the spec.
5252
* `/data-definitions`: Bits of structured data consumable by Matrix implementations.
5353
* `/meta`: Documentation relating to the spec's processes that are otherwise untracked (release instructions, etc).
54-
* `/scripts`: Various scripts for generating the spec.
54+
* `/scripts`: Various scripts for generating the spec and validating its contents.
5555
* `/proposals`: Matrix Spec Change (MSC) proposals. See <https://spec.matrix.org/unstable/proposals/>.
5656

5757
## Authoring changes to the spec
@@ -62,7 +62,8 @@ place after an MSC has been accepted, not as part of a proposal itself.
6262
1. Install the extended version (often the OS default) of Hugo: <https://gohugo.io/getting-started/installing>
6363
2. Run `git submodule update --init --recursive` for good measure.
6464
3. Run `npm i` to install the dependencies. Note that this will require NodeJS to be installed.
65-
4. Run `npm run get-proposals` to seed the proposals data. This is not required.
65+
4. Run `npm run get-proposals` to seed proposal data. This is merely for populating the content of the "Spec Change Proposals"
66+
page and is not required.
6667
5. Run `hugo serve` to run a local webserver which builds whenever a file change is detected. If watching doesn't appear
6768
to be working for you, try `hugo serve --disableFastRender` instead.
6869
6. Edit the specification 🙂
@@ -73,18 +74,18 @@ Awesome. If you're looking at making design-related changes to the spec site, pl
7374

7475
## Building the specification
7576

76-
If for some reason you're not a CI/CD system and want to render the spec yourself, follow the above steps for authoring
77-
changes to the specification and instead of `hugo serve` run `hugo -d "spec"` - this will generate the spec to `/spec`.
78-
If you'd like to serve the spec off a path instead of a domain root (eg: `/unstable`), add `--baseURL "/unstable"` to
79-
the `hugo -d "spec"` command.
77+
If for some reason you're not a CI/CD system and want to render a static version of the spec for yourself, follow the above
78+
steps for authoring changes to the specification and instead of `hugo serve` run `hugo -d "spec"` - this will generate the
79+
spec to `/spec`. If you'd like to serve the spec off a path instead of a domain root (eg: `/unstable`), add `--baseURL "/unstable"`
80+
to the `hugo -d "spec"` command.
8081

81-
For building the swagger definitions, create a python3 virtualenv and activate it. Then run `pip install -r ./scripts/requirements.txt` and finally `python ./scripts/dump-swagger.py` to generate it to `./scripts/swagger/api-docs.json`.
82-
To make use of the generated file, there are a number of options:
82+
For building the swagger definitions, create a python3 virtualenv and activate it. Then run `pip install -r ./scripts/requirements.txt`
83+
and finally `python ./scripts/dump-swagger.py` to generate it to `./scripts/swagger/api-docs.json`. To make use of the generated file,
84+
there are a number of options:
8385

84-
* It can be uploaded from your filesystem to an online editor/viewer such as
85-
http://editor.swagger.io/
86+
* It can be uploaded from your filesystem to an online editor/viewer such as [on the swagger website](http://editor.swagger.io/).
8687
* You can run a local HTTP server by running `./scripts/swagger-http-server.py`, and then view the documentation via an
87-
online viewer; for example, at <http://petstore.swagger.io/?url=http://localhost:8000/api-docs.json>
88+
online viewer; for example, at <http://petstore.swagger.io/?url=http://localhost:8000/api-docs.json>.
8889
* You can host the swagger UI yourself. See <https://github.com/swagger-api/swagger-ui#how-to-run> for advice on how to
8990
do so.
9091

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add support for spoilers ([MSC2010](https://github.com/matrix-org/matrix-doc/pull/2010) and [MSC2557](https://github.com/matrix-org/matrix-doc/pull/2557)), and `color` attribute ([MSC2422](https://github.com/matrix-org/matrix-doc/pull/2422)).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify that event bodies are untrusted, as per [MSC2801](https://github.com/matrix-org/matrix-doc/pull/2801).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `<details>` and `<summary>` to the suggested HTML subset as per [MSC2184](https://github.com/matrix-org/matrix-doc/pull/2184).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix various typos throughout the specification.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the maximum event size restriction (65535 bytes -> 65536).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `m.key.verification.ready` and `m.key.verification.done` to key verification framework as per [MSC2366](https://github.com/matrix-org/matrix-doc/pull/2366).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add key verification using in-room messages as per [MSC2241](https://github.com/matrix-org/matrix-doc/pull/2241).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add information about using SSSS for cross-signing and key backup.

0 commit comments

Comments
 (0)