Skip to content

Add swift docc based documentation to repo via GitHub pages. #357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,34 @@ name: Documentation
on:
push:
branches:
- main
- release/4_0
# ^ for now, we only want to use the v4.0 release branch.

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Build Docs
run: |
mkdir -p ./gh-pages
swift package --allow-writing-to-directory ./gh-pages/docs \
generate-documentation --include-extended-types \
--disable-indexing \
--output-path ./gh-pages/docs \
--transform-for-static-hosting \
--hosting-base-path OpenAPIKit \
--target OpenAPIKit

- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
folder: gh-pages
branch: gh-pages


# TODO: replace the documentation generator with something that is still maintained.

# - name: Generate Documentation
Expand Down
42 changes: 29 additions & 13 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ let package = Package(
targets: ["OpenAPIKitCompat"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/jpsim/Yams.git", "4.0.0"..<"6.0.0") // just for tests
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,4 +424,4 @@ Please see [Security](./SECURITY.md) for information on how to report vulnerabil
**Please do not report security vulnerabilities via GitHub issues.**

## Specification Coverage & Type Reference
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).
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).