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

docs: Add auto-generated type declarations #6

Open
Techassi opened this issue Jan 4, 2024 · 0 comments
Open

docs: Add auto-generated type declarations #6

Techassi opened this issue Jan 4, 2024 · 0 comments
Assignees

Comments

@Techassi
Copy link
Member

Techassi commented Jan 4, 2024

Create a custom plugin which accepts the raw Markdown content and replaces

```dts
<SYNTAX>
```

with auto-generated content. The exact replacement content needs to be explored. One possibility is to inject raw Markdown content again, which Vitepress can then render into HTML. The generated content could look like this:

::: details Show Type Declarations
```ts
<TYPESCRIPT_DECLARATIONS>
```
:::

This feature will most likely require the migration of this repo into the https://github.com/vue-youtube/vue-youtube repo. This migration enables us to have direct access to the raw TS files and delaration files.

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

No branches or pull requests

1 participant