Skip to content

Commit 3bda4e2

Browse files
authored
Merge pull request #357 from mattpolzin/add-swift-docc
Add swift docc based documentation to repo via GitHub pages.
2 parents 6bd7c07 + 5e72749 commit 3bda4e2

File tree

4 files changed

+52
-15
lines changed

4 files changed

+52
-15
lines changed

.github/workflows/documentation.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,34 @@ name: Documentation
33
on:
44
push:
55
branches:
6-
- main
6+
- release/4_0
7+
# ^ for now, we only want to use the v4.0 release branch.
78

89
jobs:
910
build:
1011
runs-on: ubuntu-latest
1112

1213
steps:
1314
- uses: actions/checkout@v3
15+
16+
- name: Build Docs
17+
run: |
18+
mkdir -p ./gh-pages
19+
swift package --allow-writing-to-directory ./gh-pages/docs \
20+
generate-documentation --include-extended-types \
21+
--disable-indexing \
22+
--output-path ./gh-pages/docs \
23+
--transform-for-static-hosting \
24+
--hosting-base-path OpenAPIKit \
25+
--target OpenAPIKit
26+
27+
- name: Deploy to GitHub Pages
28+
uses: JamesIves/[email protected]
29+
with:
30+
folder: gh-pages
31+
branch: gh-pages
32+
33+
1434
# TODO: replace the documentation generator with something that is still maintained.
1535

1636
# - name: Generate Documentation

Package.resolved

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
11
{
2-
"object": {
3-
"pins": [
4-
{
5-
"package": "Yams",
6-
"repositoryURL": "https://github.com/jpsim/Yams.git",
7-
"state": {
8-
"branch": null,
9-
"revision": "9ff1cc9327586db4e0c8f46f064b6a82ec1566fa",
10-
"version": "4.0.6"
11-
}
2+
"pins" : [
3+
{
4+
"identity" : "swift-docc-plugin",
5+
"kind" : "remoteSourceControl",
6+
"location" : "https://github.com/apple/swift-docc-plugin",
7+
"state" : {
8+
"revision" : "26ac5758409154cc448d7ab82389c520fa8a8247",
9+
"version" : "1.3.0"
1210
}
13-
]
14-
},
15-
"version": 1
11+
},
12+
{
13+
"identity" : "swift-docc-symbolkit",
14+
"kind" : "remoteSourceControl",
15+
"location" : "https://github.com/apple/swift-docc-symbolkit",
16+
"state" : {
17+
"revision" : "b45d1f2ed151d057b54504d653e0da5552844e34",
18+
"version" : "1.0.0"
19+
}
20+
},
21+
{
22+
"identity" : "yams",
23+
"kind" : "remoteSourceControl",
24+
"location" : "https://github.com/jpsim/Yams.git",
25+
"state" : {
26+
"revision" : "9ff1cc9327586db4e0c8f46f064b6a82ec1566fa",
27+
"version" : "4.0.6"
28+
}
29+
}
30+
],
31+
"version" : 2
1632
}

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ let package = Package(
2020
targets: ["OpenAPIKitCompat"]),
2121
],
2222
dependencies: [
23+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
2324
.package(url: "https://github.com/jpsim/Yams.git", "4.0.0"..<"6.0.0") // just for tests
2425
],
2526
targets: [

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,4 +424,4 @@ Please see [Security](./SECURITY.md) for information on how to report vulnerabil
424424
**Please do not report security vulnerabilities via GitHub issues.**
425425

426426
## Specification Coverage & Type Reference
427-
For a full list of OpenAPI Specification types annotated with whether OpenAPIKit supports them and relevant translations to OpenAPIKit types, see the [Specification Coverage](./documentation/specification_coverage.md) documentation. For detailed information on the OpenAPIKit types, see the [full type documentation](https://github.com/mattpolzin/OpenAPIKit/wiki).
427+
For a full list of OpenAPI Specification types annotated with whether OpenAPIKit supports them and relevant translations to OpenAPIKit types, see the [Specification Coverage](./documentation/specification_coverage.md) documentation. For detailed information on the OpenAPIKit types, see the [full type documentation](https://mattpolzin.github.io/OpenAPIKit/documentation/openapikit).

0 commit comments

Comments
 (0)