Giter Site home page Giter Site logo

igeekfan-docs's Introduction

Freekit Docs

项目使用 vuepress,其可专注于文档构建

install

npm install -g pnpm@next-7
pnpm install

run

pnpm dev:vite

build

pnpm build:vite

upgrade package

pnpm i -D vuepress@next

vuepress

该采用vuepress-next搭建,内置md,可以采用vue语法,vue 作者出品,UI 主题是 vuepress-theme-hope

文档源码

部署地址

package.json 介绍

package.json 有这些命令

  "scripts": {
    "build:vite": "vuepress-vite build docs",
    "dev:vite": "vuepress-vite dev docs",
  },

所以我们可以 pnpm dev:vite 或 pnpm build:vite

自动发布 至 github pages

在 git bash 中执行

pnpm deploy

powershell 中执行如下内容

.\deploy.ps1

nginx 配置

nginx 相关配置,/etc/nginx/conf.d/新建一个以.conf 为后缀的文件即可。

cd /etc/nginx/conf.d/
touch igeekfan-docs.conf
server {
    listen 80;
    server_name www.igeekfan.cn;
    root /var/www/html/igeekfan-docs;
    charset utf-8;
    location /  {
        proxy_set_header   X-Real-IP $remote_addr;
        proxy_set_header   Host      $http_host;
    }
}
# 判断配置是否有效
nginx -t
# 加载配置项
nginx -s reload

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.