Skip to content

Commit

Permalink
Move to docc documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
david-swift committed Apr 13, 2024
1 parent 23fd02d commit 1912b32
Show file tree
Hide file tree
Showing 32 changed files with 130 additions and 907 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy Docs

on:
push:
branches: ["main"]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
Deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Build Docs
run: |
xcrun xcodebuild docbuild \
-scheme SettingsKit \
-destination 'generic/platform=macOS' \
-derivedDataPath "$PWD/.derivedData"
xcrun docc process-archive transform-for-static-hosting \
"$PWD/.derivedData/Build/Products/Debug/Adwaita.doccarchive" \
--output-path "docs" \
--hosting-base-path "settingskit-macos"
- name: Modify Docs
run: |
echo "<script>window.location.href += \"/documentation/settingskit\"</script>" > docs/index.html;
sed -i '' 's/,2px/,10px/g' docs/css/index.038e887c.css
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ DerivedData/
.swiftpm/
.netrc
/Package.resolved
.Ulysses-Group.plist
.Ulysses-Group.plist
/.docc-build
28 changes: 0 additions & 28 deletions Documentation/Reference/SettingsKit/README.md

This file was deleted.

43 changes: 0 additions & 43 deletions Documentation/Reference/SettingsKit/classes/SettingsModel.md

This file was deleted.

50 changes: 0 additions & 50 deletions Documentation/Reference/SettingsKit/enums/SettingsAction.md

This file was deleted.

43 changes: 0 additions & 43 deletions Documentation/Reference/SettingsKit/enums/TabType.md

This file was deleted.

34 changes: 0 additions & 34 deletions Documentation/Reference/SettingsKit/extensions/ButtonStyle.md

This file was deleted.

63 changes: 0 additions & 63 deletions Documentation/Reference/SettingsKit/extensions/CGFloat.md

This file was deleted.

23 changes: 0 additions & 23 deletions Documentation/Reference/SettingsKit/extensions/Double.md

This file was deleted.

15 changes: 0 additions & 15 deletions Documentation/Reference/SettingsKit/extensions/KeyboardShortcut.md

This file was deleted.

Loading

0 comments on commit 1912b32

Please sign in to comment.