File tree Expand file tree Collapse file tree 5 files changed +46
-43
lines changed Expand file tree Collapse file tree 5 files changed +46
-43
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ - uses : actions/setup-python@v4
14
+ with :
15
+ python-version : ' 3.11'
16
+ - run : pip install -r requirements.txt
17
+ - run : make sphinx
18
+ # Publish built docs to gh-pages branch.
19
+ - name : Commit documentation changes
20
+ run : |
21
+ git clone https://github.com/wdv4758h/notes.git --depth 1 --branch gh-pages --single-branch gh-pages
22
+ rm -rf gh-pages/*
23
+ cp -r _build/html/* gh-pages/
24
+ cd gh-pages
25
+ touch .nojekyll
26
+ git config --local user.email "[email protected] "
27
+ git config --local user.name "GitHub Action"
28
+ git add .
29
+ git commit -m "Update documentation" -a || true
30
+ # The above command will fail if no changes were present, so we ignore that.
31
+ - name : Push changes
32
+ uses : ad-m/github-push-action@master
33
+ with :
34
+ branch : gh-pages
35
+ directory : gh-pages
36
+ github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ sphinx:
11
11
mv README.rst index.rst
12
12
13
13
# 用 Sphinx 編出網頁
14
- sphinx-build -T -E -b readthedocs -d _build/doctrees-readthedocs -D language=zh_TW . _build/html
14
+ sphinx-build -j auto - T -E -b readthedocs -d _build/doctrees-readthedocs -D language=en . _build/html
15
15
16
16
push :
17
17
# 為 Travis CI 設定 git 的 user.name 和 user.email
Original file line number Diff line number Diff line change 11
11
# source_parsers = { '.md': CommonMarkParser, }
12
12
master_doc = 'index'
13
13
project = u'wdv4758h-notes'
14
- copyright = u'2016'
14
+ copyright = u'2023'
15
+ language = 'en'
15
16
version = 'latest'
16
17
release = 'latest'
17
18
exclude_patterns = ['_build' ]
105
106
'MEDIA_URL' : "https://media.readthedocs.org/" ,
106
107
'PRODUCTION_DOMAIN' : "readthedocs.org" ,
107
108
'versions' : [
108
- ("latest" , "/zh_TW/latest /" ),
109
+ ("latest" , "https://wdv4758h.github.io/notes /" ),
109
110
],
110
111
'downloads' : [
111
112
("htmlzip" , "//readthedocs.org/projects/wdv4758h-notes/downloads/htmlzip/latest/" ),
114
115
],
115
116
'slug' : 'wdv4758h-notes' ,
116
117
'name' : u'wdv4758h-notes' ,
117
- 'rtd_language' : u'zh_TW ' ,
118
- 'canonical_url' : 'http ://wdv4758h-notes.readthedocs.io/zh_TW/latest/' ,
118
+ 'rtd_language' : u'en ' ,
119
+ 'canonical_url' : 'https ://wdv4758h-notes.readthedocs.io/zh_TW/latest/' ,
119
120
'analytics_code' : '' ,
120
121
'single_version' : False ,
121
122
'conf_py_path' : '/./' ,
Original file line number Diff line number Diff line change 1
- sphinx == 2.3.0
2
- readthedocs-sphinx-ext == 1.0.1
3
- sphinx_rtd_theme == 0.4.3
4
- ghp-import == 0.5.5
1
+ sphinx == 6.2.1
2
+ readthedocs-sphinx-ext == 2.2.2
3
+ sphinx_rtd_theme == 1.2.2
4
+ ghp-import == 2.1.0
You can’t perform that action at this time.
0 commit comments