Skip to content

Commit

Permalink
Merge pull request #12 from cse210-works-on-my-machine/devops/jsdocs
Browse files Browse the repository at this point in the history
Devops/jsdocs
  • Loading branch information
sapiosaturn authored Nov 26, 2023
2 parents 2e4bfb2 + 4b06661 commit 5ec9c1c
Show file tree
Hide file tree
Showing 5 changed files with 317 additions and 3 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/jsdoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Generate and Deploy JSDoc

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
documentation:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm install

- name: Generate JSDoc Documentation
run: npm run generate-docs

- name: Deploy Documentation to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
permissions:
contents: write
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
27 changes: 27 additions & 0 deletions jsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"source": {
"include": ["src"],
"exclude": ["node_modules"],
"includePattern": ".+\\.js(doc|x)?$",
"excludePattern": "(^|\\/|\\\\)_"
},
"plugins": [
"plugins/markdown"
],
"templates": {
"cleverLinks": false,
"monospaceLinks": false,
"default": {
"outputSourceFiles": true
},
"systemName": "CSE 210 Project Documentation",
"footer": "Copyright 2023 Works On My Machine",
"includeDate": true
},
"opts": {
"encoding": "utf8",
"destination": "docs/",
"recurse": true,
"verbose": true
}
}
Loading

0 comments on commit 5ec9c1c

Please sign in to comment.