forked from matrix-org/matrix-spec-proposals
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'matrix-org:main' into master
- Loading branch information
Showing
684 changed files
with
25,076 additions
and
28,412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,39 @@ | ||
steps: | ||
- label: ":books: Build spec" | ||
- label: ":snake: Build swagger definitions for matrix.org" | ||
command: | ||
- python3 -m venv env | ||
- env/bin/pip install -r scripts/requirements.txt | ||
- ". env/bin/activate; scripts/generate-matrix-org-assets" | ||
# Install the python dependencies necessary to build the spec | ||
- python3 -m venv env && . env/bin/activate | ||
- pip install -r scripts/requirements.txt | ||
# Build the spec | ||
- scripts/generate-matrix-org-assets | ||
artifact_paths: | ||
- assets.tar.gz | ||
plugins: | ||
- docker#v3.0.1: | ||
image: "python:3.6" | ||
- docker#v3.7.0: | ||
image: python:3.9 | ||
|
||
- label: "rebuild matrix.org" | ||
trigger: "matrix-dot-org" | ||
async: true | ||
branches: "master" | ||
branches: "main" | ||
|
||
- label: ":books: Build the spec" | ||
command: | ||
# Install package dependencies | ||
- apk add nodejs npm git hugo | ||
# Install the node dependencies necessary to build the spec | ||
- npm i | ||
# Pull all git submodules, required for the hugo theme | ||
- git submodule update --init --recursive | ||
# Pull current proposal information | ||
- npm run get-proposals | ||
# Build the spec, will build to './spec' | ||
# Set the baseURL as we're deploying to https://spec.matrix.org/unstable | ||
- hugo --baseURL "/unstable" -d "spec" | ||
# Compress the result and make it available as an artifact | ||
- tar -czf spec.tar.gz spec | ||
artifact_paths: | ||
- spec.tar.gz | ||
plugins: | ||
- docker#v3.7.0: | ||
image: alpine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
name: Clarity problem | ||
about: Report an area of the spec that is unclear. | ||
title: '' | ||
labels: 'clarification' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Link to problem area**: | ||
|
||
**Issue** | ||
What is wrong? How can we improve? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Matrix Spec Discussion | ||
url: "https://matrix.to/#/#matrix-spec:matrix.org" | ||
about: Questions about the spec and proposal process can be asked here. | ||
- name: Matrix Security Policy | ||
url: https://www.matrix.org/security-disclosure-policy/ | ||
about: Learn more about our security disclosure policy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
name: Cosmetic issue | ||
about: Report an issue with how the spec looks. | ||
title: '' | ||
labels: 'aesthetic' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Link to problem area**: | ||
|
||
**Issue** | ||
What is wrong? What can we do to improve? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
name: Spec idea | ||
about: Suggest a future MSC idea. | ||
title: '' | ||
labels: 'improvement' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Suggestion** | ||
What would you like to see in Matrix? If your idea is vaguely complete enough, we | ||
recommend submitting [an MSC](https://matrix.org/docs/spec/proposals) instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
name: Documentation error | ||
about: Report an issue with the spec itself (incorrect text). | ||
title: '' | ||
labels: 'spec-bug' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Link to problem area**: | ||
|
||
**Issue** | ||
What is wrong? | ||
|
||
**Expected behaviour** | ||
How can the issue be fixed? Links to implementations/documents which prove the spec is wrong are appreciated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: "Spec" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-openapi: | ||
name: "🐍 Build OpenAPI definitions for matrix.org" | ||
runs-on: ubuntu-latest | ||
container: "python:3.9" | ||
steps: | ||
- name: "📥 Source checkout" | ||
uses: actions/checkout@v2 | ||
- name: "📦 Asset creation" | ||
run: | | ||
python3 -m venv env && . env/bin/activate | ||
pip install -r scripts/requirements.txt | ||
scripts/generate-matrix-org-assets | ||
- name: "📤 Artifact upload" | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: openapi-artifact | ||
path: assets.tar.gz | ||
|
||
build-spec: | ||
name: "📖 Build the spec" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "➕ Setup Node" | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- name: "➕ Setup Hugo" | ||
uses: peaceiris/actions-hugo@c03b5dbed22245418539b65eb9a3b1d5fdd9a0a6 | ||
with: | ||
hugo-version: '0.85.0' | ||
extended: true | ||
- name: "📥 Source checkout" | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
- name: "⚙️ npm" | ||
run: | | ||
npm i | ||
npm run get-proposals | ||
- name: "⚙️ hugo" | ||
run: hugo --baseURL "/unstable" -d "spec" | ||
- name: "📦 Tarball creation" | ||
run: tar -czf spec.tar.gz spec | ||
- name: "📤 Artifact upload" | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: spec-artifact | ||
path: spec.tar.gz | ||
|
||
rebuild-matrixdotorg: | ||
name: "👷 Rebuild matrix.org" | ||
needs: build-openapi | ||
runs-on: ubuntu-latest | ||
if: ${{ false && github.event_name == 'push' && github.ref == 'refs/head/main' }} | ||
steps: | ||
- name: "🪄 Triggering rebuild of matrix.org" | ||
run: | | ||
curl -XPOST -u "${{secrets.TRIGGER_MATRIXORG_REBUILD_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/${{ github.repository_owner }}/matrix.org/actions/workflows/build-matrix.org.yml/dispatches --data '{"ref": "${{ github.ref }}" }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
/api/node_modules | ||
/assets | ||
/assets.tar.gz | ||
/data/msc | ||
/env* | ||
/node_modules | ||
/resources | ||
/scripts/gen | ||
/scripts/continuserv/continuserv | ||
/scripts/speculator/speculator | ||
/scripts/swagger | ||
/scripts/tmp | ||
/templating/out | ||
/hugo-config.toml | ||
/public | ||
*.pyc | ||
*.swp | ||
_rendered.rst | ||
/.vscode/ | ||
/.idea/ | ||
/spec/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "themes/docsy"] | ||
path = themes/docsy | ||
url = https://github.com/matrix-org/docsy.git | ||
branch = master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.