Skip to content
heart

GitHub Action

Spectacular Documentation Generation Action

v3.43 Latest version

Spectacular Documentation Generation Action

heart

Spectacular Documentation Generation Action

Generates your documentation

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Spectacular Documentation Generation Action

uses: Grad-Projects/[email protected]

Learn more about this action in Grad-Projects/spectacular-documentation-action

Choose a version

Spectacular Documentation Generator Action ๐Ÿ“–

๐Ÿ’ปA GitHub action for generating spectacular C# documentation!๐Ÿค“

C# FILES ONLY!๐Ÿ˜˜

The latest release is v3.43 โค๏ธ

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๐Ÿ‘ฉโ€๐Ÿ’ป

Step 1

Follow this link to view and add this action to your repo: Click here!!! Please make sure you are using the latest version!

Step 2

Generate yourself a Personal Access Token

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.

User Permissions Screenshot

Add your Personal Access Token to your Repo secrets

Click here to read about how to create secrets in GitHub Save your secret as: PERSONAL_ACCESS_TOKEN

Step 3

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๐Ÿ’—."

Step 3

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 }}'

Step 4

Run your action! Your documentation will be created as an artifact which you can find on the workflow page, as in the screenshot below:

Workflow Artifact Screenshot

Available Styles Guide

  • 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'