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

WIP Add readme on API #33

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tatarianBarbarian
Copy link
Collaborator

No description provided.


const astroTypedoc = await initAstroTypedoc({
baseUrl: '/docs/',
entryPoints: [resolve(__dirname, 'path/to/entry/point.ts')],
Copy link
Member

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.
Copy link
Member

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`
Copy link
Member

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,
Copy link
Member

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)`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### `astroTypedoc.generateDocs(typedocProject, outputFolder)`
### `astroTypedoc.generateDocs(reflections, outputFolder)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants