Skip to content

Commit

Permalink
Update document workflow to use custom DocGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
terwanerik committed Apr 1, 2022
1 parent 05ff379 commit eb466c1
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,17 @@ jobs:
- name: Install Jazzy
run: gem install jazzy

- name: Build Swift docs
- name: Install Doc Generator
run: |
sourcekitten doc --spm --module-name ${{ github.event.repository.name }} > swiftDoc.json
- name: Build ObjC docs
run: |
sourcekitten doc --objc $(pwd)/Sources/${{ github.event.repository.name }}ObjC/include/${{ github.event.repository.name }}ObjC.h \
-- -x objective-c -isysroot $(xcrun --show-sdk-path --sdk iphonesimulator) \
-I $(pwd) -fmodules > objcDoc.json
- name: Get Jazzy
run: |
jazzy --sourcekitten-sourcefile objcDoc.json,swiftDoc.json
git clone https://github.com/mediamonks/MMMDocGenerator.git
cd MMMDocGenerator
swift build -c release
cd ../
cp MMMDocGenerator/.build/release/DocGenerator .
- name: Generate docs
run: ./DocGenerator -p ${{ github.event.repository.name }}

- name: Publish
uses: JamesIves/[email protected]
with:
Expand Down

0 comments on commit eb466c1

Please sign in to comment.