Skip to content

Commit

Permalink
Start on TS support for JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner committed Mar 19, 2024
1 parent da14c5b commit 040e403
Show file tree
Hide file tree
Showing 7 changed files with 641 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
run: |
pnpm i
pnpm build
# - name: Build docs
# run: pnpm run docs
- name: Build docs
run: pnpm run docs
- name: Publish site and docs
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
39 changes: 25 additions & 14 deletions .jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,24 @@ module.exports = {
source: {
include: [
'package.json',
'README.md',
'./src/shepherd.ts',
'./src/step.ts',
'./src/tour.ts'
]
],
includePattern: '\\.(json|js|ts)$'
},
plugins: [
'plugins/markdown'
],
plugins: ['plugins/markdown', 'node_modules/better-docs/typescript'],
sourceType: 'module',
opts: {
destination: './site/docs/',
encoding: 'utf8',
// Do not include functions marked `@private`
private: false,
readme: 'README.md',
recurse: true,
template: './node_modules/jsdoc-template-ship-shape',
tutorials: './docs-src/tutorials'
},
templates: {
referenceTitle: 'Shepherd.js',
favicon: '/landing/public/favicons/favicon-32x32.png',
Expand All @@ -28,15 +36,18 @@ module.exports = {
collapse: false,
resources: {
Demo: 'https://shepherdjs.dev/'
},
'better-docs': {
navLinks: [
{
label: 'Demo',
href: 'https://shepherdjs.dev/'
},
{
label: 'GitHub',
href: 'https://github.com/shepherd-pro/shepherd'
}
]
}
},
opts: {
destination: './site/docs/',
encoding: 'utf8',
// Do not include functions marked `@private`
private: false,
recurse: true,
template: './node_modules/jsdoc-template-ship-shape',
tutorials: './docs-src/tutorials'
}
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@release-it-plugins/lerna-changelog": "^6.1.0",
"@release-it-plugins/workspaces": "^4.2.0",
"autoprefixer": "^10.4.16",
"better-docs": "^2.7.3",
"cypress": "^13.6.2",
"cypress-plugin-tab": "^1.0.5",
"del": "^7.1.0",
Expand Down
Loading

0 comments on commit 040e403

Please sign in to comment.