File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Documentation
2+
3+ on :
4+ release :
5+ types : [published]
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : pages
15+ cancel-in-progress : false
16+
17+ env :
18+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 : true
19+
20+ jobs :
21+ build :
22+ name : Build Documentation
23+ runs-on : macos-15
24+ steps :
25+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26+ - uses : actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
27+ - name : Build DocC documentation
28+ run : |
29+ swift package \
30+ --allow-writing-to-directory ./docs \
31+ generate-documentation \
32+ --target SlidableImage \
33+ --output-path ./docs \
34+ --transform-for-static-hosting \
35+ --hosting-base-path SlidableImage
36+ - name : Add root redirect
37+ run : |
38+ echo '<html><head><meta http-equiv="refresh" content="0; url=/SlidableImage/documentation/slidableimage/"></head></html>' > ./docs/index.html
39+ - uses : actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
40+ with :
41+ path : ./docs
42+
43+ deploy :
44+ name : Deploy to GitHub Pages
45+ needs : build
46+ runs-on : ubuntu-latest
47+ environment :
48+ name : github-pages
49+ url : ${{ steps.deployment.outputs.page_url }}
50+ steps :
51+ - name : Deploy
52+ id : deployment
53+ uses : actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ let package = Package(
1414 targets: [ " SlidableImage " ]
1515 )
1616 ] ,
17+ dependencies: [
18+ . package ( url: " https://github.com/apple/swift-docc-plugin " , from: " 1.3.0 " ) ,
19+ ] ,
1720 targets: [
1821 . target( name: " SlidableImage " ) ,
19-
2022 ]
2123)
You can’t perform that action at this time.
0 commit comments