Skip to content

Commit 4405cb6

Browse files
committed
Merge branch 'release-4.3' of https://github.com/emqx/emqx-docs into release-4.3
2 parents 4197b57 + a5f44a6 commit 4405cb6

Some content is hidden

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

42 files changed

+221
-309
lines changed

.github/scripts/build_versions.py

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

.github/scripts/directory_check.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import sys
33
import json
44
import re
5+
from urllib.parse import urlparse
56

67
directory_file = sys.argv[1]
78
docs_path = sys.argv[2]
@@ -30,6 +31,8 @@ def check_md_content(md_file):
3031
continue
3132
if url[2].startswith(('http://', 'https://', '<', '#', 'mailto:', 'tel:')):
3233
continue
34+
if urlparse(url[2]).path.endswith('.html'):
35+
continue
3336
url_path = url[2].split('.md')[0]
3437
ref_md_path = os.path.join(f'{"/".join(md_file.split("/")[:-1])}/', f'{url_path}.md')
3538

@@ -62,7 +65,7 @@ def get_md_files(dir_config, path):
6265
if md_name.startswith(('http://', 'https://')):
6366
continue
6467
elif md_name == './':
65-
md_list.append(f'{docs_path}/{path}/README.md')
68+
md_list.append(f'{docs_path}/{path}/index.md')
6669
else:
6770
md_list.append(f'{docs_path}/{path}/{md_name}.md')
6871

.github/scripts/remove_unused.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def get_markdown_file(dir_config, base_path):
1111
for row in dir_config:
1212
if row.get('path'):
1313
current_files.append(
14-
f'{base_path}/README.md' if row['path'] == './'
14+
f'{base_path}/index.md' if row['path'] == './'
1515
else f'{base_path}/{row["path"]}.md'
1616
)
1717
if row.get('children'):

.github/workflows/check_markdown.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,22 @@ jobs:
1414
sudo npm install -g markdownlint-cli
1515
markdownlint -c .github/workflows/markdown_config.json ./
1616
17-
broker_directory_check:
17+
ce_directory_check:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: check out code
2121
uses: actions/checkout@main
22-
22+
2323
- name: check directory config
24-
run: python3 .github/scripts/directory_check.py directory.json $(pwd)
24+
run: |
25+
python3 .github/scripts/directory_check.py directory.json $(pwd)
2526
26-
enterprise_directory_check:
27+
ee_directory_check:
2728
runs-on: ubuntu-latest
2829
steps:
2930
- name: check out code
3031
uses: actions/checkout@main
31-
32+
3233
- name: check enterprise directory config
33-
run: python3 .github/scripts/directory_check.py directory_ee.json $(pwd)
34+
run: |
35+
python3 .github/scripts/directory_check.py directory_ee.json $(pwd)

0 commit comments

Comments
 (0)