Skip to content

Commit b81e109

Browse files
committed
Merge main and fix conflicts
2 parents 5332e00 + be928aa commit b81e109

File tree

767 files changed

+7023
-12584
lines changed

Some content is hidden

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

767 files changed

+7023
-12584
lines changed

.github/workflows/checks.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
name: Checks
22
# Triggered when code is pushed to any branch in a repository
3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- '**'
47

58
jobs:
69
spellcheck:
710
runs-on: ubuntu-latest
811
steps:
912
- uses: actions/checkout@v3
10-
11-
# need Node 16 or less to get rid of ERR_OSSL_EVP_UNSUPPORTED
1213
- uses: actions/setup-node@v3
1314
with:
14-
node-version: 16
15+
node-version: 20
1516

1617
- name: Generate dist
1718
run: |
@@ -33,12 +34,10 @@ jobs:
3334
runs-on: ubuntu-latest
3435
steps:
3536
- uses: actions/checkout@v3
36-
37-
# need Node 16 or less to get rid of ERR_OSSL_EVP_UNSUPPORTED
3837
- uses: actions/setup-node@v3
3938
with:
40-
node-version: 16
41-
39+
node-version: 20
40+
cache: 'yarn'
4241
- name: Generate dist
4342
run: |
4443
yarn install
@@ -60,6 +59,13 @@ jobs:
6059
run: |
6160
EXCLUDE_LIST=$(cat scripts/broken-link-exceptions.txt)
6261
echo "EXCLUDE_LIST=$EXCLUDE_LIST" >> $GITHUB_ENV
62+
63+
- name: Do not check Github links on dev branches
64+
if: ${{ github.ref_name != 'main' }}
65+
run: |
66+
# Do not check GH on every commit, their rate limits are too small
67+
EXCLUDE_LIST="$EXCLUDE_LIST --exclude=https://github.com/*"
68+
echo "EXCLUDE_LIST=$EXCLUDE_LIST" >> $GITHUB_ENV
6369
6470
- name: Check broken links
6571
uses: ruzickap/action-my-broken-link-checker@v2

.github/workflows/dist-dev.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
paths-ignore:
99
- 'scripts/**'
1010
- 'README.md'
11+
workflow_dispatch:
1112

1213
concurrency:
1314
group: dist-dev-${{ github.head_ref }}
@@ -18,18 +19,20 @@ jobs:
1819
runs-on: ubuntu-latest
1920
steps:
2021
- uses: actions/checkout@v3
21-
22-
# need Node 16 or less to get rid of ERR_OSSL_EVP_UNSUPPORTED
2322
- uses: actions/setup-node@v3
2423
with:
25-
node-version: 16
24+
node-version: 20
25+
cache: 'yarn'
2626

2727
- name: Install
2828
run: |
2929
yarn install
3030
3131
- name: Generate dist
32+
env:
33+
SMARTLOOK_KEY: ${{ secrets.SMARTLOOK_KEY }}
3234
run: |
35+
echo "VITE_SMARTLOOK_KEY=$SMARTLOOK_KEY" > ./src/.env
3336
yarn build
3437
3538
- name: "Check dist dir consistency"

.github/workflows/dist-prod.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18-
19-
# need Node 16 or less to get rid of ERR_OSSL_EVP_UNSUPPORTED
2018
- uses: actions/setup-node@v3
2119
with:
22-
node-version: 16
20+
node-version: 20
21+
cache: 'yarn'
2322

2423
- name: Install
2524
run: |
2625
yarn install
2726
2827
- name: Generate dist
28+
env:
29+
SMARTLOOK_KEY: ${{ secrets.SMARTLOOK_KEY }}
2930
run: |
31+
echo "VITE_SMARTLOOK_KEY=$SMARTLOOK_KEY" > ./src/.env
3032
yarn build
3133
3234
- name: "Check dist dir consistency"

.github/workflows/status-dev.yml

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

.github/workflows/status-prod.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: Status PROD
22

3-
# runs at minute 0 of the 2rd,5th,8th and 11th hour
3+
# runs 6:00 AM every day
44
on:
5-
push:
6-
branches:
7-
- main
85
schedule:
9-
- cron: '0 2,5,8,11 * * *'
6+
- cron: '0 6 * * *'
107

