tyrad705 downloadsConveniently preview and publish Markdown files using vitepress.
Obsidian Vitepress Plugin is a flexible tool that allows you to easily preview and compile your .md files using VitePress or other static site generators (Hugo, Hexo, Docusaurus) in Obsidian.
This Plugin can be installed through the community plugin browser in Obsidian.
Download main.js, manifest.json, and styles.css from the release page and place them in <vault>/.obsidian/plugins/obsidian-vitepress directory.

Publish Content: Select the top level directories or files to be previewed or published using VitePressDirectory Settings:VitePress Path: Path to VitePress on your local machineVitePress srcDir Path: Location of VitePress src directory
The plugin now supports configurable commands, allowing you to use other static site generators beyond VitePress:
npm run docs:dev)npm run docs:build)npm run docs:preview)Supported Static Site Generators:
/opt/homebrew/bin/hugo servenpx hexo servernpm startThis flexibility allows you to use the plugin with your preferred static site generator while maintaining the same workflow.

Click to start or stop vitepress dev and open the VitePress homepage in your browser.

Click to copy the current document to the VitePress srcDir directory and preview it.


Commands are now customizable through the Custom Command Configuration settings.
Show log: Open the log window for this pluginvitepress build: Execute the build command npm run docs:build in the VitePress directoryvitepress preview: Execute the preview command npm run docs:preview in the VitePress directoryvitepress preview close: Close VitePress previewvitepress publish: Open a new terminal window and run the publish script specified in the settingsIf you find this plugin helpful, please consider giving it a ⭐ on GitHub! Your support helps improve the plugin and lets others discover it.
MIT