Skip to content

hugo-fixit/docs

Repository files navigation

FixIt 主题文档

Production environment Preview environment Hugo

👉 中文 | English

FixIt 主题文档主要分为:文档教程 两大板块,欢迎大家发起 PR 完善主题文档。

系统依赖

贡献文档

首先,点击 fork 按钮 fork 本仓库。

然后,克隆你 fork 的仓库。

git clone https://github.com/hugo-fixit/docs.git fixit-docs && cd fixit-docs

接着,安装开发依赖。

npm install

最后,你就可以开始了!

这里有一些有用的命令。

# 运行带有监听文件变化的本地调试服务器
npm run server
# 运行带有监听文件变化的本地调试服务器(生产环境)
npm run server:production
# 查看编辑主题部分
npm run server:development

编辑主题

如果你想做与文档相关的主题更改,最简单的方法是将 fixit-docsFixIt 克隆为兄弟目录,然后运行:

HUGO_MODULE_WORKSPACE=hugo.work hugo server --ignoreVendorPaths "**"

最后,在 https://github.com/hugo-fixit/docs/pulls 创建一个新的 pull request 来提交你的贡献 🎉