Skip to content

Commit 7df29dc

Browse files
committed
Add plugin documentation and prettier
1 parent d7e0168 commit 7df29dc

Some content is hidden

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

64 files changed

+5347
-2504
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v1
1515
- uses: actions/setup-node@v1
1616
with:
17-
node-version: '21.x'
17+
node-version: '22.x'
1818
- name: Test Build
1919
run: |
2020
if [ -e yarn.lock ]; then
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/checkout@v1
3333
- uses: actions/setup-node@v1
3434
with:
35-
node-version: '21.x'
35+
node-version: '22.x'
3636
- name: Add key to allow access to repository
3737
env:
3838
SSH_AUTH_SOCK: /tmp/ssh_agent.sock

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"bracketSpacing": false,
3+
"jsxBracketSameLine": true,
4+
5+
"printWidth": 80,
6+
"proseWrap": "always",
7+
"singleQuote": true,
8+
"trailingComma": "all"
9+
}

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ WORKDIR /app/website
55
EXPOSE 3000 35729
66
COPY ./docs /app/docs
77
COPY ./website /app/website
8-
RUN yarn install
8+
RUN npm install
99

10-
CMD ["yarn", "start"]
10+
CMD ["npm", "start"]

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Website
22

3-
This website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern static website generator.
3+
This website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern
4+
static website generator.
45

56
### Installation
67

@@ -14,20 +15,23 @@ $ yarn
1415
$ yarn start
1516
```
1617

17-
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
18+
This command starts a local development server and open up a browser window.
19+
Most changes are reflected live without having to restart the server.
1820

1921
### Build
2022

2123
```
2224
$ yarn build
2325
```
2426

25-
This command generates static content into the `build` directory and can be served using any static contents hosting service.
27+
This command generates static content into the `build` directory and can be
28+
served using any static contents hosting service.
2629

2730
### Deployment
2831

2932
```
3033
$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
3134
```
3235

33-
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
36+
If you are using GitHub pages for hosting, this command is a convenient way to
37+
build the website and push to the `gh-pages` branch.

docs/acars/customization.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
id: customization
3+
title: Customization
4+
---
5+
6+
## Logo Images
7+
8+
You can add your logo to the splash screen and the dashboard. They will be
9+
resized down to fit. Fill in the URLs to your logos. They should be PNG format
10+
(transparency is supported):
11+
12+
- **Splash Screen Banner** _Premium License Required_ - This replaces the large
13+
phpVMS splash screen. 500x375 recommended for best look, anything larger will
14+
be scaled down to the size.
15+
- **Splash Screen Logo** - This adds a small logo to the bottom right of the
16+
splash screen. This can be combined with the splash screen banner. This will
17+
be sized to 150x150
18+
- **Dashboard Logo** - This places a logo onto the dashboard, to the right of
19+
the user profile. This will be sized to 300x64 max.
20+
- **Dashboard Logo Dark** - The logo to use for dark mode. If empty, it'll just
21+
use the Dashboard Logo
22+
23+
![](img/logo-urls.png)
24+
25+
---
26+
27+
## Discord Rich Presence
28+
29+
:::tip This requires the ACARS Premium Addon :::
30+
31+
To customize the "Rich Presence" dialog in Discord, you need to create a new
32+
Application in Discord. You'll then enter the provided `Application ID` into the
33+
admin panel. If you don't set this, the default "vmsACARS" application will be
34+
used.
35+
36+
![](img/discord.png)
37+
38+
#### 1. Create the Application
39+
40+
Visit
41+
[Discord Application Developer site](https://discord.com/developers/applications),
42+
and select "New Application". I suggest using your VA name, it will say
43+
something like "Playing (whatever you enter)" (or something like "VA Name
44+
ACARS")
45+
46+
![Default Rich Presence](img/discord-new-app.png)
47+
48+
Upload your logo and title it appropriately. **Make note of the "Application ID"
49+
here, this will go into the admin panel.**
50+
51+
#### 2. Add your logos to the art assets
52+
53+
Next, go to "Rich Presence" and then "Art Assets". Add your cover image here,
54+
and add a new **Rich Presence Asset** titled `logo`. This will be used in the
55+
mini box that shows up
56+
57+
:::note
58+
59+
The logo asset added must be titled `logo`
60+
61+
:::
62+
63+
![](img/discord-assets.png)
64+
65+
#### 3. Set the application ID
66+
67+
Set the application ID in the admin panel.
68+
69+
![](img/discord-app-id.png)
70+
71+
## Custom Configs
72+
73+
:::tip This requires the ACARS Premium Addon :::
74+
75+
You can create a zip file and upload your custom configurations. Follow the
76+
instructions in the [acars-pdk](https://github.com/phpvms/acars-pdk) repository.

docs/acars/customizing/aircraftconfigs.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/acars/customizing/customization.md

Lines changed: 0 additions & 63 deletions
This file was deleted.

docs/acars/customizing/rules.md

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)