mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2024-11-10 05:34:44 +00:00
commit
68020ccae7
10
.github/workflows/deploy-githubpages.yml
vendored
10
.github/workflows/deploy-githubpages.yml
vendored
@ -29,8 +29,18 @@ jobs:
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install apt updates
|
||||
run: sudo apt -y update; sudo apt -y upgrade;
|
||||
- name: Install prerequisites
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Install dependencies
|
||||
run: sudo npm install
|
||||
- name: Run tests
|
||||
run: sudo npm run js-doc
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v2
|
||||
- name: Upload artifact
|
||||
|
23
.github/workflows/js-docs.yml
vendored
Normal file
23
.github/workflows/js-docs.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: JS Docs
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
# Single deploy job since we're just deploying
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install apt updates
|
||||
run: sudo apt -y update; sudo apt -y upgrade;
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Install dependencies
|
||||
run: sudo npm install
|
||||
- name: Run js-docs
|
||||
run: sudo npm run js-docs
|
@ -9,12 +9,14 @@
|
||||
"lint-html": "htmlhint **/*.html",
|
||||
"lint-css": "stylelint **/*.css",
|
||||
"fix-css": "stylelint --fix **/*.css",
|
||||
"http-server": "http-server source"
|
||||
"http-server": "http-server source",
|
||||
"js-doc": "jsdoc -d source/docs/ -r source/"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.27.0",
|
||||
"htmlhint": "1.1.4",
|
||||
"http-server": "",
|
||||
"jsdoc": "^4.0.0",
|
||||
"mocha": "10",
|
||||
"mock-local-storage": "^1.1.23",
|
||||
"puppeteer": "^18.2.1",
|
||||
|
17
specs/adrs/112922-doccumentation-jsdoc.md
Normal file
17
specs/adrs/112922-doccumentation-jsdoc.md
Normal file
@ -0,0 +1,17 @@
|
||||
# Use JSDoc for JS documentation
|
||||
|
||||
- Status: accept
|
||||
- Deciders: Arthur Lu, Marc Reta
|
||||
- Date: 11 / 29 / 22
|
||||
|
||||
## Decision Drivers
|
||||
|
||||
- Need simple way to publish documentation for code
|
||||
- Already documentating infile using JSDoc style
|
||||
|
||||
## Considered Options
|
||||
- JSDoc
|
||||
|
||||
## Decision Outcome
|
||||
|
||||
Chosen Option: JSDoc. Will run by generating docs in /source/docs/ before publishing /source/ so users can enter the URI /docs/ to see documentation.
|
Loading…
Reference in New Issue
Block a user