在 GitHub 仓库页面添加 CodeWiki 按钮. 点击跳转到 https://codewiki.google/github.com/{user}/{repo}
Add a CodeWiki button to GitHub repository pages. Instantly jump to the corresponding CodeWiki page.
在 GitHub 仓库页面添加一个 CodeWiki 按钮. 一键跳转到对应的 CodeWiki 页面。
Example URL Mapping · 示例跳转格式
https://github.com/google-gemini/gemini-cli
→ https://codewiki.google/github.com/google-gemini/gemini-cli
Replace
your-usernamewith your real GitHub username. 请把下面链接中的your-username改成你自己的 GitHub 用户名。
👉 Click here to install via Tampermonkey · 点此一键安装脚本
If Tampermonkey is installed, opening the link above will trigger the install prompt automatically. 如果已经安装了 Tampermonkey, 打开上述链接会自动弹出安装窗口。
user and repo from the URL path
从地址栏中解析出 user 和 repo 信息CodeWiki button into the repository header area
在仓库头部操作区域插入一个 CodeWiki 按钮 https://codewiki.google/github.com/{user}/{repo}
按钮点击后跳转到上面的 CodeWiki 地址格式
Install
Tampermonkey 会打开安装页面, 点击 安装Create a new script
点击浏览器中的 Tampermonkey 图标, 选择 添加新脚本codewiki-github-button.user.js into the editor
将 codewiki-github-button.user.js 文件的全部内容复制进去https://github.com/google-gemini/gemini-cliCodeWiki button in the repository header area
在仓库顶部操作区域会多出一个 CodeWiki 按钮实际跳转地址为:
https://codewiki.google/github.com/{user}/{repo}
github-codewiki-button/
├─ README.md # Repository description 仓库说明文档
├─ LICENSE # License 许可证, 推荐 MIT
└─ codewiki-github-button.user.js # Core userscript file 核心用户脚本文件
This project is licensed under the MIT License.
本项目使用 MIT License 开源. 详情见 LICENSE 文件。