Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:memo: Support dark theme for Star History in README.md https://github.com/siyuan-note/siyuan/pull/12876

Danielfaa5f4decd77
diff --git a/README_ja_JP.md b/README_ja_JP.md
index 1dd36c371a..0a646ec8ed 100644
--- a/README_ja_JP.md
+++ b/README_ja_JP.md
@@ -123,7 +123,13 @@ SiYuanは、プライバシーを最優先とする個人の知識管理シス
## 🌟 スター履歴
-[![Star History Chart](https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date)](https://star-history.com/#siyuan-note/siyuan&Date)
+<a href="https://star-history.com/#siyuan-note/siyuan&Date">
+ <picture>
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date&theme=dark" />
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date" />
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date" />
+ </picture>
+</a>
## 🗺️ ロードマップ
diff --git a/README_zh_CN.md b/README_zh_CN.md
index cae14a0876..7d712fb375 100644
--- a/README_zh_CN.md
+++ b/README_zh_CN.md
@@ -124,7 +124,13 @@
## 🌟 星标历史
-[![Star History Chart](https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date)](https://star-history.com/#siyuan-note/siyuan&Date)
+<a href="https://star-history.com/#siyuan-note/siyuan&Date">
+ <picture>
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date&theme=dark" />
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date" />
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date" />
+ </picture>
+</a>
## 🗺️ 路线图