Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Typedoc generated API docs #638

Merged
merged 8 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/

# Front matter defaults
defaults:
Expand All @@ -55,6 +57,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 @@ -78,6 +79,9 @@
"prettier": "^3.0.1",
"racer": "^v2.0.0-beta.11",
"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
Loading