Add GitHub DeepWiki Button

Add a DeepWiki button to GitHub repository navigation

作者
heakjo
日安装量
0
总安装量
0
评分
0 0 0
版本
0.2
创建于
2025-08-15
更新于
2025-08-15
大小
7.0 KB
许可证
暂无
适用于

简短描述:

在 GitHub 仓库的导航栏中添加一个“DeepWiki”按钮,用于快速访问其对应的 DeepWiki 页面。

详细描述:

这个脚本通过在 GitHub 仓库的导航栏(“Insights”按钮旁边)添加一个方便的“DeepWiki”按钮来增强您的浏览体验。

DeepWiki 是一个为代码仓库提供 AI 驱动的深度解析和文档说明的网站。通过此脚本,您只需一次点击,即可直接跳转到当前浏览仓库的 DeepWiki 页面,省去了手动复制粘贴URL的麻烦。

功能特性:

  • 无缝集成: 按钮被直接添加到 GitHub 导航栏中,外观与原生按钮一致。
  • 智能识别: 脚本会自动根据当前仓库的用户名和仓库名生成正确的 DeepWiki 链接。
  • 稳定可靠: 能够可靠地应对 GitHub 的动态页面加载机制(兼容 PJAX 和 Turbo 事件),并对 GitHub 的UI小幅更新有较好的兼容性。

Short Description:

Adds a "DeepWiki" button to the GitHub repository navigation bar for quick access to its corresponding DeepWiki page.

Full Description:

This script enhances your GitHub experience by adding a convenient "DeepWiki" button to the repository navigation bar (next to "Insights").

DeepWiki provides AI-powered insights and documentation for code repositories. With this script, you can navigate directly to the DeepWiki page for any public repository with a single click, saving you the effort of manually copying and pasting the URL.

Features:

  • Seamless Integration: The button is added directly into the GitHub navigation bar, looking like a native feature.
  • Smart Detection: Automatically constructs the correct DeepWiki URL based on the current repository's username and name.
  • Robust and Reliable: Works reliably with GitHub's dynamic page loading (handles PJAX and Turbo events) and is resilient to minor UI changes.