File tree Expand file tree Collapse file tree 6 files changed +1614
-0
lines changed Expand file tree Collapse file tree 6 files changed +1614
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : 📖 Doxygen
3+
4+ on :
5+ push :
6+ paths :
7+ - " functions/**"
8+ - " lib/**"
9+ pull_request :
10+ paths :
11+ - " functions/**"
12+ - " lib/**"
13+ schedule :
14+ - cron : " 30 4 * * 4"
15+ workflow_dispatch : {}
16+
17+ jobs :
18+ generate :
19+ runs-on : ubuntu-latest
20+ timeout-minutes : 30
21+ concurrency :
22+ group : ${{ github.workflow }}-${{ github.ref }}
23+ cancel-in-progress : true
24+ env :
25+ GH_TOKEN : ${{ github.token }}
26+ steps :
27+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
28+ with :
29+ token : ${{ secrets.GITHUB_TOKEN }}
30+ submodules : recursive
31+ fetch-depth : 0
32+ ref : ${{ github.event.pull_request.head.ref }}
33+ - name : ⚡ Dependencies
34+ run : |
35+ sudo apt-get update -y
36+ sudo apt-get install -y zsh tree
37+ - name : 📦 Install Doxygen
38+ run : |
39+ gh repo clone z-shell/zsdoc tmp/zsdoc
40+ sudo make -C tmp/zsdoc install
41+ - name : ♻️ Generate Codebase Documentation
42+ run : make
43+ - name : 🏗 Compress codebase documentation
44+ run : tar cvzf docs.tar.gz docs
45+ - name : 📤 Upload docs.tar.gz
46+ uses : actions/upload-artifact@v4
47+ with :
48+ name : Codebase documentation
49+ path : docs.tar.gz
50+ - name : ♻️ Cleanup
51+ run : |
52+ rm -rf docs.tar.gz
53+ - name : " 🆗 Commit"
54+ if : ${{ github.event_name != 'pull_request' }}
55+ uses : z-shell/.github/actions/commit@main
56+ with :
57+ commitMessage : Codebase ${{ github.sha }}
58+ workDir : docs
59+ commitUserName : digital-teams[bot]
60+ commitUserEmail : actions@zshell.dev
Original file line number Diff line number Diff line change 1+ all : adoc clean
2+
3+ % .zwc : %
4+ @lib/zcompile.zsh $<
5+
6+ adoc : lib/stdlib.lzui.zwc lib/syslib.lzui.zwc lib/utillib.lzui.zwc
7+ @zsd -v --scomm \
8+ --cignore ' (\#[[:blank:]]FUN(C|CTION|):[[:blank:]]*[[:blank:]]{{{*|[[:blank:]]\#[[:blank:]]}}}*)' \
9+ lib/* .lzui
10+ @cp -f zsdoc/* .adoc docs/
11+
12+ html :
13+ @asciidoctor zsdoc/* .lzui.adoc
14+
15+ clean :
16+ @rm -rf zsdoc
17+ @rm -rf lib/* .zwc
You can’t perform that action at this time.
0 commit comments