File tree 14 files changed +21
-22
lines changed
14 files changed +21
-22
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,15 @@ jobs:
10
10
name : Deploy docs
11
11
runs-on : ubuntu-latest
12
12
13
- strategy :
14
- matrix :
15
- language : ['en', 'cn']
16
-
17
13
steps :
18
14
- name : Checkout main
19
15
uses : actions/checkout@v2
20
16
21
- - name : Deploy docs
22
- uses : mhausenblas/mkdocs- deploy-gh-pages@master
23
- env :
24
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
- CUSTOM_DOMAIN : docs.freeflarum.com
26
- CONFIG_FILE : docs/${{ matrix.language }}.yml
27
- EXTRA_PACKAGES : build-base
28
- REQUIREMENTS : requirements.txt
17
+ - name : Build docs
18
+ run : bash deploy.sh
19
+
20
+ - name : Deploy to GitHub Pages 🚀
21
+ uses : peaceiris/actions-gh-pages@v3
22
+ with :
23
+ github_token : ${{ secrets.GITHUB_TOKEN }}
24
+ publish_dir : build
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
cd " $( dirname " $0 " ) "
3
-
4
3
[ ! -d " env" ] && python -m venv env
5
4
6
5
7
6
source env/bin/activate
8
7
pip install -r requirements.txt
9
8
10
- python -m mkdocs gh-deploy --force -f docs/en.yml
11
- python -m mkdocs gh-deploy --force -f docs/cn.yml
12
9
10
+ for f in ./docs/* .yml
11
+ do
12
+ python -m mkdocs build -f " $f "
13
+ done
Original file line number Diff line number Diff line change 9
9
custom_dir : ' ../overrides/'
10
10
logo : assets/images/logo.svg
11
11
favicon : assets/images/favicon.ico
12
+ language : en
12
13
13
14
palette :
14
15
- media : " (prefers-color-scheme: light)"
38
39
lang : en
39
40
40
41
- name : Chinese
41
- link : /en /
42
- lang : en
42
+ link : /zh /
43
+ lang : zh
43
44
44
45
45
46
markdown_extensions :
Original file line number Diff line number Diff line change 1
1
site_name : ' Documentation'
2
2
site_url : https://docs.freeflarum.com/
3
- docs_dir : ' ../docs/cn '
4
- site_dir : ' ../build/cn '
3
+ docs_dir : ' ../docs/zh '
4
+ site_dir : ' ../build/zh '
5
5
6
6
7
7
theme :
8
8
name : material
9
9
custom_dir : ' ../overrides/'
10
10
logo : assets/images/logo.svg
11
11
favicon : assets/images/favicon.ico
12
+ language : zh
12
13
13
14
palette :
14
15
- media : " (prefers-color-scheme: light)"
38
39
lang : en
39
40
40
41
- name : Chinese
41
- link : /cn /
42
- lang : cn
42
+ link : /zh /
43
+ lang : zh
43
44
44
45
45
46
markdown_extensions :
@@ -50,6 +51,6 @@ markdown_extensions:
50
51
51
52
plugins :
52
53
- search :
53
- lang : cn
54
+ lang : zh
54
55
55
56
repo_url : https://github.com/FreeFlarum/freeflarum.com
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments