6 Star 2 Fork 3

sickeeer / vuepress-blog

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.MD

安装

推荐使用 yarn

	npm i yarn -g

安装依赖

    yarn

全局安装 vercel

    yarn global add vercel

注意:直接使用 vercel 命令 ,需要配置全局安装路径

键入

	yarn global dir

查询 yarn 全局安装路径,配置入环境变量。

如嫌麻烦,可以使用 npmvercel 进行全局安装,命令参照第一条。

打包并上传到 vercel(需在根目录运行如下命令)

    ./_deploy2vercel.sh

打包并上传到服务器(需在根目录运行如下命令)

    ./_deploy2ecs.sh

打包并上传到阿里OSS(需在根目录运行如下命令)

    ./ossutil64.exe config
    # 第一个参数输入 .ossutilconfig 其他按照提示操作
    ./_deploy2ecs.sh

上传到 gitee(需在根目录运行如下命令)

    ./pushToGit.sh

打包失败

请删除 node_modules 后,重新用 yarn 安装依赖后重试。

icon

项目中引入了 https://vue-feather-icons.egoist.sh/ 移步该网址查看

开箱食用

  1. 注册 vercel 账号。
  2. docs\.vuepress\config.js 中 域名配置为 https://110501.com 处修正为自己的域名。
  3. 新注册 leanclouddocs\.vuepress\config.js 中 valine 的配置进行替换。
  4. 如无需首页,将 nav 配置项 link: '/post/' => link: '/'directories 配置项 path: '/post/' => path: '/'
  5. 配置自己的 vercel , 参照 https://110501.com/2021/03/23/how-to-use-vercel/#vercel-cli
  6. 移除 docs\_post 下文件,键入 ./new.sh 依据提示输入,开始编辑文章吧!

issue

  1. Error: Cyclic dependency: "[object Object]"

    删除 node_modules ,重新运行 yarn ,

    如果依然不行,尝试打开 /node_modules/vuepress-html-webpack-plugin/index.js:33

        chunksSortMode: 'auto',    =>   chunksSortMode: 'none',  

    参照 https://github.com/marcelklehr/toposort/issues/20#issuecomment-388025176

what's new

  • 因存在图片拉取错误的原因,暂时移除 feed ,不排除之后不会加回。

About

一个基于 vuepress 的开箱即用博客。托管至 vercel 免费、无后端。 expand collapse
JavaScript and 2 more languages
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
JavaScript
1
https://gitee.com/sickeeer/blog-resource.git
git@gitee.com:sickeeer/blog-resource.git
sickeeer
blog-resource
vuepress-blog
master

Search

E71a60c3 8189591 Df7b7c6b 8189591