Skip to content

Commit 4bee3c8

Browse files
committed
fix: use new features & remove separate api-docs link page
1 parent 75f5d2e commit 4bee3c8

File tree

10 files changed

+22
-24
lines changed

10 files changed

+22
-24
lines changed

.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default defineConfig({
3535
},
3636
{
3737
text: 'REST-API',
38-
items: [{text: 'Swagger Documentation', link: '/docs/swagger-docs'}],
38+
items: [{text: 'Swagger Documentation', link: '/api-docs'}],
3939
},
4040
{
4141
text: 'Plugins',

docs/caddy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Setting up [Caddy](https://caddyserver.com) as a reverse proxy is very straightforward. Here are two config examples.
44

5-
# As a standalone domain
5+
## As a standalone domain
66

77
Here is a sample config file if you run your gotify instance on port 1245
88

@@ -16,7 +16,7 @@ gotify.example.com {
1616

1717
Caddy automatically deploys SSL certificates from Let's Encrypt for your domain. If you want to explicitly disable TLS encryption, prefix your server name with `http://`.
1818

19-
# At a subpath
19+
## At a subpath
2020

2121
Here is the equivalent of the sample config above but running under a sub path.
2222

docs/config.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ gotify/server looks in the following paths for config files
1010
- ./config.yml
1111
- /etc/gotify/config.yml
1212

13-
**Note**: When strings contain reserved yml characters then they need to be escaped.
14-
[A list of reserved characters and how to escape them.](https://stackoverflow.com/a/22235064/4244993)
15-
16-
**Note**: The config file `/etc/gotify/config.yml` can contain sensitive data
17-
such as the initial admin password. When using it, you should remove read/write
18-
rights from users not owning the file:
13+
> [!note]
14+
> When strings contain reserved yml characters then they need to be escaped.
15+
> [A list of reserved characters and how to escape them.](https://stackoverflow.com/a/22235064/4244993)
16+
17+
> [!note]
18+
> The config file `/etc/gotify/config.yml` can contain sensitive data
19+
> such as the initial admin password. When using it, you should remove read/write
20+
> rights from users not owning the file:
1921
2022
```bash
2123
$ sudo chmod go-rw /etc/gotify/config.yml

docs/dev-server-and-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The UI requires a Gotify server running on `localhost:80`. This can be adjusted
3333

3434
## Update Swagger spec
3535

36-
The [gotify/server REST-API](swagger-docs.md) is documented via Swagger. The Swagger definition is generated via source code comments
36+
The [gotify/server REST-API](/api-docs) is documented via Swagger. The Swagger definition is generated via source code comments
3737
([example comment](https://github.com/gotify/server/blob/09c1516a170dfb47d29644db622655b540b94922/api/application.go#L33)).
3838

3939
After changing such a source code comment, you can run the following command to update the Swagger definition.

docs/install.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ The time zone inside the container is configurable via the `TZ` environment vari
2626
$ docker run -p 80:80 -e TZ="Europe/Berlin" -v /var/gotify/data:/app/data gotify/server
2727
```
2828

29-
<details><summary>Docker Compose</summary>
30-
<p>
29+
::: details Example docker-compose.yaml
3130

3231
```yml
3332
---
@@ -45,8 +44,7 @@ services:
4544
# user: "1234:1234"
4645
```
4746

48-
</p>
49-
</details>
47+
:::details
5048

5149
## Binary
5250

docs/nginx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
You may want to use your nginx server as a reverse proxy to run gotify.
44

5-
# At the root of the domain
5+
## At the root of the domain
66

77
Here is a sample config file if you run your gotify instance on port 1245
88

@@ -45,7 +45,7 @@ server {
4545

4646
If you want to use HTTPS through Nginx, keep the gotify setting GOTIFY_SERVER_SSL_ENABLED=false and rely on nginx to encrypt your traffic like you would with any other website.
4747

48-
# At a subpath
48+
## At a subpath
4949

5050
Here is the equivalent of the sample config above but running on a subpath
5151

docs/plugin-deploy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Building
44

5+
> [!note]
56
> This tutorial assumes that you want to build your plugin for gotify/server `v2.0.0`. If you want to build for a different
67
> version then replace v2.0.0 with your desired version.
78
@@ -73,6 +74,7 @@ $ docker run --rm -v "$PWD/.:/proj" -w /proj gotify/build:1.12.0-linux-386 \
7374

7475
### Without Docker (not recommended)
7576

77+
> [!note]
7678
> Plugins built without the gotify/server build environment, will probably not work with the built binaries from
7779
> [gotify/server Releases](https://github.com/gotify/server/releases).
7880

docs/plugin.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Intro to Gotify Plugins
22

3+
> [!warning]
34
> Plugins are currently only supported on Linux and MacOS due to a current limitation of golang.
45
56
## Description

docs/swagger-docs.md

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

docs/systemd.md

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

33
To manage starting, logging, etc. of Gotify, systemd can be used.
44

5+
> [!note]
56
> This is only a minimal example and does not provide the most secure or "best"
67
> way to run gotify. Please adjust the config to your needs.
78
8-
# Installation
9+
## Installation
910

1011
For this example, Gotify is installed by root in a directory called
1112
`/opt/gotify/` and the executable in there is called `gotify`. The config file
@@ -43,7 +44,7 @@ sudo systemctl daemon-reload
4344
sudo systemctl enable gotify
4445
```
4546

46-
# Start
47+
## Start
4748

4849
Gotify can then be started manually with:
4950

0 commit comments

Comments
 (0)