Skip to content

Travisun/linuxdo-seal

Repository files navigation

LINUX DO Seal

Best Community · LINUX DO

基于 Cloudflare Worker Static Assets 的窄版社区徽章引用工具。选择一个徽章并将代码部署在您的 GitHub README 和项目主页中。

在线地址: https://linuxdo-seal.cuishushu.com

点击徽章将在新窗口打开 https://linux.do?ref=seal-click

功能

  • 三步指引:选印章 → 选尺寸 → 复制代码
  • 8 种 Seal,各自独立 hover / title 文案
  • 预设尺寸 + 自定义宽度(高度按比例自动计算)
  • 徽章为静态 SVG,由 CDN 长期缓存;尺寸通过 HTML width / height 控制,不消耗 Worker 动态执行

快速使用

图片始终引用静态文件,例如:

https://linuxdo-seal.cuishushu.com/seals/seal-powered-by.svg

在 GitHub README 或网页中用 HTML 控制展示尺寸:

<a href="https://linux.do?ref=seal-click" target="_blank" rel="noopener noreferrer" title="Powered by LINUX DO">
  <img
    src="https://linuxdo-seal.cuishushu.com/seals/seal-powered-by.svg"
    alt="Powered by LINUX DO"
    width="180"
    height="55"
  />
</a>

可用徽章

文件 Hover 文案
seal-powered-by.svg Powered by LINUX DO
seal-loved-by.svg Loved by LINUX DO
seal-born-in.svg Born in LINUX DO
seal-proudly-from.svg Proudly from LINUX DO
seal-proud-member.svg Proud Member of LINUX DO
seal-support-by.svg Supported by LINUX DO
seal-best-community.svg Best Community · LINUX DO
seal-pioneer-project.svg LINUX DO Pioneer Project

路径:/seals/{file}

本地开发

npm install
npm run dev

本地默认地址:http://127.0.0.1:8787

npm run deploy

项目结构

├── public/
│   ├── index.html    # 三步徽章工具页
│   ├── _headers      # 静态资源 CDN 缓存头
│   ├── seals/        # Seal SVG(静态)
│   ├── logo.svg
│   └── icon.svg
├── .github/workflows # push main 自动部署
└── wrangler.jsonc    # 纯 Static Assets + 自定义域名

自动部署

推送到 main 时,GitHub Actions 通过 cloudflare/wrangler-action 部署。

仓库 Secrets:

  • CLOUDFLARE_ACCOUNT_ID
  • CLOUDFLARE_API_TOKEN(权限模板:Edit Cloudflare Workers)

设计二次创作

徽章战士 Skill(给 AI Agent)

Agent 为任意项目添加 LINUX DO 徽章时,请遵循:

核心规则:只用静态 /seals/seal-{id}.svg,用 HTML width/height 控尺寸,点击跳转 https://linux.do?ref=seal-click

License

MIT

About

LINUX DO community seal badge embed tool (Cloudflare Worker)

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages