Skip to content

Commit 4951f8c

Browse files
AlexAndBearCopilot
andauthored
add to ci, fix linter problems (#378)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent dbdf6e1 commit 4951f8c

File tree

53 files changed

+570
-548
lines changed

Some content is hidden

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

53 files changed

+570
-548
lines changed

.markdownlint-cli2.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"ignores": [
55
".git",
66
"node_modules",
7+
"build",
78
"static",
89
"assets",
910
"CHANGELOG.md",

.markdownlint.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"default": true,
3-
"MD003": false, // Disable MD003 to allow different heading styles
43
"MD013": false, // Disable MD013 to allow long lines
54
"MD033": false, // Disable MD033 to allow inline HTML
6-
"MD029": { "style": "ordered" } // Ensure ordered lists are used
5+
"MD024": false, // Disable MD024 to allow headings with the same text
6+
"MD025": false, // Disable MD025 to allow frontmatter title with different content as heading ( e.g. Nav items should should be short)
7+
"MD029": false // TODO: Too much false positives
78
}

.woodpecker/build.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ steps:
99
image: quay.io/thegeeklab/git-batch
1010
commands:
1111
- git batch -vv
12+
- name: lint-md
13+
image: owncloudci/nodejs:20
14+
commands:
15+
- pnpm install
16+
- pnpm lint:md
1217
- name: format-check
1318
image: owncloudci/nodejs:20
1419
commands:

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ This website is built using [Docusaurus](https://docusaurus.io/), a modern stati
44

55
### Installation
66

7-
```Shell
7+
```bash
88
pnpm install
99
```
1010

1111
### Local Development
1212

1313
clone this repository
1414

15-
```Shell
15+
```bash
1616
pnpm start
1717
```
1818

@@ -22,15 +22,15 @@ This command starts a local development server and opens up a browser window. Mo
2222

2323
To see the docs in German you need to start it with the following command
2424

25-
```Shell
25+
```bash
2626
pnpm run start --locale de
2727
```
2828

2929
It is not possible to switch between the languages via the language switcher
3030

3131
### Build
3232

33-
```Shell
33+
```bash
3434
pnpm build
3535
```
3636

@@ -40,13 +40,13 @@ This command generates static content into the `build` directory and can be serv
4040

4141
Using SSH:
4242

43-
```Shell
43+
```bash
4444
USE_SSH=true pnpm deploy
4545
```
4646

4747
Not using SSH:
4848

49-
```Shell
49+
```bash
5050
GIT_USER=<Your GitHub username> pnpm deploy
5151
```
5252

docs/admin/configuration/authentication-and-user-management/keycloak.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You can also use one of our predefined Docker Compose setups, which are located
2121

2222
### Server Configuration
2323

24-
```
24+
```env
2525
PROXY_AUTOPROVISION_ACCOUNTS=true|false # that depends on your setup
2626
PROXY_ROLE_ASSIGNMENT_DRIVER=oidc
2727
OC_OIDC_ISSUER=https://your-domain.example.com/realms/openCloud
@@ -36,7 +36,7 @@ GRAPH_USERNAME_MATCH=none
3636
OC_EXCLUDE_RUN_SERVICES=idp,idm # it is not supported to run keycloak with the built-in idm
3737
```
3838

39-
Look [here](./external-idp.md#opencloud-configuration) for some more details about these settings.
39+
Look [OpenCloud external IDP configuration](./external-idp.md#opencloud-configuration) for some more details about these settings.
4040

4141
### Client Configuration
4242

docs/admin/configuration/radicale-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ deployment based on the `opencloud_full` deployment example.
3131
In the root directory of the `opencloud_full` deployment example, usually `opencloud/deployments/examples/opencloud_full`,
3232
remove the `#` symbol from the line:
3333

34-
```
34+
```env
3535
#RADICALE=:radicale.yml
3636
```
3737

3838
### 2. Update the deployment
3939

40-
```
40+
```bash
4141
docker compose up -d
4242
```
4343

docs/admin/configuration/storage/decomposeds3.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,29 @@ Decomposeds3 is a storage driver for OpenCloud that uses MinIO, an S3-compatible
2222

2323
Download the `opencloud_full` folder (this folder contains a multi-file Docker Compose configuration):
2424

25-
```Shell
25+
```bash
2626
git clone https://github.com/opencloud-eu/opencloud.git
2727
```
2828

2929
## 2. Start
3030

3131
Navigate to the Docker Compose configuration folder:
3232

33-
```Shell
33+
```bash
3434
cd opencloud/deployments/examples/opencloud_full
3535
```
3636

3737
Enable `decomposeds3.yml` and `minio.yml` in the `.env` file:
3838

39-
```Shell
39+
```bash
4040
nano opencloud/deployments/examples/opencloud_full/.env
4141
```
4242

4343
Find all required environment variables `env` here: [decomposeds3-envs](https://github.com/opencloud-eu/opencloud/blob/main/services/storage-users/pkg/config/config.go#L143-L176)
4444

4545
Start the deployment with Docker Compose:
4646

47-
```Shell
47+
```bash
4848
docker compose up -d
4949
```
5050

@@ -54,7 +54,7 @@ This starts all necessary containers in the background.
5454

5555
Edit the /etc/hosts file and add the following entries for local access:
5656

57-
```
57+
```bash
5858
127.0.0.1 cloud.opencloud.test
5959
127.0.0.1 minio.opencloud.test
6060
```

docs/admin/configuration/storage/posixfs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,6 @@ It is essential to maintain correct file ownership and permissions when modifyin
111111

112112
In addition to the configuration required for non-collaborative mode, the following setting must be enabled for local file systems such as XFS, ext4, and others:
113113

114-
```
114+
```env
115115
STORAGE_USERS_POSIX_WATCH_FS=true
116116
```

docs/admin/getting-started/container/docker-compose-local.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Spin up a temporary local instance of OpenCloud using **Docker Compose**.
2121

2222
Clone the OpenCloud repository:
2323

24-
```Shell
24+
```bash
2525
git clone https://github.com/opencloud-eu/opencloud-compose.git
2626
```
2727

@@ -31,13 +31,13 @@ git clone https://github.com/opencloud-eu/opencloud-compose.git
3131

3232
### cd into the Docker Compose configuration folder
3333

34-
```Shell
34+
```bash
3535
cd opencloud-compose
3636
```
3737

3838
### Create environment file
3939

40-
```Shell
40+
```bash
4141
cp .env.example .env
4242
```
4343

@@ -47,27 +47,27 @@ cp .env.example .env
4747

4848
You can deploy using explicit -f flags:
4949

50-
```Shell
50+
```bash
5151
docker compose -f docker-compose.yml -f weboffice/collabora.yml -f traefik/opencloud.yml -f traefik/collabora.yml up -d
5252
```
5353

5454
Or by uncomment or adding the COMPOSE_FILE variable in .env:
5555

56-
```Shell
56+
```bash
5757
COMPOSE_FILE=docker-compose.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml
5858
```
5959

6060
Set you initial admin password in the .env
6161

62-
```Shell
62+
```bash
6363
INITIAL_ADMIN_PASSWORD=YOUR.SECRET.PASSWORD
6464
```
6565

6666
This is mandatory for security reasons. Otherwise the OpenCloud container will not start.
6767

6868
Start the deployment with Docker Compose:
6969

70-
```Shell
70+
```bash
7171
docker compose up -d
7272
```
7373

@@ -81,7 +81,7 @@ This starts all necessary containers in the background.
8181

8282
Edit the /etc/hosts file and add the following entries for local access:
8383

84-
```
84+
```bash
8585
127.0.0.1 cloud.opencloud.test
8686
127.0.0.1 collabora.opencloud.test
8787
127.0.0.1 wopiserver.opencloud.test

docs/admin/getting-started/container/docker-compose/docker-compose.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ If you encounter any issues, check the [Common Issues & Help](./../../../resourc
257257

258258
<br/>
259259

260-
#### To enable Keycloak for identity and access management, **uncomment** the following lines in your `.env` file
260+
### To enable Keycloak for identity and access management, **uncomment** the following lines in your `.env` file
261261

262262
```env
263263
LDAP=:ldap.yml
@@ -271,7 +271,7 @@ KEYCLOAK_ADMIN_PASSWORD="your.save.password"
271271

272272
This will include the LDAP and Keycloak service definitions in the Docker Compose setup.
273273

274-
#### After starting OpenCloud, Keycloak will be available at
274+
### After starting OpenCloud, Keycloak will be available at
275275

276276
```bash
277277
https://keycloak.your.domain
@@ -281,7 +281,7 @@ https://keycloak.your.domain
281281

282282
### Once Keycloak is running
283283

284-
**1. Open your browser and go to**
284+
#### 1. Open your browser and go to
285285

286286
```bash
287287
https://keycloak.your.domain
@@ -290,15 +290,18 @@ https://keycloak.your.domain
290290
<img src={require("./../../img/docker-compose/keycloak-dashboard.png").default} alt="Keyclosk dashboard" width="1920"/>
291291
<br/><br/>
292292

293-
**2. Log in with the admin credentials (default is admin / admin).**
293+
#### 2. Log in with the admin credentials (default is admin / admin)
294+
294295
<img src={require("./../../img/docker-compose/keycloak-login.png").default} alt="Keycloak login" width="1920"/>
295296
<br/><br/>
296297

297-
**3. In the top-left dropdown (labeled Keycloak), switch to the OpenCloud realm.**
298+
#### 3. In the top-left dropdown (labeled Keycloak), switch to the OpenCloud realm
299+
298300
<img src={require("./../../img/docker-compose/top-left-dropdown.png").default} alt="Top left dropdown menue" width="400"/>
299301
<br/><br/>
300302

301-
**4. Navigate to the "Users" section and click "Add user":**
303+
#### 4. Navigate to the "Users" section and click "Add user"
304+
302305
<img src={require("./../../img/docker-compose/users-section.png").default} alt="User section" width="1920"/>
303306
<br/>
304307

@@ -308,7 +311,7 @@ https://keycloak.your.domain
308311
<img src={require("./../../img/docker-compose/fill-in-userdata.png").default} alt="Fill in userdata" width="1920"/>
309312
<br/><br/>
310313

311-
**5. Go to the "Credentials" tab:**
314+
#### 5. Go to the "Credentials" tab
312315

313316
- Click "Set password"
314317
<img src={require("./../../img/docker-compose/credentials.png").default} alt="Credentials" width="1920"/>
@@ -319,7 +322,8 @@ https://keycloak.your.domain
319322
<img src={require("./../../img/docker-compose/set-password.png").default} alt="Set password" width="400"/>
320323
<br/><br/>
321324

322-
**6. Go to the "Role Mapping" tab:**
325+
#### 6. Go to the "Role Mapping" tab
326+
323327
<img src={require("./../../img/docker-compose/role-mapping.png").default} alt="Role mapping" width="1920"/>
324328
<br/>
325329

@@ -334,4 +338,4 @@ https://keycloak.your.domain
334338
<img src={require("./../../img/docker-compose/realm-roles.png").default} alt="Realm roles" width="1920"/>
335339
<br/>
336340

337-
**The user can now log in via OpenCloud using the Keycloak credentials.**
341+
The user can now log in via OpenCloud using the Keycloak credentials.

0 commit comments

Comments
 (0)