vitepress icon indicating copy to clipboard operation
vitepress copied to clipboard

.vitepress dir Whether you can rename it ?

Open luyuan9870 opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe.

I am using obsidian ,hidden files and dir , this application in no found

Describe the solution you'd like

Can I rename this dir .vitepress ?

Describe alternatives you've considered

No response

Additional context

No response

Validations

luyuan9870 avatar Apr 16 '24 12:04 luyuan9870

@luyuan9870

You can rename it as whatever you want. Make sure to change command line arguments for VitePress in your package.json.

https://vitepress.dev/guide/getting-started#up-and-running

nozomuikuta avatar May 02 '24 08:05 nozomuikuta

Ah, sorry, I misunderstood your question. It seems that currently the config file is always resolved from <root>/.vitepress/config.[ext].

https://vitepress.dev/reference/site-config#config-resolution

nozomuikuta avatar May 02 '24 08:05 nozomuikuta

You can keep things outside and just re-export them from .vitepress/config or .vitepress/theme. You won't need to change things inside .vitepress then. There is #3290 and #3291 which would fix this but I'm not sure if we as maintainers want to support that. There are also community plugins like this - https://github.com/polyipseity/obsidian-show-hidden-files - which will work with Obsidian.

brc-dd avatar May 02 '24 08:05 brc-dd

why would you not want to support that?

  • #3291: there are already option to configure the outDir and even the cacheDir
  • #3290: Vite CLI has option to specify the config file

Waleed-KH avatar May 22 '24 14:05 Waleed-KH