Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
heart

GitHub Action

Spectacular Documentation Generation Action

v3.7

Spectacular Documentation Generator Action πŸ“–

πŸ’»A GitHub action for generating spectacular C# documentation!πŸ€“

This is not connected to our API yet ✨ so as of 11/4/2024 9AM it does not workπŸ’–

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: Grabbing Inputs πŸ’–
        id: inputs
        uses: Grad-Projects/spectacular-documentation-action@vPUT LATEST VERSION NO. HERE
        with:
          style: 'Your chosen style goes here!'
          files-input: '["The paths to your files go here!"]'
          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'