Skip to content

Commit df74c7d

Browse files
committed
Merge branch 'master' into travis/msc/integrations/openid
2 parents 6490fda + 6b64281 commit df74c7d

File tree

362 files changed

+18458
-2708
lines changed

Some content is hidden

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

362 files changed

+18458
-2708
lines changed

.buildkite/pipeline.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
steps:
2+
- label: ":books: Build spec"
3+
command:
4+
- python3 -m venv env
5+
- env/bin/pip install -r scripts/requirements.txt
6+
- ". env/bin/activate; scripts/generate-matrix-org-assets"
7+
artifact_paths:
8+
- assets.tar.gz
9+
plugins:
10+
- docker#v3.0.1:
11+
image: "python:3.6"
12+
13+
- label: "rebuild matrix.org"
14+
trigger: "matrix-dot-org"
15+
async: true
16+
branches: "master"

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
command: DOCS_URL="${CIRCLE_BUILD_URL}/artifacts/${CIRCLE_NODE_INDEX}/${CIRCLE_WORKING_DIRECTORY/#\~/$HOME}/api/client-server/index.html"; echo $DOCS_URL
9898
build-dev-scripts:
9999
docker:
100-
- image: golang:1.8
100+
- image: golang:1.10
101101
steps:
102102
- checkout
103103
- run:
@@ -121,4 +121,4 @@ workflows:
121121

122122
notify:
123123
webhooks:
124-
- url: https://giles.cadair.com/circleci
124+
- url: https://giles.cadair.dev/circleci

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
patreon: matrixdotorg
2+
liberapay: matrixdotorg
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Proposal ready for review
3+
about: A proposal that is ready for review by the core team and community.
4+
title: ''
5+
labels: proposal, proposal-in-review
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Put your "rendered" link here -->
11+
12+
### Pull Request Checklist
13+
14+
<!-- Please read CONTRIBUTING.rst before submitting your pull request -->
15+
16+
* [ ] Pull request includes a [changelog file](https://github.com/matrix-org/matrix-doc/blob/master/CONTRIBUTING.rst#adding-to-the-changelog)
17+
* [ ] Pull request includes a [sign off](https://github.com/matrix-org/matrix-doc/blob/master/CONTRIBUTING.rst#sign-off)
18+
* [ ] Pull request includes ['Rendered' link](https://matrix.org/docs/spec/proposals#process) above.
19+
* [ ] Pull request title and file name include this PR's number as the MSC number.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Spec clarification/not a proposal
3+
about: A change that's not a spec proposal, such as a clarification to the spec itself.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
### Pull Request Checklist
11+
12+
<!-- Please read CONTRIBUTING.rst before submitting your pull request -->
13+
14+
* [ ] Pull request includes a [changelog file](https://github.com/matrix-org/matrix-doc/blob/master/CONTRIBUTING.rst#adding-to-the-changelog)
15+
* [ ] Pull request includes a [sign off](https://github.com/matrix-org/matrix-doc/blob/master/CONTRIBUTING.rst#sign-off)
16+
* [ ] Pull request is classified as ['other changes'](https://github.com/matrix-org/matrix-doc/blob/master/CONTRIBUTING.rst#other-changes)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: WIP Proposal
3+
about: A proposal that isn't quite ready for formal review yet.
4+
title: '[WIP] Your Proposal Title'
5+
labels: proposal
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Put your "rendered" link here -->
11+
12+
### Pull Request Checklist
13+
14+
<!-- Please read CONTRIBUTING.rst before submitting your pull request -->
15+
16+
* [ ] Pull request includes a [changelog file](https://github.com/matrix-org/matrix-doc/blob/master/CONTRIBUTING.rst#adding-to-the-changelog)
17+
* [ ] Pull request includes a [sign off](https://github.com/matrix-org/matrix-doc/blob/master/CONTRIBUTING.rst#sign-off)
18+
* [ ] A ['Rendered' link](https://matrix.org/docs/spec/proposals#process) above.
19+
* [ ] Update the title and file name of your proposal to match this PR's number (after opening).
20+
* [ ] Ask in [#matrix-spec:matrix.org](https://matrix.to/#/#matrix-spec:matrix.org) to get this marked as ready for review, once it is ready for review.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
*.swp
1313
_rendered.rst
1414
/.vscode/
15+
/.idea/

CONTRIBUTING.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ https://github.com/matrix-org/matrix-doc/blob/master/meta/documentation_style.rs
1313

1414
Python code within the ``matrix-doc`` project should follow the same style as
1515
synapse, which is documented at
16-
https://github.com/matrix-org/synapse/tree/master/docs/code_style.rst.
16+
https://github.com/matrix-org/synapse/tree/master/docs/code_style.md.
1717

1818
Matrix-doc workflows
1919
--------------------
@@ -26,10 +26,11 @@ For this to be effective, the APIs need to be present and working correctly in a
2626
server before they can be documented in the specification. This process can take
2727
some time to complete.
2828

29-
For this reason, we have not found the github pull-request model effective for
30-
discussing changes to the specification. Instead, we have adopted the workflow
31-
as described at https://matrix.org/docs/spec/proposals - *please read this for
32-
details on how to contribute spec changes*.
29+
Changes to the protocol (new endpoints, ideas, etc) need to go through the
30+
`proposals process <https://matrix.org/docs/spec/proposals>`_. Other changes,
31+
such as fixing bugs, typos, or clarifying existing behaviour do not need a proposal.
32+
If you're not sure, visit us at `#matrix-spec:matrix.org`_
33+
and ask.
3334

3435

3536
Other changes
@@ -51,32 +52,31 @@ following:
5152
<https://github.com/matrix-org/matrix-doc/labels/spec-bug>`_ label.
5253

5354
(If there is any doubt about whether it is the spec or the implementations
54-
that need fixing, please discuss it with us first in `#matrix-dev:matrix.org
55-
<http://matrix.to/#/#matrix-dev:matrix.org>`_.)
55+
that need fixing, please discuss it with us first in `#matrix-spec:matrix.org`_.)
5656

5757
* Clarifications to the specification which do not change the behaviour of
5858
Matrix servers or clients in a way which might introduce compatibility
5959
problems for existing deployments. This includes anything with the
6060
`clarification <https://github.com/matrix-org/matrix-doc/labels/clarification>`_
6161
label.
6262

63-
For example, recommendations for UI behaviour do not require a proposal
64-
document. On the other hand, changes to event contents would be best
65-
discussed in a proposal document even though no changes would be necessary to
66-
server implementations.
63+
For example, areas where the specification is unclear do not require a proposal
64+
to fix. On the other hand, introducing new behaviour is best represented by a
65+
proposal.
6766

68-
For such changes, please do just open a `pull request`_.
67+
For such changes, please do just open a `pull request`_. If you're not sure if
68+
your change is covered by the above, please visit `#matrix-spec:matrix.org` and
69+
ask.
6970

70-
.. _pull request: https://help.github.com/articles/about-pull-requests
71+
.. _`pull request`: https://help.github.com/articles/about-pull-requests
72+
.. _`#matrix-spec:matrix.org`: https://matrix.to/#/#matrix-spec:matrix.org
7173

7274

7375
Adding to the changelog
7476
~~~~~~~~~~~~~~~~~~~~~~~
7577

76-
Currently only changes to the client-server API need to end up in a changelog. The
77-
other APIs are not yet stable and therefore do not have a changelog. Adding to the
78-
changelog can only be done after you've opened your pull request, so be sure to do
79-
that first.
78+
All API specifications require a changelog entry. Adding to the changelog can only
79+
be done after you've opened your pull request, so be sure to do that first.
8080

8181
The changelog is managed by Towncrier (https://github.com/hawkowl/towncrier) in the
8282
form of "news fragments". The news fragments for the client-server API are stored
@@ -96,7 +96,7 @@ the ``newsfragments`` directory. The ``type`` can be one of the following:
9696

9797
* ``breaking`` - Used when the change is not backwards compatible.
9898

99-
* ``deprecation`` - Used when deprecating something
99+
* ``deprecation`` - Used when deprecating something.
100100

101101
All news fragments must have a brief summary explaining the change in the
102102
contents of the file. The summary must end in a full stop to be in line with

README.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To use the scripts, it is best to create a Python 3.4+ virtualenv as follows::
4646
virtualenv -p python3 env
4747
env/bin/pip install -r scripts/requirements.txt
4848

49-
(Benjamin Synders has contributed a script for `Nix`_ users, which can be
49+
(Benjamin Saunders has contributed a script for `Nix`_ users, which can be
5050
invoked with ``nix-shell scripts/contrib/shell.nix``.)
5151

5252
.. TODO: Possibly we need some libs installed; should record what they are.
@@ -66,12 +66,14 @@ The above will write the rendered version of the specification to
6666

6767
Windows users
6868
~~~~~~~~~~~~~
69+
The ``source`` program does not exist on Windows, so instead run one of the
70+
``activate`` files in ``.\env\Scripts\`` to activate the virtual environment.
6971

7072
If you're on Windows Vista or higher, be sure that the "Symbolic Links"
7173
option was selected when installing Git prior to cloning this repository. If
7274
you're still seeing errors about files not being found it is likely because
7375
the symlink at ``api/client-server/definitions/event-schemas`` looks like a
74-
file. To correct the problem, open an Administrative/Elevated shell in your
76+
file. To correct the problem, open an Administrative/Elevated Command Prompt in your
7577
cloned matrix-doc directory and run the following::
7678

7779
cd api\client-server\definitions
@@ -138,4 +140,4 @@ Issue tracking
138140
Issues with the Matrix specification are tracked in `GitHub
139141
<https://github.com/matrix-org/matrix-doc/issues>`_.
140142

141-
See `meta/labels.rst <meta/labels.rst>`_ for notes on what the labels mean.
143+
See `meta/github-labels.rst <meta/github-labels.rst>`_ for notes on what the labels mean.

api/application-service/transactions.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,15 @@ paths:
5050
x-example: "35"
5151
- in: body
5252
name: body
53-
description: A list of events.
53+
description: Transaction information
5454
schema:
5555
type: object
5656
example: {
5757
"events": [
5858
{"$ref": "../../event-schemas/examples/m.room.member"},
59-
{"$ref": "../../event-schemas/examples/m.room.message#m.text"}
59+
{"$ref": "../../event-schemas/examples/m.room.message$m.text"}
6060
]
6161
}
62-
description: Transaction information
6362
properties:
6463
events:
6564
type: array

0 commit comments

Comments
 (0)