# docsify-pages **Repository Path**: YMeng-self/docsify-pages ## Basic Information - **Project Name**: docsify-pages - **Description**: docsify 一个神奇的文档网站生成器。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: https://www.bbigsun.com/ - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-06 - **Last Updated**: 2025-07-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # docsify > [docsify](https://github.com/docsifyjs/docsify/) 一个神奇的文档网站生成器。 > 以下内容简要介绍如何使用 docsify 使用 docsify + Gitee Pages / GitHub Pages 搭建一个**静态网站** 官方网址:https://docsify.js.org/#/zh-cn/ ## 快速开始 如果不关心 docsify 如何安装,可以直接使用以下 4 步: 1、fork 本仓库 - Gitee 仓库地址: https://gitee.com/bbigsun/docsify-pages - GitHub 仓库地址: https://github.com/bbigsun/docsify-pages 2、修改仓库名称(Gitee/GitHub Settings) 3、更新仓库内容 4、发布到 Gitee pages / GitHub Pages ### 安装 Node.js 注意: - (Node.js 版本需不低于 10.13,建议使用 Node.js 12.0 及以上版本) - 使用 Node.js 官方安装程序时,请确保勾选 Add to PATH 选项(默认已勾选) 下载地址:https://nodejs.org/en/download 具体安装步骤:略 ### 安装 Git 下载地址:https://git-scm.com/download/ 具体安装步骤:略 ### 安装 docsify ```bash # 设置淘宝源 npm config set registry https://registry.npmmirror.com # 安装 docsify npm i docsify-cli -g ``` ### 使用 docsify ```bash docsify init docsify-pages docsify serve docsify-pages ``` Windows 电脑若是无法执行 docsify 命令,允许脚本执行,存在安全风险 ```bash Set-ExecutionPolicy RemoteSigned -Scope CurrentUser ``` 使用完,关闭策略 ```bash Set-ExecutionPolicy Unrestricted -Scope CurrentUser ``` ### 提交代码 更新静态网站内容,创建 Gitee 远程仓库并连接,提交代码。 ```bash git config --global user.name "your_name" git config --global user.email "your_email" cd docsify-pages git add . git commit -m "first commit" git remote add gitee https://gitee.com/bbigsun/docsify-pages.git git push -u gitee master:master ``` 创建 GitHub 远程仓库并连接,提交代码。 注意本地分支和远程分支名称要对应 ```bash git remote add github https://github.com/bbigsun/docsify-pages.git git push -u github master:master ``` ### 部署静态网站 #### Gitee Pages  #### GitHub Pages  ## docsify 语法 ### 配置 #### 默认 `index.html` ```html