vitepress icon indicating copy to clipboard operation
vitepress copied to clipboard

feat: add validation when initializing VitePress configuration

Open 0xlau opened this issue 1 year ago • 2 comments

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.".

p1

And the pull request (#3640) is the solution for this issue.

Describe alternatives you've considered

No response

Additional context

No response

Validations

0xlau avatar Mar 07 '24 13:03 0xlau

@brc-dd Should I change this issue from feature label to bug label?

0xlau avatar Mar 15 '24 01:03 0xlau

Not a bug technically, just an additional validation. I'll review your PR when I get some time.

brc-dd avatar Mar 15 '24 06:03 brc-dd