Skip to content

Commit

Permalink
docs: API docs generation (#79)
Browse files Browse the repository at this point in the history
* adding api docs project structure

* fix path for source projects

* updated github actions to publish api docs
  • Loading branch information
t1agob authored Feb 10, 2022
1 parent 7af72eb commit b20862d
Show file tree
Hide file tree
Showing 9 changed files with 105 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_dir: ./dist
- name: Release API docs to latest
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./apidocs/_site
keep_files: true
destination_dir: latest/api
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ docs/node_modules
docs/.cache
docs/public

apidocs/_site
apidocs/obj

deploy/**

.idea
Expand Down
5 changes: 5 additions & 0 deletions apidocs/api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
###############
# temp file #
###############
*.yml
.manifest
Empty file added apidocs/api/index.md
Empty file.
71 changes: 71 additions & 0 deletions apidocs/docfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"metadata": [
{
"src": [
{
"files": [
"**/*.csproj"
],
"src": "../libraries/src/",
"force": true
}
],
"dest": "api",
"disableGitFeatures": false,
"disableDefaultFilter": false
}
],
"build": {
"content": [
{
"files": [
"api/**.yml",
"api/index.md"
]
},
{
"files": [
"toc.yml",
"*.md"
]
}
],
"resource": [
{
"files": [
"images/**"
]
}
],
"overwrite": [
{
"files": [
"apidoc/**.md"
],
"exclude": [
"obj/**",
"_site/**"
]
}
],
"dest": "_site",
"globalMetadataFiles": [],
"globalMetadata": {
"_appTitle": "AWS Lambda Powertools for .NET",
"_appFaviconPath": "images/favicon.ico",
"_appLogoPath": "images/AWS_logo.png",
"_enableNewTab": true,
"_disableContribution": true
},
"fileMetadataFiles": [],
"template": [
"default"
],
"postProcessors": [],
"markdownEngineName": "markdig",
"noLangKeyword": false,
"keepFileLink": false,
"cleanupCacheHistory": false,
"disableGitFeatures": false
}
}
Binary file added apidocs/images/AWS_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apidocs/images/favicon.ico
Binary file not shown.
15 changes: 15 additions & 0 deletions apidocs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# AWS Lambda Powertools for .NET API

Welcome to the *AWS Lambda Powertools for .NET* API reference. This documentation contains the API details for all supported utilities.

If you have any feedback, create a new issue in the *AWS Lambda Powertools for .NET* repository on GitHub.

### API reference

[AWS.Lambda.Powertools.Common](api/AWS.Lambda.Powertools.Common.html)

[AWS.Lambda.Powertools.Metrics](api/AWS.Lambda.Powertools.Metrics.html)

[AWS.Lambda.Powertools.Tracing](api/AWS.Lambda.Powertools.Tracing.html)

[AWS.Lambda.Powertools.Logging](api/AWS.Lambda.Powertools.Logging.html)
3 changes: 3 additions & 0 deletions apidocs/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- name: API
href: api/
homepage: api/index.md

0 comments on commit b20862d

Please sign in to comment.