Skip to content

Commit

Permalink
Merge pull request #40 from cybozu/documentation
Browse files Browse the repository at this point in the history
Documentation Base
  • Loading branch information
Kyome22 authored Jul 7, 2024
2 parents 69cbe56 + 7ca1540 commit 4da651c
Show file tree
Hide file tree
Showing 18 changed files with 75 additions and 105 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/deploy_docc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Deploy DocC

on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- README.md
- .gitignore

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build:
runs-on: macos-14
env:
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build DocC
run: |
swift package --allow-writing-to-directory ./docs \
generate-documentation \
--target LicenseList \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path LicenseList \
--output-path ./docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs

deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: "https://cybozu.github.io/LicenseList/documentation/licenselist/"

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@
"revision" : "ee97538f5b81ae89698fd95938896dec5217b148",
"version" : "1.1.1"
}
},
{
"identity" : "swift-docc-plugin",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-docc-plugin.git",
"state" : {
"revision" : "26ac5758409154cc448d7ab82389c520fa8a8247",
"version" : "1.3.0"
}
},
{
"identity" : "swift-docc-symbolkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-docc-symbolkit",
"state" : {
"revision" : "b45d1f2ed151d057b54504d653e0da5552844e34",
"version" : "1.0.0"
}
}
],
"version" : 2
Expand Down
3 changes: 3 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ let package = Package(
targets: ["LicenseList"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin.git", exact: "1.3.0")
],
targets: [
.executableTarget(
name: "spp",
Expand Down
7 changes: 0 additions & 7 deletions Plugins/PrepareLicenseList/main.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// main.swift
//
//
// Created by ky0me22 on 2022/09/29.
//

import Foundation
import PackagePlugin

Expand Down
7 changes: 0 additions & 7 deletions Sources/LicenseList/Library.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// Library.swift
//
//
// Created by ky0me22 on 2022/06/03.
//

import Foundation

public struct Library: Identifiable, Hashable {
Expand Down
7 changes: 0 additions & 7 deletions Sources/LicenseList/LicenseListView.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// LicenseListView.swift
//
//
// Created by ky0me22 on 2022/06/03.
//

import SwiftUI

public struct LicenseListView: View {
Expand Down
7 changes: 0 additions & 7 deletions Sources/LicenseList/LicenseListViewController.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// LicenseListViewController.swift
//
//
// Created by ky0me22 on 2022/06/06.
//

import UIKit
import SwiftUI

Expand Down
7 changes: 0 additions & 7 deletions Sources/LicenseList/LicenseListViewStyle.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// LicenseListViewStyle.swift
//
//
// Created by 宮本大新 on 2023/11/16.
//

import SwiftUI

public enum LicenseListViewStyle {
Expand Down
7 changes: 0 additions & 7 deletions Sources/LicenseList/LicenseView.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// LicenseView.swift
//
//
// Created by ky0me22 on 2022/06/03.
//

import SwiftUI

public struct LicenseView: View {
Expand Down
7 changes: 0 additions & 7 deletions Sources/LicenseList/String+Extensions.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// String+Extensions.swift
//
//
// Created by ky0me22 on 2022/06/03.
//

import Foundation

extension StringProtocol {
Expand Down
7 changes: 0 additions & 7 deletions Sources/LicenseList/URL+Extension.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// URL+Extension.swift
//
//
// Created by ky0me22 on 2023/09/26.
//

import Foundation

extension URL {
Expand Down
7 changes: 0 additions & 7 deletions Sources/LicenseList/View+Extensions.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// View+Extensions.swift
//
//
// Created by ky0me22 on 2022/06/06.
//

import SwiftUI

extension View {
Expand Down
7 changes: 0 additions & 7 deletions Sources/SourcePackagesParser/Library.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// Library.swift
//
//
// Created by ky0me22 on 2022/06/03.
//

import Foundation

struct Library: Hashable {
Expand Down
7 changes: 0 additions & 7 deletions Sources/SourcePackagesParser/SPPError.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// SPPError.swift
//
//
// Created by ky0me22 on 2022/06/03.
//

enum SPPError: Error {
case couldNotReadFile(String)
case couldNotExportLicenseList
Expand Down
7 changes: 0 additions & 7 deletions Sources/SourcePackagesParser/SourcePackagesParser.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// SourcePackagesParser.swift
//
//
// Created by ky0me22 on 2022/06/03.
//

import Foundation

final class SourcePackagesParser {
Expand Down
7 changes: 0 additions & 7 deletions Sources/SourcePackagesParser/String+Extension.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// String+Extension.swift
//
//
// Created by ky0me22 on 2022/06/03.
//

import Foundation

extension String {
Expand Down
7 changes: 0 additions & 7 deletions Sources/SourcePackagesParser/WorkspaceState.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// WorkspaceState.swift
//
//
// Created by ky0me22 on 2022/06/03.
//

import Foundation

struct WorkspaceState: Decodable {
Expand Down
7 changes: 0 additions & 7 deletions Sources/SourcePackagesParser/main.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// main.swift
//
//
// Created by ky0me22 on 2022/06/03.
//

import Foundation

func exitWithUsage() -> Never {
Expand Down

0 comments on commit 4da651c

Please sign in to comment.