File tree 3 files changed +39
-0
lines changed
3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : mdbook
2
+ on :
3
+ push :
4
+ paths :
5
+ - " src/**.md"
6
+ - " book.toml"
7
+
8
+ pull_request :
9
+ branches :
10
+ - main
11
+ paths :
12
+ - " src/**.md"
13
+ - " book.toml"
14
+
15
+ jobs :
16
+ pages :
17
+ name : GitHub Pages
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - uses : actions/checkout@v2
21
+
22
+ - name : Setup mdBook 📔
23
+ uses : peaceiris/actions-mdbook@v1
24
+ with :
25
+ mdbook-version : ' 0.4.10'
26
+ # mdbook-version: 'latest'
27
+
28
+ - run : mdbook build
29
+
30
+ - name : Deploy 🚀
31
+ uses : peaceiris/actions-gh-pages@v3
32
+ if : github.event_name == 'push' && github.repository == 'fortran-fans/modern-fortran-programming' && ( startsWith( github.ref, 'refs/tags/' ) || github.ref == 'refs/heads/main' )
33
+ with :
34
+ github_token : ${{ secrets.GITHUB_TOKEN }}
35
+ publish_dir : ./book
Original file line number Diff line number Diff line change 1
1
# 现代Fortran程序设计
2
2
3
+ [ ![ Actions Status] ( https://github.com/fortran-fans/modern-fortran-programming/workflows/mdbook/badge.svg )] ( https://github.com/fortran-fans/modern-fortran-programming/actions )
4
+
3
5
Modern Fortran Programming
4
6
5
7
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ src = "src"
8
8
9
9
[output .html ]
10
10
mathjax-support = true
11
+ git-repository-url = " https://github.com/fortran-fans/modern-fortran-programming/tree/main/"
12
+ edit-url-template = " https://github.com/fortran-fans/modern-fortran-programming/edit/main/{path}"
11
13
12
14
[output .html .playground ]
13
15
editable = false
You can’t perform that action at this time.
0 commit comments