vitepress
vitepress copied to clipboard
feat: add validation when initializing VitePress configuration
Is your feature request related to a problem? Please describe.
If the configuration directory of VitePress is outside the project root directory, the project will not run correctly, so add this validation logic to ensure that the path entered by the user is within the root directory.
Describe the solution you'd like
I'd like to complete @yyx990803 remaining TODO code and achieve the purpose of prompting users to "Make sure directory is inside.".
And the pull request (#3640) is the solution for this issue.
Describe alternatives you've considered
No response
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Read the Contributing Guidelines.
- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
@brc-dd Should I change this issue from feature label to bug label?
Not a bug technically, just an additional validation. I'll review your PR when I get some time.