118
jobs:
12-
dev_status_check:
9+
status_check:
1310
runs-on: ubuntu-latest
1411
env:
1512
URL: "https://merginmaps.com/docs"
@@ -29,4 +26,4 @@ jobs:
2926
uses: ruzickap/action-my-broken-link-checker@v2
3027
with:
3128
url: ${{ env.URL }}
32-
cmd_params: --buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification --ignore-fragments --timeout=60 ${{ env.EXCLUDE_LIST }}
29+
cmd_params: --buffer-size=8192 --max-connections=10 --rate-limit=1 --color=always --skip-tls-verification --ignore-fragments --timeout=60 ${{ env.EXCLUDE_LIST }}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ git-output.txt
1818
.node-version
1919
.vscode
2020
*-snippet.txt
21-
redirect_test.txt
21+
redirect_test.txt
22+
23+
src/.vitepress/cache
24+
src/.vitepress/dist

LICENSE-CODE

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
MIT License
22

3-
Copyright (c) 2020 Nuxt.js with the contributions of:
4-
- Sebastien Chopin (NuxtJS Company)
5-
- Alexandre Chopin (NuxtJS Company)
6-
- Benjamin Canac (NuxtJS Company)
7-
- Sergey Bedritsky (NuxtJS Company)
83
Copyright (c) 2021 Lutra Consulting Ltd.
94

105
Permission is hereby granted, free of charge, to any person obtaining a copy

README.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
[![Checks](https://github.com/MerginMaps/docs/actions/workflows/checks.yml/badge.svg)](https://github.com/MerginMaps/docs/actions/workflows/checks.yml)
2-
[![Deploy DEV](https://github.com/MerginMaps/docs/actions/workflows/dist-dev.yml/badge.svg)](https://github.com/MerginMaps/docs/actions/workflows/dist-dev.yml)
3-
[![Status DEV](https://github.com/MerginMaps/docs/actions/workflows/status-dev.yml/badge.svg)](https://github.com/MerginMaps/docs/actions/workflows/status-dev.yml)
41
[![Deploy PROD](https://github.com/MerginMaps/docs/actions/workflows/dist-prod.yml/badge.svg)](https://github.com/MerginMaps/docs/actions/workflows/dist-prod.yml)
52
[![Status PROD](https://github.com/MerginMaps/docs/actions/workflows/status-prod.yml/badge.svg)](https://github.com/MerginMaps/docs/actions/workflows/status-prod.yml)
3+
[![Deploy DEV](https://github.com/MerginMaps/docs/actions/workflows/dist-dev.yml/badge.svg)](https://github.com/MerginMaps/docs/actions/workflows/dist-dev.yml)
4+
[![Checks](https://github.com/MerginMaps/docs/actions/workflows/checks.yml/badge.svg)](https://github.com/MerginMaps/docs/actions/workflows/checks.yml)
65

76
# Mergin Maps Documentation
87

@@ -17,7 +16,7 @@ Use GitHub Pull Requests to propose changes, we will review and merge your chang
1716
- Check official [vuepress documentation](https://vuepress.vuejs.org/)
1817
- Check the [Mergin Maps Documentation Guidelines](https://merginmaps.com/docs/misc/write-docs/)
1918

20-
<div><img align="left" width="45" height="45" src="https://raw.githubusercontent.com/MerginMaps/docs/main/src/.vuepress/public/slack.svg"><a href="https://merginmaps.com/community/join">Join our community chat</a><br/>and ask questions!</div>
19+
<div><img align="left" width="45" height="45" src="https://raw.githubusercontent.com/MerginMaps/docs/main/src/public/slack.svg"><a href="https://merginmaps.com/community/join">Join our community chat</a><br/>and ask questions!</div>
2120

2221
# Development
2322

@@ -49,6 +48,8 @@ You can also spin-up a node Docker container using the provided compose file
4948
docker compose up mm-docs
5049
```
5150

51+
The minimum required version of Node.js is 18.
52+
5253
## Translations
5354

5455
At the moment we do not support translations, see https://github.com/MerginMaps/docs/issues/133
@@ -65,20 +66,6 @@ yarn build
6566

6667
and see the result in `dist` folder
6768

68-
### Error for nodejs 17
69-
70-
If you get `opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ]`, run
71-
```bash
72-
export NODE_OPTIONS=--openssl-legacy-provider
73-
```
74-
75-
or on Windows
76-
```bash
77-
set NODE_OPTIONS=--openssl-legacy-provider
78-
```
79-
80-
or downgrade `nodejs` to 16 or less. More here: https://github.com/webpack/webpack/issues/14532
81-
8269
# License
8370

8471
The Mergin Maps product documentation in the `src` are licensed under a [CC-BY license](LICENSE).

0 commit comments

Comments
 (0)