Skip to content

Commit

Permalink
Merge pull request #638 from derbyjs/update-jsdoc
Browse files Browse the repository at this point in the history
Add Typedoc generated API docs
  • Loading branch information
craigbeck committed Jun 27, 2024
2 parents 2ea48ec + 4ad0d88 commit 92c2cb3
Show file tree
Hide file tree
Showing 11 changed files with 258 additions and 89 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docs-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Build with Typedoc
run: npm i && npm run docs
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
node_modules
.vscode
dist/
docs/api/
10 changes: 10 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ markdown: kramdown
theme: just-the-docs
color_scheme: derby-light # just-the-docs theme customization
permalink: /:path/:name
keep_files:
- api/

# just-the-docs customization
callouts:
Expand All @@ -64,6 +66,14 @@ defaults:
values:
render_with_liquid: true

nav_external_links:
- title: Derby API
url: /api
opens_in_new_tab: true
- title: Racer API
url: https://derbyjs.github.io/racer
opens_in_new_tab: true

# Exclude from processing.
# The following items will not be processed, by default.
# Any item listed under the `exclude:` key here will be automatically added to
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"scripts": {
"build": "node_modules/.bin/tsc",
"checks": "npm run lint && npm test",
"docs": "npx typedoc",
"lint": "npx eslint src/**/*.ts test/**/*.js",
"lint:ts": "npx eslint src/**/*.ts",
"lint:fix": "npm run lint:ts -- --fix",
Expand Down Expand Up @@ -79,6 +80,9 @@
"racer": "^v2.0.0-beta.11",
"sinon": "^18.0.0",
"ts-node": "^10.9.2",
"typedoc": "^0.25.13",
"typedoc-plugin-mdn-links": "^3.1.28",
"typedoc-plugin-missing-exports": "^2.2.0",
"typescript": "~5.1.3"
},
"peerDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions src/Controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export class Controller<T = DefualtType> extends EventEmitter {
dom: Dom;
app: App;
page: Page;
/**
* Model scoped to this instance's "private" data.
*/
model: ChildModel<T>;
markerNode: Node;

Expand Down
Loading

0 comments on commit 92c2cb3

Please sign in to comment.