H&H2026/1/13codinggit

H&H

H&H
------.vuepress
--.cache
--.temp
--public //图片
--vue-press //放组件,自动注册
--config.ts //默认组件配置
------blogs //放博客相关
------docs //放文档相关
------node_modules
------.gitigonre
------package-lock.json
------package.json
------README.md //首页显示
------yarn.lock
npx
# 初始化,并选择 2.x
npx @vuepress-reco/theme-cli init
npm
# 初始化,并选择 2.x
npm install @vuepress-reco/theme-cli@1.0.7 -g
theme-cli init
yarn
# 初始化,并选择 2.x
yarn global add @vuepress-reco/theme-cli@1.0.7
theme-cli init
部署
# /.vuepress/config.ts
export default defineUserConfig({
title: "H&H's Home",//导航栏标题
dest: './dist',//生成的dist文件放在根目录
base: '/hs-private-room/',// 设置站点根路径
})
gitee