GitHub Action
Spectacular Documentation Generation Action
๐ปA GitHub action for generating spectacular C# documentation!๐ค
Please note Only one class per file will be documented!๐โโ๏ธ Make sure to only have one class per file!
Follow the steps below to add this spectacular tool to your repo๐ฉโ๐ป
Follow this link to view and add this action to your repo: Click here!!! Please make sure you are using the latest version!
Click here to see instructions on how to generate a personal access token You will need to allow the token to access your user information.
See the screenshot below.
Click here to read about how to create secrets in GitHub Save your secret as: PERSONAL_ACCESS_TOKEN
Add the following to your .yml file:
on: [push]
jobs:
hello_world_job:
runs-on: ubuntu-latest
name: 'Spectacular Documentation Generation Action ๐'
steps:
- name: Checkout Repository ๐จโ๐ญ
uses: actions/checkout@v2
- name: Setup Node.js โ๏ธ
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies ๐ช
run: npm install adm-zip
- name: List Files ๐
run: ls -R
- name: add this weird thing
run: npm install --no-save async
- name: Grabbing Inputs ๐
id: inputs
uses: Grad-Projects/[email protected]
with:
style: 'Simple'
files-input: '["yourfiles","gohere"]'
github-personal-access-token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
- name: Build artifacts pls
uses: actions/upload-artifact@v2
with:
name: Downloadable artifacts
path: 'output.zip'
- name: 'Thats All Folks ๐'
run: echo "We're done here๐."
Make sure that the following is filled in properly in your .yml ๐ฆ
Field | Your Value | Example |
---|---|---|
style | Choose a style from the list at the end of these instructions! | 'Simple' |
files-input | The paths to your C# files | '["FilePath1","FilePath2",...]' |
github-personal-access-token: | The secret for the personal access token you generated. | '${{ secrets.PERSONAL_ACCESS_TOKEN }}' |
Run your action! Your documentation will be created as an artifact which you can find on the workflow page, as in the screenshot below:
- Simple โจ
style: 'Simple'
- Serious Business ๐จโ๐ผ
style: 'Serious Business'
- Pastel Dreams ๐
style: 'Pastel Dreams'
- Eye Searer (Use at own risk) โข๏ธ
style: 'Eye Searer'
- I Love To Code (Use at own risk) โข๏ธ
style: 'I Love To Code'