Giter Site home page Giter Site logo

liumoze.github.io's Introduction

VitePress @sugarat/theme

简约风的 VitePress 博客主题 示例运行项目。

GitHub Pages Demo

Usage

先安装 pnpm

npm i -g pnpm

安装依赖

pnpm install

开发启动

pnpm dev

构建

pnpm build

预览产物

pnpm serve

Github Pages 部署

① Github Pages 开启 Git Actions 部署支持

② 复制文件 .github/workflows/deploy.yml 到自己的项目相同目录下

示例项目已包含,可以直接进行下一步

③ 修改 docs/.vitepress/config.mts 里的构建配置

base 改为 "/仓库名/" 即可

// 省略无关代码
const base = '/vitepress-blog-sugar-template/'
export default defineConfig({
  base,
})

④ 推送 main 分支即可

需要进一步修改部署和构建配置,详见deploy.yml 文件。

Gitee Pages 部署

① 按照 SPA 要求添加 .spa 文件在docs/public 目录下

示例项目已包含,可以直接进行下一步

② 参照 Usage 部分构建代码

③ 推送构建后的页面资源到部署文档的分支

例如gh-pages

④ 参照文档选择分支和目录进行部署

Gitee Pages 需要实名才能使用,同时需要人工审核。

liumoze.github.io's People

Contributors

liumoze avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.