1.1.7 • Published 1 month ago
@its2easy/vuepress2-theme v1.1.7
Vuepress 2 theme
extends theme-default from vuepress 2
Install
npm install @its2easy/vuepress2-theme --save
import vuepress2Theme from '@its2easy/vuepress2-theme';
import { defineUserConfig } from 'vuepress';
export default defineUserConfig({
theme: vuepress2Theme({
//theme-default options
}),
});
Prerequisites
Tested with Node 16.15
Notes
docs/.vuepress/styles/index.scss
is not imported by palette plugin, it should
be imported in client config file:
// .vuepress/config.ts
export default defineUserConfig({
clientConfigFile: path.resolve(__dirname, './clientEnhance.js'),
})
// .vuepress/clientEnhance.js
import './styles/index.scss';
Project styles will override theme styles.
Development
npm run dev
to serve the documentation site in the local server
(theme and local docs)
npm run build
to build production version (of the docs)