File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 42
42
with :
43
43
github_token : ${{ secrets.GITHUB_TOKEN }}
44
44
publish_dir : ./build
45
+ cname : phpdoc.moodledev.io
Original file line number Diff line number Diff line change
1
+ </ul >
2
+ </div >
3
+ </body >
4
+ </html >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ <html lang =" en" >
3
+ <head >
4
+ <title >PHP Documentation: Moodle</title >
5
+ <link data-rh =" true" rel =" canonical" href =" https://phpdocmoodledev.io/" >
6
+ </head >
7
+ <body >
8
+ <div role =" main" >
9
+ <h1 >PHP Documentation for Moodle</h1 >
10
+ <p >
11
+ Documentation is available for the following branches:
12
+ </p >
13
+ <ul >
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ echo "= Versions: ${VERSIONLIST[*]}"
15
15
echo " = Branches: ${BRANCHLIST[*]} "
16
16
echo " ============================================================================"
17
17
18
+ htmlbranchlist=" "
19
+
18
20
for index in ${! VERSIONLIST[@]} ; do
19
21
version=${VERSIONLIST[$index]}
20
22
moodlebranch=${BRANCHLIST[$index]}
@@ -57,8 +59,15 @@ for index in ${!VERSIONLIST[@]}; do
57
59
echo " ========================================"
58
60
echo " == Completed documentation generation for ${version} "
59
61
echo " ========================================"
62
+
63
+ htmlbranchlist=" ${htmlbranchlist}
64
+ <li><a href='./${version} '>Moodle ${version} </a></li>"
60
65
done
61
66
67
+ cat " ${ROOT} /index.head.tpl" > " ${ROOT} /build/index.html"
68
+ echo " ${htmlbranchlist} " >> " ${ROOT} /build/index.html"
69
+ cat " ${ROOT} /index.foot.tpl" >> " ${ROOT} /build/index.html"
70
+
62
71
echo " ============================================================================"
63
72
echo " = Documentation build completed."
64
73
echo " ============================================================================"
You can’t perform that action at this time.
0 commit comments