-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1e13f2
commit 07af30d
Showing
9 changed files
with
132 additions
and
7 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
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,45 @@ | ||
name: "Generate API Reference" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
actions: read | ||
pages: write | ||
id-token: write | ||
contents: read | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
publish-docs: | ||
name: Build with DocFx and publish to GitHub Pages | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET | ||
uses: ./.github/actions/setup-dotnet | ||
|
||
- name: Install DocFx | ||
run: dotnet tool update -g docfx | ||
|
||
- name: Build API Reference using DocFx | ||
run: docfx docfx.json | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: "_site" | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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 |
---|---|---|
|
@@ -8,4 +8,8 @@ node_modules | |
artifacts | ||
|
||
# General | ||
|
||
# Documentation | ||
.DS_Store | ||
docs | ||
_site |
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
Binary file not shown.
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,36 @@ | ||
{ | ||
"metadata": [ | ||
{ | ||
"src": [ | ||
{ | ||
"src": "Aptos", | ||
"files": ["**/*.csproj"] | ||
} | ||
], | ||
"dest": "docs" | ||
} | ||
], | ||
"build": { | ||
"content": [ | ||
{ | ||
"files": ["**/*.{md,yml}"], | ||
"exclude": ["_site/**"] | ||
} | ||
], | ||
"resource": [ | ||
{ | ||
"files": ["assets/**"] | ||
} | ||
], | ||
"output": "_site", | ||
"template": ["default", "modern", "docs-template"], | ||
"globalMetadata": { | ||
"_appName": "Aptos .NET API Reference", | ||
"_appTitle": "Aptos .NET API Reference", | ||
"_appLogoPath": "assets/favicon.ico", | ||
"_appFaviconPath": "assets/favicon.ico", | ||
"_enableSearch": true, | ||
"pdf": false | ||
} | ||
} | ||
} |
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,4 @@ | ||
#logo { | ||
max-width: 24px; | ||
margin-right: 8px; | ||
} |
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,22 @@ | ||
--- | ||
_layout: landing | ||
--- | ||
|
||
# Aptos .NET SDK API Reference | ||
|
||
This is the full API reference for the Aptos .NET SDK. | ||
|
||
## Installation | ||
|
||
The SDK is published onto [NuGet](https://www.nuget.org/packages/Aptos/) where you can install it using the following command: | ||
|
||
```bash | ||
dotnet add package Aptos | ||
``` | ||
|
||
## Explore | ||
|
||
- [Aptos](/docs/Aptos.html): The main namespace for interacting with the Aptos blockchain. | ||
- [Aptos.Core](/docs/Aptos.Core.html): Core utilities for the SDK. | ||
- [Aptos.Schemes](/docs/Aptos.Schemes.html): All authentication schemes supported in the SDK. | ||
- [Aptos.Exceptions](/docs/Aptos.Exceptions.html): All data types for exceptions thrown by the SDK. |
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,14 @@ | ||
- name: API Reference | ||
href: docs/ | ||
|
||
- name: Aptos | ||
href: docs/Aptos.html | ||
|
||
- name: Aptos.Core | ||
href: docs/Aptos.Core.html | ||
|
||
- name: Aptos.Schemes | ||
href: docs/Aptos.Schemes.html | ||
|
||
- name: Aptos.Exceptions | ||
href: docs/Aptos.Exceptions.html |