使用 docsify + GitHub Pages 搭建静态文档站
我建的站点示例:赛博扫盲手册 一、安装 docsify123npm i docsify-cli -g # 全局安装 docsifydocsify init ./docs # 初始化并创建 ./docs 文件夹 安装成功后,./docs 目录下会出现如下文件: index.html:入口文件 README.md:作为主页内容渲染 .nojekyll:用于阻止 GitHub Pages 忽略下划线开头的文件 此时你可以编辑 README.md 修改主页内容,也可以使用如下命令在本地 3000 端口启动实时预览: 1docsify serve ./docs 二、多页文档直接在 docs 目录下新建 .md 文件,通过 域名/文件名 访问。 三、定制侧边栏多页文档创建后,默认只能手动输入地址访问。要实现侧边栏导航,需要如下操作: 在 index.html 中找到 window.$docsify = {,添加 loadSidebar: true 配置: 12345<script> window.$docsify = {...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any probems when using Hexo you can find the answer in troubleshooting or you can ask me on GitHub. Quick StrtCreate a new pst1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment