-
Notifications
You must be signed in to change notification settings - Fork 0
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
WIP Add readme on API #33
base: main
Are you sure you want to change the base?
Conversation
|
||
const astroTypedoc = await initAstroTypedoc({ | ||
baseUrl: '/docs/', | ||
entryPoints: [resolve(__dirname, 'path/to/entry/point.ts')], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path/to/entry/
→ my-library/index.ts
Maybe we should add // Add path to your library here
|
||
### `initAstroTypedoc({ baseUrl, entryPoints, tsconfig })` | ||
|
||
Creates `astroTypedoc` instance. Accepts config object as a parameter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not clear what is astroTypedoc instance
and how it can be useful for me as a user.
Something like this could be better:
Creates a builder of pages and side-menu for your TypeDoc
|
||
Path to `tsconfig.json` of the project, which code will be documented. | ||
|
||
### `astroTypedoc.getReflections` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not clear how I can use this method.
|
||
await astroTypedoc.generateDocs(typedocProject, 'src/pages/docs') | ||
await astroTypedoc.generateNavigationJSON( | ||
reflections, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can’t find this variable definition
|
||
Project reflection contains information about types and serves as the basis for creating documentation. | ||
|
||
### `astroTypedoc.generateDocs(typedocProject, outputFolder)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### `astroTypedoc.generateDocs(typedocProject, outputFolder)` | |
### `astroTypedoc.generateDocs(reflections, outputFolder)` |
No description provided.