Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix merge conflict on PR #1

Merged
merged 92 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
e7901c2
Fix workflow
Wolfy76700 Mar 16, 2024
f0d2a1b
Fix workflows
Wolfy76700 Mar 16, 2024
5d61d3a
Fix workflow
Wolfy76700 Mar 16, 2024
5232ea3
Add ID to schemas
Wolfy76700 Mar 16, 2024
891815b
Fix workflow
Wolfy76700 Mar 16, 2024
76cdd98
Update documentation
actions-user Mar 16, 2024
29cebe1
Fix workflow
Wolfy76700 Mar 16, 2024
5a7f8eb
Merge commit '76cdd985cff0c45c03732b179633d5cbe839f13f' into fix_work…
Wolfy76700 Mar 16, 2024
9f0cffe
Update documentation
actions-user Mar 16, 2024
21a9bb8
Fix workflow
Wolfy76700 Mar 16, 2024
1596135
Fix workflow
Wolfy76700 Mar 16, 2024
1fb7705
Merge commit '9f0cffe46b99b019b89867a40859a4b19f6ba926' into fix_work…
Wolfy76700 Mar 16, 2024
9702f50
Fix workflow
Wolfy76700 Mar 16, 2024
7f8493f
Fix workflow
Wolfy76700 Mar 16, 2024
27c1d4d
Merge workflows
Wolfy76700 Mar 16, 2024
0a10e05
Fix workflows
Wolfy76700 Mar 16, 2024
d424e85
Fix workflow
Wolfy76700 Mar 16, 2024
fad55b4
Fix workflow
Wolfy76700 Mar 16, 2024
fb7044e
Fix workflow
Wolfy76700 Mar 16, 2024
d73c7a0
Fix workflow
Wolfy76700 Mar 16, 2024
18b3d93
Fix workflow
Wolfy76700 Mar 16, 2024
684c9f3
Fix workflow
Wolfy76700 Mar 16, 2024
1e59b0a
Fix workflow
Wolfy76700 Mar 16, 2024
08916f1
Fix workflow
Wolfy76700 Mar 16, 2024
3f646f5
Fix workflow
Wolfy76700 Mar 16, 2024
18d12f3
Fix workflow
Wolfy76700 Mar 16, 2024
47917c2
Fix workflow
Wolfy76700 Mar 16, 2024
377ed10
Fix workflow
Wolfy76700 Mar 16, 2024
380cea2
Fix workflow?
Wolfy76700 Mar 16, 2024
449f5bc
Merge pull request #8 from Wolfy76700/fix_workflow
Wolfy76700 Mar 16, 2024
8a47f37
Fix workflow
Wolfy76700 Mar 16, 2024
ac74615
Fix workflow
Wolfy76700 Mar 16, 2024
9af1b65
Fix workflow
Wolfy76700 Mar 16, 2024
be39151
Fix workflow
Wolfy76700 Mar 16, 2024
0e04f0d
Fix workflow
Wolfy76700 Mar 16, 2024
16b95aa
Fix workflow
Wolfy76700 Mar 16, 2024
5d5e7f8
Fix workflow
Wolfy76700 Mar 16, 2024
c204694
Fix workflow
Wolfy76700 Mar 16, 2024
7468de9
Fix workflow
Wolfy76700 Mar 16, 2024
83984c2
Fix workflow
Wolfy76700 Mar 16, 2024
29a1a27
Fix workflow
Wolfy76700 Mar 16, 2024
abbac75
Fix workflow
Wolfy76700 Mar 16, 2024
d13c311
Fix workflow
Wolfy76700 Mar 16, 2024
c65f272
Separated 3DS Systems
Wolfy76700 Mar 16, 2024
bc0da1f
Fix 3DS XL Name
Wolfy76700 Mar 16, 2024
9de67b1
Merge pull request #15 from Wolfy76700/3ds_fix
Wolfy76700 Mar 16, 2024
fd07262
Added 8BitDo Lite
Wolfy76700 Mar 16, 2024
675ded3
Fix inaccuracies
Wolfy76700 Mar 16, 2024
f217f86
Fix image
Wolfy76700 Mar 16, 2024
4d14f7d
Fix inaccuracies
Wolfy76700 Mar 16, 2024
14662c5
Fixed inaccuracies
Wolfy76700 Mar 16, 2024
595c5c9
Merge pull request #16 from Wolfy76700/8bitdo
Wolfy76700 Mar 16, 2024
5cf2b4f
Add step to generate controller table
Wolfy76700 Mar 16, 2024
1775d24
Added source for Wiimote
Wolfy76700 Mar 16, 2024
5aa0862
Added Wii U Gamepad
Wolfy76700 Mar 16, 2024
3895c4e
Added Wii U Pro Controller
Wolfy76700 Mar 16, 2024
48458fd
Merge pull request #17 from Wolfy76700/wiiu
Wolfy76700 Mar 16, 2024
167c2e3
Added sorting to workflow
Wolfy76700 Mar 17, 2024
a08ebcf
Added restriction on variant image
Wolfy76700 Mar 17, 2024
fc4d939
Merge pull request #18 from Wolfy76700/json_schema
Wolfy76700 Mar 17, 2024
d481763
Fix schema
Wolfy76700 Mar 17, 2024
99bb1ef
Fix image size on wiki
Wolfy76700 Mar 18, 2024
08bceb4
Removed unnecessary detail folds
Wolfy76700 Mar 18, 2024
4fcdb3e
Reduced margins on Keybox Fusion
Wolfy76700 Mar 18, 2024
88ecdde
Fix workflow
Wolfy76700 Mar 18, 2024
0c87180
Merge pull request #19 from Wolfy76700/docs
Wolfy76700 Mar 18, 2024
a53d223
Upate controller list to be more readable
Wolfy76700 Mar 20, 2024
681f5dd
Merge commit '0c8718023c6e580c50f833acd3fe542b8ce001c4' into docs
Wolfy76700 Mar 20, 2024
a27c4b6
Merge pull request #20 from Wolfy76700/docs
Wolfy76700 Mar 20, 2024
e55c070
Merge commit 'a27c4b6731ac86ac629e7f05803e0d2cac5d856f' into docs
Wolfy76700 Mar 20, 2024
9e044ba
Fix issue in wiki with +/- buttons
Wolfy76700 Mar 20, 2024
2d5ee66
Fixed Pokkén Tournament Pro Pad name
Wolfy76700 Mar 20, 2024
4c9332e
Merge pull request #21 from Wolfy76700/docs
Wolfy76700 Mar 20, 2024
ffa43e2
Moved Console IDs to Wiki
Wolfy76700 Mar 20, 2024
4cbb485
Minor fix
Wolfy76700 Mar 20, 2024
c90b963
Merge pull request #22 from Wolfy76700/docs
Wolfy76700 Mar 20, 2024
aa3b148
Update Wiimote
Wolfy76700 Mar 21, 2024
ee715c7
Update config.json
Wolfy76700 Mar 21, 2024
f2df4fb
Update `wiiupro`
Wolfy76700 Mar 21, 2024
d7a3978
Merge pull request #23 from Wolfy76700/wii
Wolfy76700 Mar 21, 2024
14114d1
Added ProGCC 3
Wolfy76700 Apr 4, 2024
f38232b
Merge pull request #24 from Wolfy76700/progcc
Wolfy76700 Apr 4, 2024
c4a026f
Merge commit 'f38232bd0bd745367defbe09437219de7f05b619' into nrett_fix
Wolfy76700 Apr 4, 2024
e6bea6d
Fix image for ProGCC
Wolfy76700 Apr 4, 2024
ebfbca0
Merge commit 'e6bea6d83e3805eef0bfe6c72ecd157938e487fa'
Wolfy76700 Apr 4, 2024
d4be833
Fix 8bitdo Lite
Wolfy76700 Apr 5, 2024
81ef3e4
Merge pull request #25 from Wolfy76700/Wolfy76700-patch-1
Wolfy76700 Apr 5, 2024
e0d3408
Split the Keybox Fusion
Wolfy76700 Jun 2, 2024
01ad3a3
Added the Keybox Impact
Wolfy76700 Jun 2, 2024
9273426
Merge pull request #26 from TournamentStreamHelper/keybox
Wolfy76700 Jun 2, 2024
7ab3c3a
Merge commit '01ad3a3fbf72a71560e8050d7836100f8306710c' into nrett_fix
Wolfy76700 Jun 2, 2024
76ca102
Merge commit '92734262f1a043b2ab27f67e82db3a8d3a41ee24' into nrett_fix
Wolfy76700 Jun 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Generate the documentation from the JSON Schemas

