Closed NoiseFan closed 1 year ago
Can you share its code? Also please specify which VitePress version are you using.
https://github.com/NoiseFan/mugeda_docs
1.0.0-alpha.19
It can be reproduced in the production environment, but it is no problem in the development environment
I just upgraded vitepress v1.0.0-alpha.29, but this problem still exists
Seems like an issue with the formatting of your markdown. If I format it to this, then everything work as expected:
Thank you very much for your reply. I'll try
Seems like the main error was *
being not escaped inside the table, which was messing up the parsing.
I deleted the md file and the problem still exists after rebuilding.
Please try this link
Looks like you made the code private (or deleted the repo)? Have you tried formatting your docs/advanced/screenshot.md
file? You can use prettier for that.
I'll try again
I delete all the pages and keep a new md file, which can still be reproduced
Take a look at the debugger branch
感觉这个问题很有趣,我发现多级的路由请求会产生这种问题,但结尾加个html后缀可解决:
https://docs.mc6d.com/advanced/debugger.html
待我探索一下:P
能不能跟Nginx配置有关?
Can it be related to Nginx configuration?
location / { root xxx/docs/.vitepress/dist/; index index.html; try_files $uri $uri/ /index.html; }
可能是这个cleanUrls
参数引起,文档标注:
For it to work, your server must serve the generated page on requesting the URL (see above table) without a redirect.
try_files产生了重定向,导致页面出现了错误。这个是试验性功能,等稳定后看看。如有错误多多包涵。
看起来是 cleanUrls 的问题,需要确保服务器配置正确。https://vitepress.dev/guide/routing#generating-clean-url
Describe the bug
Directly accessing the three-tier link in the browser will directly display the content of the home page
Reproduction
Direct access in browser
https://docs.mc6d.com/advanced/logicalExpression Recurrence address
Expected behavior
Open the specified page content without displaying the home page content
System Info
Additional context
No response
Validations