Skip to content

Commit

Permalink
Merge pull request #13 from erikyo/jsdocs
Browse files Browse the repository at this point in the history
Create jsDoc.yml
  • Loading branch information
erikyo authored Dec 2, 2023
2 parents 8d6661a + 4b9f1ad commit c0ad71e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/jsDoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: JSDoc Action

on:
release:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Build
uses: andstor/jsdoc-action@v1
with:
source_dir: ./lib
recurse: true
output_dir: ./docs
config_file: jsdoc.json
front_page: readme.md

27 changes: 27 additions & 0 deletions jsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc"]
},
"typescript": {
"moduleRoot": "lib"
},
"source": {
"include": ["lib", "package.json", "README.md"],
"includePattern": "\\.(jsx|js|ts|tsx)$",
"excludePattern": "(^|\\/|\\\\)_"
},
"opts": {
"encoding": "utf8",
"destination": "docs",
"readme": "./readme.md",
"recurse": true
},
"templates": {
"cleverLinks": false,
"monospaceLinks": true,
"useLongnameInNav": false,
"showInheritedInNav": true
}
}

0 comments on commit c0ad71e

Please sign in to comment.