Skip to content

Commit b50dd15

Browse files
committed
Add logo; Hide unfinished page; Clarified intro page; Add guide index page
1 parent 4e7f785 commit b50dd15

File tree

10 files changed

+62
-20
lines changed

10 files changed

+62
-20
lines changed

docs/self-hosting/configuration.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The configuration contains placeholders (`your-domain.com`, `your-bucket-name`,
1313

1414
The configuration example below is for a production environment using HTTPS. You can adjust the values to your needs, in any case you will have to change `APP_URL` to the URL of your solidtime instance.
1515

16-
```dotenv
16+
```bash
1717
APP_ENV="production"
1818
APP_DEBUG="false"
1919
APP_URL="https://your-domain.com"
@@ -31,7 +31,7 @@ TRUSTED_PROXIES="0.0.0.0/0,2000:0:0:0:0:0:0:0/3"
3131

3232
You can run `docker run --rm solidtime/solidtime:main php artisan self-host:generate-keys` to obtain `APP_KEY`, `PASSPORT_PRIVATE_KEY` and `PASSPORT_PUBLIC_KEY`
3333

34-
```dotenv
34+
```bash
3535
APP_KEY=""
3636
PASSPORT_PRIVATE_KEY=""
3737
PASSPORT_PUBLIC_KEY=""
@@ -51,21 +51,21 @@ You can read more about the logging configuration in the [Laravel documentation]
5151

5252
**Store logs in files under storage/logs with one log file per day:**
5353

54-
```dotenv
54+
```bash
5555
LOG_CHANNEL="daily"
5656
LOG_LEVEL="debug"
5757
```
5858

5959
**Output logs via stderr:**
6060

61-
```dotenv
61+
```bash
6262
LOG_CHANNEL="stderr"
6363
LOG_LEVEL="debug"
6464
```
6565

6666
**Output logs via stderr and store the in daily log files:**
6767

68-
```dotenv
68+
```bash
6969
LOG_CHANNEL="stderr_daily"
7070
LOG_LEVEL="debug"
7171
```
@@ -75,7 +75,7 @@ LOG_LEVEL="debug"
7575
You can read more about the database configuration in the [Laravel documentation](https://laravel.com/docs/11.x/database#configuration).
7676
Please remember that solidtime only supports PostgreSQL.
7777

78-
```dotenv
78+
```bash
7979
DB_HOST="your-database-host-or-ip"
8080
DB_PORT="5432"
8181
DB_SSLMODE="require"
@@ -90,7 +90,7 @@ Configure the email settings for sending emails. Solidtime supports every (trans
9090

9191
### Example using Scaleway TEM via SMTP
9292

93-
```dotenv
93+
```bash
9494
MAIL_MAILER="smtp"
9595
MAIL_HOST="smtp.tem.scw.cloud"
9696
MAIL_PORT="465"
@@ -107,7 +107,7 @@ If you want to test f.e. the registration before setting up a transactional emai
107107
This logs outgoing emails to the log file.
108108
If you want to copy the link for the email verification, use the one from the textual, non-HTML version of the email in the log file.
109109

110-
```dotenv
110+
```bash
111111
MAIL_MAILER="log"
112112
```
113113

@@ -119,15 +119,15 @@ You can read more about the queue configuration in the [Laravel documentation](h
119119

120120
You can use this option if you don't want to use a separate Queue Worker (f.e. a `worker` container, see [Container Mode](./container-mode.md)) that handles queued jobs asynchronously. It will dispatch jobs synchronously. **We do not recommend using this option in production.**
121121

122-
```dotenv
122+
```bash
123123
QUEUE_CONNECTION="sync"
124124
```
125125

126126
### Database
127127

128128
Please keep in mind that you need a separate Queue Worker (f.e. a `worker` container, see [Container Mode](./container-mode.md)) that handles queued jobs asynchronously to use this configuration option.
129129

130-
```dotenv
130+
```bash
131131
QUEUE_CONNECTION="database"
132132
```
133133

@@ -143,14 +143,14 @@ You can read more about the file storage configuration in the [Laravel documenta
143143

144144
### Local Disk
145145

146-
```dotenv
146+
```bash
147147
FILESYSTEM_DISK="local"
148148
PUBLIC_FILESYSTEM_DISK="public"
149149
```
150150

151151
### Scaleway Object Storage
152152

153-
```dotenv
153+
```bash
154154
FILESYSTEM_DISK="s3"
155155
PUBLIC_FILESYSTEM_DISK="s3"
156156
S3_REGION="fr-par" # fr-par, nl-ams, pl-waw

docs/self-hosting/container-mode.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,24 @@ The mode can be defined by setting the `CONTAINER_MODE` environment variable on
1010

1111
## HTTP Server
1212

13-
`CONTAINER_MODE=http`
13+
```bash
14+
CONTAINER_MODE=http
15+
```
1416

1517
The HTTP server mode is the default mode. It starts the HTTP server for the solidtime application. The solidtime image uses Swoole as an HTTP server.
1618

1719
## Scheduler
1820

19-
`CONTAINER_MODE=scheduler`
21+
```bash
22+
CONTAINER_MODE=scheduler
23+
```
2024

2125
The scheduler mode starts the Laravel scheduler. The scheduler is used to run scheduled tasks like sending reminders, similar to running cronjobs.
2226

2327
## Worker
2428

25-
`CONTAINER_MODE=worker`
29+
```bash
30+
CONTAINER_MODE=worker
31+
```
2632

2733
The worker mode starts the Laravel Queue Worker. It is used to process asynchronous tasks like sending emails, when `QUEUE_CONNECTION` is set to `database`.

docs/self-hosting/guides/docker.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sidebar_position: 1
44
# Docker
55

66
This guide will help you to deploy solidtime using Docker and Docker Compose.
7+
It uses our official Docker images that are available on [Docker Hub](https://hub.docker.com/r/solidtime/solidtime).
78
We have a repository with some example configurations for Docker Compose. You can find it [here](https://github.com/solidtime-io/self-hosting-examples).
89
The guide will reference this repository.
910

docs/self-hosting/guides/index.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Guides
2+
3+
import DocCardList from '@theme/DocCardList';
4+
5+
<DocCardList />

docs/self-hosting/guides/kubernetes-helm.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
sidebar_position: 2
3+
draft: true
34
---
45
# Kubernetes + Helm
56

docs/self-hosting/intro.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ This guide is for users who want to learn how to self-host solidtime.
99

1010
If you have problems with the self-hosting guide, please open an issue on [GitHub](https://github.com/solidtime-io/solidtime/issues) or join our [Discord server](https://discord.gg/Wd7pNH5S64).
1111

12-
## Docker image
12+
## Getting Started
1313

14-
We provide a Docker image for solidtime. You can find the Docker image on [Docker Hub](https://hub.docker.com/r/solidtime/solidtime).
14+
We currently provide a detailed guide on how to deploy solidtime using Docker/Docker Compose.
15+
16+
You can find the guide [here](/self-hosting/guides/docker).
1517

1618
## FAQ
1719

docs/self-hosting/super-admin-panel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The super admin panel is made for technical users that are responsible for the s
1616

1717
To access the super admin panel, you need to be a super admin. The super admins are defined in the `.env` file of the self-hosted solidtime instance.
1818

19-
```dotenv
19+
```bash
2020
2121
```
2222

docusaurus.config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const config: Config = {
3434
from: '/self-hosting/environments/docker',
3535
to: '/self-hosting/guides/docker',
3636
},
37+
/*
3738
{
3839
from: '/self-hosting/kubernetes-helm',
3940
to: '/self-hosting/guides/kubernetes-helm',
@@ -42,6 +43,7 @@ const config: Config = {
4243
from: '/self-hosting/environments/kubernetes-helm',
4344
to: '/self-hosting/guides/kubernetes-helm',
4445
},
46+
*/
4547
],
4648
}
4749
]
@@ -87,7 +89,11 @@ const config: Config = {
8789
themeConfig: {
8890
image: 'img/og_image.png',
8991
navbar: {
90-
title: 'solidtime',
92+
logo: {
93+
alt: 'Site Logo',
94+
src: 'img/solidtime-logo.svg',
95+
srcDark: 'img/solidtime-logo-dark-mode.svg',
96+
},
9197
items: [
9298
{
9399
type: 'doc',
@@ -97,7 +103,7 @@ const config: Config = {
97103
},
98104
{
99105
type: 'doc',
100-
docId: 'self-hosting/intro',
106+
docId: 'self-hosting/index',
101107
position: 'left',
102108
label: 'Self-hosting',
103109
},
@@ -131,6 +137,7 @@ const config: Config = {
131137
prism: {
132138
theme: prismThemes.github,
133139
darkTheme: prismThemes.dracula,
140+
additionalLanguages: ['bash'],
134141
},
135142
} satisfies Preset.ThemeConfig,
136143
};
Lines changed: 10 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)