-
-
Notifications
You must be signed in to change notification settings - Fork 121
fix: fix llms.txt
generation
#940
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@vue-macros/api
@vue-macros/astro
@vue-macros/boolean-prop
@vue-macros/better-define
@vue-macros/chain-call
@vue-macros/common
@vue-macros/config
@vue-macros/define-emit
@vue-macros/define-models
@vue-macros/define-prop
@vue-macros/define-props
unplugin-vue-define-options
@vue-macros/define-props-refs
@vue-macros/define-render
@vue-macros/define-slots
@vue-macros/define-stylex
@vue-macros/devtools
@vue-macros/eslint-config
@vue-macros/export-expose
@vue-macros/export-props
@vue-macros/export-render
@vue-macros/hoist-static
@vue-macros/jsx-directive
vue-macros
@vue-macros/named-template
@vue-macros/nuxt
@vue-macros/reactivity-transform
@vue-macros/script-lang
@vue-macros/setup-block
@vue-macros/setup-component
@vue-macros/setup-sfc
@vue-macros/short-bind
@vue-macros/short-emits
@vue-macros/short-vmodel
@vue-macros/test-utils
@vue-macros/volar
commit: |
Could you specify which part isn’t functioning as expected? https://vitepress.dev/reference/site-config#vite The |
Now there is one problem - if you do not include It should be like this: # Vue Macros
> Explore more macros and syntax sugar to Vue.
## Table of Contents Now it looks like this if you do not exclude # LLMs Documentation
This file contains links to all documentation sections.
## Table of Contents This PR does not have this problem. Regarding the plugin in the Vite configura 8000 tion - we can try to roll it back and see how it goes |
Done |
yay! |
… not included in `ignoreFiles` This error is very strange, I first noticed it here - vue-macros/vue-macros#940 (comment) I could not understand at all what the problem was and how the `ignoreFiles` option affects reading files at all After a few minutes of debugging I found that the problem was not in the `ignoreFiles` option, not in reading the file, but in the caching mechanism of the `gray-matter` package (https://npmjs.com/package/gray-matter) So I added clearing of the `gray-matter` cache before processing the document in `generateLLMsTxt()` and this fixed the bug I learned about the `matter.clearCache()` option here - jonschlinkert/gray-matter#174
Note This bug was fixed in version v0.0.10 |
Description
Thanks for using my plugin 🤝
But I noticed a problem in the commit d25754e
@sxzz you added the plugin to the Vite configuration, but it needs to be added to the VitePress configuration (
.vitepress/config/index.ts
) for it to work correctlyI excluded the Chinese version of the documentation for LLMs (and why have LLM documentation in two languages if you can leave only English?) and some extra files
Now the documentation is generated correctly and only in English