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

How to used with VitePress ? #41

Open
1 task
productdevbook opened this issue Feb 25, 2024 · 1 comment
Open
1 task

How to used with VitePress ? #41

productdevbook opened this issue Feb 25, 2024 · 1 comment

Comments

@productdevbook
Copy link

Describe the feature

Is there a structure on how to integrate and use Vitepress? Thank you.

Additional information

  • Would you be willing to help implement this feature?
@pi0
Copy link
Member

pi0 commented Feb 25, 2024

Hi. Here it is how i used transform API for undocs: https://github.com/unjs/undocs/blob/main/app/modules/content/runtime/unstorage.mjs#L39

We somehow need to modify markdown before being rendered. I found this docs: https://vitepress.dev/reference/default-theme-search#example-transforming-content-adding-anchors

If had some luck to make it working, feel free to make a PR to the docs 👍🏼 (you might even finally make a vitepress plugin so wish you best!)


Also as a lazy alternative you can run npx automd --input "docs/**/*.md" --watch in another CLI 😆

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

2 participants