[Bug] Contributing guide misses section about detector hints config

未关闭 适合新手
#16,100 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
70/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
活跃
技术栈
markdown
领域
documentation

调研方向

工作内容在 CONTRIBUTING.md 中,需要新增一个关于检测器提示的章节以及一个目录。先阅读 src/config/detector-hints.config,了解 NO DARK THEME、SYSTEM THEME 和 TARGET/MATCH 关键词是如何使用的。完成的标准是指南说明了每个关键词的作用和使用时机,并在顶部链接到目录。

由索引模型根据 Issue 内容生成。

描述

bug
Prerequisites
  • I searched for any existing report about this bug to avoid opening a duplicate.
  • I can reproduce this bug in a new, unmodified web browser profile with Dark Reader installed as the only extension.
  • I understand I need to use the Broken Website Report template if this bug I am reporting occurs on a single website.
Bug Description

The contributing guide is missing a section on detector hints config. It would also be nice to add a table of contents.

Website Address

https://github.com/darkreader/darkreader/blob/main/CONTRIBUTING.md

Steps To Reproduce
  1. Open the Contributing guide
Expected Behavior

General information about detector hints config, when it is needed, and how to use keywords there.

Actual Behavior

There is no information about how https://github.com/darkreader/darkreader/edit/main/src/config/detector-hints.config works; what NO DARK THEME, SYSTEM THEME, TARGET/MATCH do, and when and how should I use them. Also, the guide is really massive now, so a table of contents would be really helpful.

Screenshots

No response

Operating System

Windows 11 26H2

Web Browser name and version

Chrome 155

Dark Reader version

4.9.133

Additional Context

No response

主要语言
TypeScript
星标
22.6k
派生
2.8k
平均合并
1 天 17 小时
30 天内合并 PR
82

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

darkreader/darkreader 的其他 Issue

查看 darkreader/darkreader 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。