{"id":13555321,"url":"https://github.com/menduo/gitit-bigger","last_synced_at":"2026-01-17T08:53:18.269Z","repository":{"id":36156272,"uuid":"40460339","full_name":"menduo/gitit-bigger","owner":"menduo","description":"Gitit Bigger: 超棒的个人、团队Wiki/文档方案（Git、Markdown、Bootstrap、Ace、Docker）","archived":false,"fork":false,"pushed_at":"2023-06-16T09:08:45.000Z","size":4217,"stargazers_count":285,"open_issues_count":8,"forks_count":47,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-11-04T04:31:33.092Z","etag":null,"topics":["ace-editor","docker-gitit","git","gitit","gitit-bootstrap","gitit-wiki","markdown","wiki"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/menduo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-08-10T03:00:32.000Z","updated_at":"2024-08-10T14:07:09.000Z","dependencies_parsed_at":"2022-08-18T00:15:10.218Z","dependency_job_id":"170b5f73-3326-4a1a-85b1-ec0cfaabe012","html_url":"https://github.com/menduo/gitit-bigger","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/menduo%2Fgitit-bigger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/menduo%2Fgitit-bigger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/menduo%2Fgitit-bigger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/menduo%2Fgitit-bigger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/menduo","download_url":"https://codeload.github.com/menduo/gitit-bigger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246965508,"owners_count":20861883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ace-editor","docker-gitit","git","gitit","gitit-bootstrap","gitit-wiki","markdown","wiki"],"created_at":"2024-08-01T12:03:08.896Z","updated_at":"2026-01-17T08:53:18.254Z","avatar_url":"https://github.com/menduo.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","git"],"sub_categories":[],"readme":"# Gitit Bigger\nGitit Bigger: Git and Markdown based wiki, Bootstrap, ace Editor, syntax highlight and docker deploy support.\n\n基于 Git 和 Markdown 的超棒的 Wiki 系统，Bootstrap、Ace 编辑器等增强，支持 Docker 部署。\n\n# 开始 Start Bigger\n\u003e 假定你已安装 Git 和 Gitit\n\n- 普通版\n\n```bash\ngit clone https://github.com/menduo/gitit-bigger ~/workspace/gitit;\ncd ~/workspace/gitit;\ncp sample.gitit.conf my-gitit.conf;\n./run/run.sh start;\n```\n\n- Docker 版\n\n```bash\ndocker run -d --name gitit -p 7500:7500 menduo/gitit-bigger;\n```\n\n访问：[http://127.0.0.1:7500](http://127.0.0.1:7500)\n\n# Demo \u0026 Screeenshots\n## Demos\n- Gitit Bigger：[https://wiki.menduo.net/gitit-bigger](https://wiki.menduo.net/gitit-bigger) (Read Only)\n- Gitit 官方：[http://gitit.net](http://gitit.net)\n\n## 截图 Screenshots\n### 查看 View\n- [view.png](https://github.com/menduo/gitit-bigger/blob/master/screenshots/view.png)\n- [view-ipad-mini.png](https://github.com/menduo/gitit-bigger/blob/master/screenshots/view-ipad-mini.png)\n- [view-iphone6.png](https://github.com/menduo/gitit-bigger/blob/master/screenshots/view-iphone6.png)\n\n### 编辑 Edit\n- [edit.png](https://github.com/menduo/gitit-bigger/blob/master/screenshots/edit.png)\n- [edit-ipad-mini.png](https://github.com/menduo/gitit-bigger/blob/master/screenshots/edit-ipad-mini.png)\n- [edit-iphone6.png](https://github.com/menduo/gitit-bigger/blob/master/screenshots/edit-iphone6.png)\n\n# Gitit 主要特性\n- 无数据库\n- Git 版本控制\n- Markdown 格式\n- Wiki 化：\n  - 子目录，无限目录（这也是我抛弃其他一些类似 wiki 系统的原因）\n  - 中文目录、中文标题、中文分类\n  - 完美支持中文搜索\n  - 支持分类\n  - 支持自定义标题\n\n- 代码高亮\n- 支持公式等（我基本不用）\n- 导出 epub 等（基于 pandoc）\n\n更多关于 Gitit 的安装、部署、优化的中文介绍和说明，请见:\n- [gitit_base.md 简介、安装、部署](https://github.com/menduo/gitit-bigger/blob/master/docs/gitit_base.md)\n- [gitit_config.md 配置](https://github.com/menduo/gitit-bigger/blob/master/docs/gitit_config.md)\n\n# Gitit Bigger VS Gitit\n- Bootstrap 模板\n- Ace Editor\n- Ace Editor 的编辑模式已设为 `markdown`。\n  - 支持代码高亮\n  - 搜索、替换（cmd+option+f）\n  - Tab 缩进、恢复（tab、shift+tab）\n  - 快捷键\n  - ...\n\n- 采用配置文件方式启动，多个实例轻松共享资源\n- 支持自定义 Ace 编辑器启用/禁用、模式、样式等配置\n- 支持 Markdown 模式下快捷键\n- 数学公式：支持 MathJax 启用/禁用，自定义 MathJax 源\n- 代码高亮：支持使用 highlight.js 高亮代码 - Gitit 的高亮需要服务端支持\n- 增加启动、部分、自动备份脚本或帮助\n\n# 注意：wikidata 仓库\n请注意检查你的 `wikidata/` 目录的 git 配置。请注意：\n- `wikidata` 文件夹是一个本地仓库，所有的 wiki 页面都将保存到此处；\n- `Gitit` 启动时，会检查这个文件夹是否存在，如果不存在，Gitit 将会创建它，并初始化它为一个本地仓库\n- 只有提交到仓库里的文件，才会被 Gitit 添加到 wiki 中。\n- 如果你想要将此仓库与你的远程仓库绑定、同步：你需要：\n  - clone 你的 wiki 仓库到 `wikidata` 文件夹：`git clone your-wikidata.git ./wikidata`，或者：\n  - 运行 `git remote` 相关命令，使 `wikidata` 文件夹和你的远程仓库连接起来；\n\n```bash\n# 如果  wikidata 文件夹尚不存在\ncd ~/workspace/gitit\ngit clone your-wikidata.git ./wikidata\ngit branch --set-upstream-to=origin/master master\n# 启动 gitit 服务: ./run/run.sh start\n\n# 如果 wikidata 已经存在，但并没有和你的远程仓库绑定\ncd wikidata\ngit remote add origin path/to/your-wikidata.git\ngit branch --set-upstream-to=origin/master master\n# 启动 gitit 服务: ./run/run.sh start\n```\n\n# 配置、自定义 JS/CSS\nGitit Bigger 提供一定程度的配置。\n\n你可以通过在 `templates/page_more_scripts.st` 里定义 `BIGGER_SETTINGS_APPEND` 对象来覆盖默认配置。\n\n包括：\n- ace 编辑器\n- markdown\n- MathJax 数学公式插件\n- highlightjs 代码高亮\n- Google Analytics 统计\n\n详情见：[gitit_bigger_config.md](https://github.com/menduo/gitit-bigger/blob/master/docs/gitit_bigger_config.md)\n\n# 工具 Utils\n- 启动控制\n- 批量修改扩展名\n- 自动备份辅助\n\n详情见：- [gitit_bigger_utils.md](https://github.com/menduo/gitit-bigger/blob/master/docs/gitit_bigger_utils.md)\n\n# 通过 Shell 编辑 wiki\n不通过 web界面，也可以操作我们的 Gitit Wiki。背景：\n1. `wikidata`: wiki pages 的仓库\n2. 只有提交到仓库里的文件，才会被 Gitit 添加到 wiki 中。\n\n```bash\n\n# 进入 wikidata 目录\ncd /path/to/your/wikidata\n\n# 新增文件并输入一些字符串\ntouch new_page.md\necho \"hello menduo\" \u003e\u003e new_page.md\n\n# 添加新文件到仓库\ngit add new_pge.md\ngit commit -m \"add new_page.md file\"\n\n# 更新文件并提交到仓库\necho \"new line\" \u003e\u003e old_page.md\ngit add old_page.md\ngit commit -m \"update old_page.md \"\n\n# 推送到远程仓库\ngit push origin master\n```\n\n# 多个实例\n通过配置文件的方式，可以轻松运行多个 Gitit 实例。除 wiki.menduo.net 外，我也运行了另外的实例来做私人笔记。\n1. `cp sample.gitit.conf my-gitit-private.conf;`\n2. 更新 `my-gitit-private.conf` 里的相关配置，尤其是：端口、wikidata 目录（详见[gitit_config.md 配置](https://github.com/menduo/gitit-bigger/blob/master/docs/gitit_config.md)）\n3. 启动新实例：`gitit -f my-gitit-private.conf`\n\n注意\n- 如果 `my-gitit.conf` 和 `my-gitit-private.conf` 这两个实例使用不同的用户，可能会造成 cookies 的混乱。\n- 在服务端时，可考虑使用 `nginx` 做反向代理，为每个实例绑定一个二级域名。\n- 在本地时，可以用 `localhost` 和 `127.0.0.1` 一类的来处理 cookie 域问题。\n\n# Docs\n- [Gitit 简介、安装、部署](https://github.com/menduo/gitit-bigger/blob/master/docs/gitit_base.md)\n- [Gitit 配置项介绍](https://github.com/menduo/gitit-bigger/blob/master/docs/gitit_config.md)\n- [Gitit-Bigger-Docker 版介绍](https://github.com/menduo/gitit-bigger/blob/master/docs/gitit_bigger_docker.md)\n- [Gitit-Bigger 定制说明](https://github.com/menduo/gitit-bigger/blob/master/docs/gitit_bigger_config.md)\n- [Gitit-Bigger 工具.md](https://github.com/menduo/gitit-bigger/blob/master/docs/gitit_bigger_utils.md)\n\n# Changelogs\n- 简体中文: [CHANGELOG.md](https://github.com/menduo/gitit-bigger/blob/master/CHANGELOG.md)\n- English: [CHANGELOG_EN.md](https://github.com/menduo/gitit-bigger/blob/master/CHANGELOG_EN.md)\n\n# 反馈、建议、联系\n- Github Issues：[https://github.com/menduo/gitit-bigger/issues](https://github.com/menduo/gitit-bigger/issues)\n- Email: shimenduo@gmail.com\n\n\n# Links\n- Github：[https://github.com/menduo/gitit-bigger](https://github.com/menduo/gitit-bigger)\n- DockreHub：[https://hub.docker.com/r/menduo/gitit-bigger](https://hub.docker.com/r/menduo/gitit-bigger)\n- Demo: [https://wiki.menduo.net/gitit-bigger](https://wiki.menduo.net/gitit-bigger) (Read Only)\n- gitit official site: [http://gitit.net](http://gitit.net)\n- gitit official github: [https://github.com/jgm/gitit](https://github.com/jgm/gitit)\n- 在Archlinux上部署gitit Wiki: [http://www.360doc.com/content/12/0518/21/21412_211977928.shtml](http://www.360doc.com/content/12/0518/21/21412_211977928.shtml)\n- Gitit - git based wiki: [http://walkingice.blogspot.hk/2011/11/gitit-git-based-wiki.html](http://walkingice.blogspot.hk/2011/11/gitit-git-based-wiki.html)\n- Hyzual/docker-gitit: [https://github.com/Hyzual/docker-gitit](https://github.com/Hyzual/docker-gitit)\n- Gitit Bootstrap 模板：[Changaco/gitit-bootstrap](https://github.com/Changaco/gitit-bootstrap)\n- Gitit ace editor 支持 [Getting the Ace editor to work with gitit](https://gist.github.com/lmullen/e2d2d4aabf84220c517a)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmenduo%2Fgitit-bigger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmenduo%2Fgitit-bigger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmenduo%2Fgitit-bigger/lists"}