-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `.jazzy.yaml` configuration file * Update `swiftlint generate-docs` to write docs to a directory rather than a single file * Add jazzy to the Gemfile * Run `bundle update` * Add GitHub Actions workflow to run jazzy automatically and publish to GitHub Pages
- Loading branch information
Showing
16 changed files
with
256 additions
and
27,053 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Jazzy | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
Jazzy: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: norionomura/jazzy:0.13.0_swift-5.1.3 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Run swiftlint generate-docs | ||
run: swift run swiftlint generate-docs | ||
- name: Bundle install | ||
run: bundle install --path vendor/bundle | ||
- name: Run jazzy | ||
run: bundle exec jazzy | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: API Docs | ||
path: docs | ||
- name: Push to gh-pages | ||
if: github.event_name == 'push' | ||
run: | | ||
git config --global user.email "${GITHUB_ACTOR}" | ||
git config --global user.name "${GITHUB_ACTOR}@users.noreply.github.com" | ||
git clone "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" out | ||
cd out | ||
git checkout gh-pages | ||
git rm -rf . | ||
cd .. | ||
cp -a docs/. out/. | ||
cd out | ||
git add -A | ||
git commit -m "Automated deployment to GitHub Pages: ${GITHUB_SHA}" --allow-empty | ||
git push origin gh-pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module: SwiftLintFramework | ||
author: JP Simard | ||
author_url: https://jpsim.com | ||
root_url: https://jpsim.com/SwiftLint/ | ||
github_url: https://github.com/realm/SwiftLint | ||
github_file_prefix: https://github.com/realm/SwiftLint/tree/master | ||
swift_build_tool: spm | ||
theme: fullwidth | ||
clean: true | ||
copyright: '© 2020 [JP Simard](https://jpsim.com) under MIT.' | ||
|
||
documentation: rule_docs/*.md | ||
# TODO: Upstream support for these settings | ||
# hide_unlisted_documentation: true | ||
# custom_categories_unlisted_prefix: '' | ||
custom_categories: | ||
- name: Rules | ||
children: | ||
- Rule Directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'cocoapods', '~> 1.7.0' | ||
gem 'cocoapods' | ||
gem 'danger' | ||
gem 'jazzy' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.