-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #2025 - API Docs are now generated via Github Action - View Sou…
…rce Works (#2027) * Fixes #1991 - Broken link in README * Force push to main to update api docs after fixing #1874 * Fixes #1745 - Github action to generate API docs * Try 2 - Fixes #1745 - Github action to generate API docs * Try 3 - Fixes #1745 - Github action to generate API docs * Try 4 - Fixes #1745 - Github action to generate API docs * Try 4 - Fixes #1745 - Github action to generate API docs * Try 6 - Fixes #1745 - Github action to generate API docs * Removed docs folder because gh-pages branch is now used * Ignore ./docs folder * Fix readme for docfx * Revert "merge" This reverts commit 870a241, reversing changes made to 48089bb.
- Loading branch information
Showing
349 changed files
with
599 additions
and
196,995 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,54 @@ | ||
name: Build and publish API docs | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
generate-docs: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.100 | ||
|
||
- name: Setup DocFX | ||
uses: crazy-max/ghaction-chocolatey@v1 | ||
with: | ||
args: install docfx | ||
|
||
- name: Install dependencies | ||
run: dotnet restore | ||
|
||
- name: DocFX Build | ||
working-directory: docfx | ||
# https://stackoverflow.com/questions/56726429/how-to-run-multiple-commands-in-one-github-actions-docker | ||
run: | | ||
rm ../docs -Recurse -Force | ||
docfx docfx.json | ||
continue-on-error: false | ||
|
||
- name: Publish | ||
if: github.event_name == 'push' | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs | ||
force_orphan: true | ||
|
||
# - name: Use docfx to build API Docs | ||
# uses: nikeee/docfx-action@v1.0.0 | ||
# with: | ||
# args: docfx/docfx.json | ||
|
||
# # Publish generated site using GitHub Pages | ||
# - uses: maxheld83/ghpages@master | ||
# name: Publish API Documentation on GitHub Pages | ||
# env: | ||
# BUILD_DIR: docs # docfx's default output directory is _site | ||
# GH_PAT: ${{ secrets.GH_PAT }} # See https://github.com/maxheld83/ghpages |
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
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.