-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Search will show me the files I haven't Uploaded #1991
Comments
Just as the doc said: Obviously your 'extra' files have a header like h2, h3... 据我了解文按照档里写的vuepress的搜索功能会搜索所有含有 |
Thanks for your suggestion, actually i try to use 感谢你的建议,事实上我使用 |
Hi @learningNicolas , I believe that patterns is what you are looking for. (Simply click on the link before doesn't seem to nav to the correct location, you can find it under For example, if your docs' folder structure is: ├── docs
│ ├── .vuepress
│ ├── private
│ ├── README.md
│ ├── guide The config.js would be: patterns: ['**/*.md', '**/*.vue', '!private'], Then all of your docs in the private folder won't be built. Refers:
|
Thank you very much, @ludanxer |
As @ludanxer said, |
Bug report
Steps to reproduce
My English is pool, so i will use Chinese to convey my original meaning with the help of translation software.
What is expected?
I used GitHub Page + Vuepress to build a static blog. I uploaded some files in the 'docs' folder, but they did not configure the routing information.I hope that the content will not appear in the search, because I don't want it to appear.
What is actually happening?
In fact, when I search, these pages that I have not configured routing information are also displayed, and even can be accessed.
Other relevant information
npx vuepress info
in my VuePress project:I don't know if this design is in line with the author's original intention. If it doesn't, I'm glad to help the author find a problem. If it doesn't, I hope the author can give me some suggestions to solve this problem. Thank you very much.
The text was updated successfully, but these errors were encountered: