Obsidian Vitepress Plugin 中文文档
Obsidian Vitepress Plugin is a tool that allows you to easily preview and compile your .md files using Vitepress 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
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.
Show log
: Open the log window for this pluginvitepress build
: Execute the default build commandnpm run docs:build
in the Vitepress directoryvitepress preview
: Execute the default preview commandnpm 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 settings
MIT