Fix building docs failing

This commit is contained in:
david-swift 2024-10-04 00:40:55 +02:00
parent f69910b2fa
commit f7144643b2
3 changed files with 4 additions and 4 deletions

View File

@ -24,17 +24,17 @@ jobs:
- name: Build Docs
run: |
xcrun xcodebuild docbuild \
-scheme Meta \
-scheme MetaSQLite \
-destination 'generic/platform=macOS' \
-derivedDataPath "$PWD/.derivedData" \
-skipPackagePluginValidation
xcrun docc process-archive transform-for-static-hosting \
"$PWD/.derivedData/Build/Products/Debug/Meta.doccarchive" \
"$PWD/.derivedData/Build/Products/Debug/MetaSQLite.doccarchive" \
--output-path "docs" \
--hosting-base-path "Meta"
--hosting-base-path "meta-sqlite"
- name: Modify Docs
run: |
echo "<script>window.location.href += \"/documentation/meta\"</script>" > docs/index.html;
echo "<script>window.location.href += \"/documentation/metasqlite\"</script>" > docs/index.html;
sed -i '' 's/,2px/,10px/g' docs/css/index.*.css
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3