Skip to content

This is an obsidian plugin for more convenient preview and publishing of .md files using vitepress

License

Notifications You must be signed in to change notification settings

tyrad/obsidian-vitepress

Repository files navigation

Obsidian Vitepress Plugin 中文文档

Obsidian Vitepress Plugin is a tool that allows you to easily preview and compile your .md files using Vitepress in Obsidian.

Installation

Manual Installation

Download main.js, manifest.json, and styles.css from the release page and place them in <vault>/.obsidian/plugins/obsidian-vitepress directory.

Configuration

Required Settings

Settings

  • Publish Content: Select the top level directories or files to be previewed or published using Vitepress
  • Directory Settings:
    • Vitepress Path: Path to Vitepress on your local machine
    • Vitepress srcDir Path: Location of Vitepress src directory

Advanced Settings

Advanced Settings

Usage

Sidebar Button

Sidebar Button

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

Preview Action

Top Bar Button

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

Preview Action 2

Commands

Commands

  • Show log: Open the log window for this plugin
  • vitepress build: Execute the default build command npm run docs:build in the Vitepress directory
  • vitepress preview: Execute the default preview command npm run docs:preview in the Vitepress directory
  • vitepress preview close: Close Vitepress preview
  • vitepress publish: Open a new terminal window and run the publish script specified in the settings

License

MIT

About

This is an obsidian plugin for more convenient preview and publishing of .md files using vitepress

Resources

License

Stars

Watchers

Forks

Packages

No packages published