Skip to content

Commit ec152e6

Browse files
authored
Merge branch 'main' into fix-zui-functions
2 parents fcc65c4 + f51442f commit ec152e6

File tree

6 files changed

+1614
-0
lines changed

6 files changed

+1614
-0
lines changed

.github/workflows/doxygen.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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

0 commit comments

Comments
 (0)