Skip to content

Commit 847621e

Browse files
Merge branch 'develop' for docs publish
2 parents 06e3def + f34f994 commit 847621e

5 files changed

Lines changed: 70 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
tags: [ 'v*' ]
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-and-deploy:
11+
name: Build and Deploy API Docs
12+
runs-on: macos-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Show Environment
19+
run: |
20+
xcodebuild -version
21+
swift --version
22+
23+
- name: Install Jazzy
24+
run: |
25+
sudo gem install jazzy --no-document
26+
jazzy --version
27+
28+
- name: Generate Docs
29+
run: bash Scripts/generate-docs.sh
30+
31+
- name: Upload Docs Artifact
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: api-docs
35+
path: docs
36+
37+
- name: Deploy to GitHub Pages
38+
uses: peaceiris/actions-gh-pages@v3
39+
with:
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
publish_dir: ./docs
42+
publish_branch: gh-pages
43+
force_orphan: true
44+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
docs/
12
### Swift Package Manager ###
23
.build/
34
.swiftpm/

.jazzy.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
author: Larkin
2+
author_url: mailto:yangchenlarkin@gmail.com
3+
github_url: https://github.com/yangchenlarkin/Monstra
4+
module: Monstra
5+
module_version: 0.0.9
6+
swift_build_tool: spm
7+
theme: apple
8+
min_acl: public
9+
readme: README.md
10+
output: docs
11+
clean: true
12+
exclude:
13+
- Examples
14+
- Tests
15+
- .build
16+

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
A high-performance Swift framework providing efficient task execution, memory caching, and data management utilities with intelligent execution merging, TTL caching, and retry logic.
1212

13+
Documentation: [API Reference (Jazzy)](https://yangchenlarkin.github.io/Monstra/)
14+
1315
## 🚀 Features
1416

1517
### Monstore - Caching System

Scripts/generate-docs.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
echo "Generating Jazzy docs..."
5+
jazzy --clean --config .jazzy.yaml
6+
echo "Docs generated under ./docs"
7+

0 commit comments

Comments
 (0)