vitepress-theme-vitenote

1.2.4 • Public • Published

npm GitHub package.json version GitHub

Scaffolding Your Vitepress Project | 搭建 Vitepress 项目的脚手架

build a basic VitePress documentation site from ground up

Using the Custom Theme | 使用此主题

With NPM:

npm i vitepress-theme-vitenote

With Yarn:

yarn add vitepress-theme-vitenote

import and re-export it from the custom theme entry: | 导入自定义主题,并重新导出它

// .vitepress/theme/index.js
import Theme from 'vitepress-theme-vitenote'
export default Theme

customize your site | 配置自定义主题

// .vitepress/config.js
import { defineConfig } from 'vitepress'
export default defineConfig({
  base: '/',
  <!-- lang: 'zh-CN', -->
  title: 'Is My Note',
  description: 'Just playing around.',
  themeConfig: {
    author: 'Chaos',
    copyright: true,
    navbar: [
      {
        name: '首页',
        link: '/',
      },
      {
        name: '标签',
        link: '/tags/',
      },
      {
        name: '分类',
        link: '/categories/',
      },
    ],
  },
  vite: {
    build: {
      minify: 'terser',
    },
  },
})

Package Sidebar

Install

npm i vitepress-theme-vitenote

Weekly Downloads

0

Version

1.2.4

License

MIT

Unpacked Size

24 kB

Total Files

22

Last publish

Collaborators

  • outlove