vuepress
Vue-powered static documentation generator
TLDR
SYNOPSIS
vuepress command [sourceDir] [options]
DESCRIPTION
VuePress is a Vue-powered static site generator designed for creating documentation websites. It compiles Markdown files into a single-page application (SPA) with pre-rendered static HTML for each page, combining SEO benefits with SPA navigation.VuePress allows using Vue components directly in Markdown files, enabling interactive documentation. It comes with a default theme optimized for technical documentation, including features like sidebar navigation, search, and automatic header anchors.The development server provides hot module reloading for both Markdown content and Vue components. For production, the build command generates optimized static files that can be deployed to any static hosting service.Configuration is done through a .vuepress/config.js or .vuepress/config.ts file in the source directory, controlling theme, plugins, navigation, and site metadata. CLI options override config file settings with the same name.
PARAMETERS
dev [sourceDir]
Start a development server with hot-reloading. Default target is current directory.build [sourceDir]
Build the site as static HTML files for deployment.info
Display information about the system and dependencies.-c, --config file
Set path to config file.-p, --port port
Specify the port for the development server (default: 8080). Dev only.--host host
Specify the host for the development server (default: 0.0.0.0). Dev only.-d, --dest dir
Set the output directory for build (default: .vuepress/dist). Build only.-t, --temp dir
Set the directory for temporary files.--cache dir
Set the directory for cache files.--debug
Enable debug mode with verbose output.--clean-temp
Clean temporary files before dev or build.--clean-cache
Clean cache files before dev or build.--open
Open browser when ready. Dev only.--no-watch
Disable watching page and config files. Dev only.--help
Display help for a command.
CAVEATS
Requires Node.js 18.19.0 or higher. VuePress v1 is in maintenance mode; v2 or VitePress (the successor) are recommended for new projects. The `eject` command from v1 does not exist in v2. Large documentation sites may have slow build times. Custom themes require Vue.js knowledge.
HISTORY
VuePress was created by Evan You, the creator of Vue.js, in April 2018. It was originally developed to document Vue.js itself but became a standalone project due to its utility for technical documentation. VuePress v2, released in 2022, was rebuilt with Vue 3 support. VitePress, using Vite instead of Webpack, is now the recommended alternative for new projects.
SEE ALSO
vitepress(1), vue(1), docusaurus(1), mkdocs(1)
