docs: use docfx to generate documentation

This commit is contained in:
Stevan Freeborn
2024-07-07 16:16:55 -05:00
parent 554c696069
commit 3e69208681
227 changed files with 27347 additions and 3 deletions
+19 -1
View File
@@ -77,4 +77,22 @@ jobs:
token: ${{ secrets.ACTIONS_PAT }}
name: AnthropicClient v${{ steps.get-version.outputs.version }}
tag_name: v${{ steps.get-version.outputs.version }}
body_path: src/AnthropicClient/CHANGELOG.md
body_path: src/AnthropicClient/CHANGELOG.md
- name: Install Docfx
run: dotnet tool install --global docfx
- name: Build documentation
run: |
cp README.md docfx/index.md
docfx build docfx/docfx.json
- name: Commit documentation
run: |
git config --local user.email "65925598+StevanFreeborn@users.noreply.github.com"
git config --local user.name "Stevan Freeborn"
git add docfx/_site
git commit -m "docs: documentation for v${{ steps.get-version.outputs.version }} [skip ci]"
- name: Push documentation
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.ACTIONS_PAT }}
branch: ${{ github.ref }}
tags: true