Skip to content

Commit 1951873

Browse files
[Docs] Serve skill.md as both uppercase and lowercase at root
Copy the skill file as both skill.md and SKILL.md at the site root to support both URL variants. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 7eed3d4 commit 1951873

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/docs/hooks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ def _write_well_known_skills(config, site_dir):
185185
out_dir = os.path.join(site_dir, WELL_KNOWN_SKILLS_DIR, name)
186186
os.makedirs(out_dir, exist_ok=True)
187187
shutil.copy2(skill_src, os.path.join(out_dir, "SKILL.md"))
188-
# Serve skill at site root (e.g. https://dstack.ai/skill.md) from skills/dstack/SKILL.md
188+
# Serve skill at site root (both skill.md and SKILL.md) from skills/dstack/SKILL.md
189189
shutil.copy2(skill_src, os.path.join(site_dir, "skill.md"))
190+
shutil.copy2(skill_src, os.path.join(site_dir, "SKILL.md"))
190191

191192
index_path = os.path.join(site_dir, WELL_KNOWN_SKILLS_DIR, "index.json")
192193
index = {

0 commit comments

Comments
 (0)