on:
push:
branches:
- main
- docs
jobs:
generate_doc:
name: Generate the documentation from the JSON Schemas
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -16,6 +14,10 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: ${{ github.repository }}.wiki
path: .wiki
- uses: actions/setup-python@v4
with:
python-version: "3.11"
Expand All @@ -28,27 +30,24 @@ jobs:
- name: Install json-schema-for-humans
run: pip install json-schema-for-humans

- name: Create documentation directory
run: mkdir -p _docs

- name: Generate the documentation
run: |
generate-schema-doc --config template_name=md_nested ./.schema/controller.json ./_docs/controller.md
generate-schema-doc --config template_name=md_nested ./.schema/manufacturer.json ./_docs/manufacturer.md
generate-schema-doc --config template_name=md_nested ./.schema/category.json ./_docs/category.md
generate-schema-doc --config template_name=md_nested ./.schema/controller.json "./.wiki/Controller Definition.md"
generate-schema-doc --config template_name=md_nested ./.schema/manufacturer.json "./.wiki/Manufacturer Definition.md"
generate-schema-doc --config template_name=md_nested ./.schema/category.json "./.wiki/Category Definition.md"

- name: Generate Conntroller List
run: |
python3 .utilities/generate_controller_tables.py

- run: git pull
- name: Commit files
run: |
cd .wiki
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add *
if ! git diff-index --quiet HEAD; then
git commit -m "Update documentation" -a
fi

