Fix docs workflow
All checks were successful
Deploy Docs / publish (push) Successful in 13m4s

This commit is contained in:
david-swift 2024-10-13 23:30:58 +02:00
parent 2400ec5d90
commit 2d1583c31a

View File

@ -14,11 +14,7 @@ jobs:
swift build
- name: Build Docs
run: |
C:\Users\David\Documents\Projects\swift-docc\.build\x86_64-unknown-windows-msvc\release\docc.exe convert .\Sources\winui-swift\winui-swift.docc --output-dir docs --additional-symbol-graph-dir .build --transform-for-static-hosting
- name: Modify Docs
run: |
echo "<script>window.location.href += \"/documentation/winui_swift\"</script><p>Please enable JavaScript to view the documentation <a href='/documentation/winui_swift'>here</a>.</p>" > docs/index.html;
sed -i '' 's/,2px/,10px/g' docs/css/index.*.css
C:\Users\David\Documents\Projects\swift-docc\.build\x86_64-unknown-windows-msvc\release\docc.exe convert .\Sources\winui-swift\winui-swift.docc --output-dir docs --additional-symbol-graph-dir .build --transform-for-static-hosting
- name: Upload
uses: wangyucode/sftp-upload-action@v2.0.2
with: