mirror of
https://github.com/Jeffallan/claude-skills.git
synced 2026-09-14 18:43:38 +08:00
fix(docs): update skill count in README banner; teach update-docs.py to manage it
The capsule-render banner embeds counts URL-encoded in the image URL, where no marker comment can live, so it stayed at 66 skills through the v0.4.16 release. update-docs.py now rewrites the banner's desc= parameter from computed counts, matching the existing marker-less version-badge treatment. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E6LA4sndtVGyvoXqwYeHoB
This commit is contained in:
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
- README banner (capsule-render URL) still displayed 66 skills after the v0.4.16 release; the counts are URL-encoded inside the image URL where no `<!-- SKILL_COUNT -->` marker can live, so `update-docs.py` never touched them. The script now rewrites the banner's `desc=` parameter from computed counts
|
||||
|
||||
## [0.4.16] - 2026-08-07
|
||||
|
||||
### Added
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<p align="center">
|
||||
<img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&customColorList=12,14,25,27&height=200§ion=header&text=Claude%20Skills&fontSize=80&fontColor=ffffff&animation=fadeIn&fontAlignY=35&desc=66%20Skills%20%E2%80%A2%209%20Workflows%20%E2%80%A2%20Built%20for%20Full-Stack%20Devs&descSize=20&descAlignY=55" width="100%"/>
|
||||
<img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&customColorList=12,14,25,27&height=200§ion=header&text=Claude%20Skills&fontSize=80&fontColor=ffffff&animation=fadeIn&fontAlignY=35&desc=67%20Skills%20%E2%80%A2%209%20Workflows%20%E2%80%A2%20Built%20for%20Full-Stack%20Devs&descSize=20&descAlignY=55" width="100%"/>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
|
||||
@@ -127,6 +127,13 @@ def update_markdown_file(file_path: Path, version: str, counts: dict, dry_run: b
|
||||
# Also update version badge URL (no marker needed - URL pattern is unique)
|
||||
content = re.sub(r"version-[\d.]+-blue\.svg", f"version-{version}-blue.svg", content)
|
||||
|
||||
# Update counts embedded in the capsule-render banner URL (URL-encoded, no marker possible)
|
||||
content = re.sub(
|
||||
r"desc=\d+%20Skills%20%E2%80%A2%20\d+%20Workflows",
|
||||
f"desc={counts['skillCount']}%20Skills%20%E2%80%A2%20{counts['workflowCount']}%20Workflows",
|
||||
content,
|
||||
)
|
||||
|
||||
# Update "Last updated" version reference (e.g., in ROADMAP.md)
|
||||
content = re.sub(r"(Last updated:.*?\(v)[\d.]+(\))", rf"\g<1>{version}\2", content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user