- name: push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ steps.extract_branch.outputs.branch }}
git push
30 changes: 15 additions & 15 deletions .github/workflows/validate-json.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,12 @@ on:
pull_request:
branches:
- main
name: Validate JSON

jobs:
validate:
name: Validate JSON Files against schemas
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Delete previous comment
uses: izhangzhihao/delete-comment@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
delete_user_name: github-actions[bot]
issue_number: ${{ github.event.number }}
- uses: actions/checkout@v3
- name: Validate Category JSON
uses: dsanders11/[email protected]
Expand All @@ -31,9 +24,16 @@ jobs:
with:
schema: ".schema/controller.json"
files: "*/*/*/config.json"
- name: Comment PR
if: failure()
uses: thollander/[email protected]
with:
message: |
Validation of the JSON files has failed, please check the [Github Action log](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) to see why
- name: Send status
if: ${{ success() }}
run: |
curl --request POST \
--url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
--data '{
"context": "Validate JSON Files against schemas",
"state": "success",
"description": "JSON Files are valid",
"target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}'
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.schema/template.json
.schema/template.json
.schema/.json_schema.json
.wiki
1 change: 1 addition & 0 deletions .schema/category.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$id": "ControllerDatabase_category",
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/CategoryDefinition",
"definitions": {
Expand Down
9 changes: 7 additions & 2 deletions .schema/controller.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$id": "ControllerDatabase_controller",
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/ControllerDefinition",
"definitions": {
Expand Down Expand Up @@ -541,10 +542,14 @@
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
"type": "string",
"title": "Name"
},
"image": {
"type": "string"
"type": "string",
"pattern": "(.*)\\.(p|P)(n|N)(g|G)",
"title": "Image",
"description": "Name of a PNG image showing the mentionned variant\nThe image must be placed in the same folder as this config file\nNote: At least one of the variants must use the default `image.png` file"
}
},
"required": [
Expand Down
1 change: 1 addition & 0 deletions .schema/manufacturer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$id": "ControllerDatabase_manufacturer",
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/ManufacturerDefinition",
"definitions": {
Expand Down
21 changes: 21 additions & 0 deletions .utilities/consoles_list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"dc": "Sega Dreamcast",
"n64": "Nintendo 64",
"nes": "Nintendo Entertainment System / Famicom",
"ngc": "Nintendo GameCube",
"nsw": "Nintendo Switch",
"ps1": "Sony PlayStation 1",
"ps2": "Sony PlayStation 2",
"ps3": "Sony PlayStation 3",
"ps4": "Sony PlayStation 4",
"ps5": "Sony PlayStation 5",
"saturn": "Sega Saturn",
"smd": "Sega Mega Drive / Sega Genesis",
"snes": "Super Nintendo Entertainment System / Super Famicom",
"wii": "Nintendo Wii",
"wiiu": "Nintendo Wii U",
"xb1": "Xbox One",
"xb360": "Xbox 360",
"xbox": "Xbox",
"xbs": "Xbox Series X|S"
}
Loading