mirror of
https://github.com/qdrant/skills.git
synced 2026-09-19 07:27:46 +08:00
Fix CI.
This commit is contained in:
@@ -3,7 +3,8 @@ set -euo pipefail
|
||||
|
||||
rm -rf public
|
||||
cp -r skills public
|
||||
cp -r meta/qdrant-advisor public/qdrant-advisor
|
||||
mkdir -p public/meta
|
||||
cp -r meta/qdrant-advisor public/meta/qdrant-advisor
|
||||
|
||||
find public -name '*.md' -print0 | xargs -0 perl -pi -e 's|https://search\.qdrant\.tech/md/|/md/|g'
|
||||
|
||||
|
||||
@@ -43,10 +43,17 @@ def collect_names(public_dir):
|
||||
|
||||
|
||||
def build_breadcrumb(segments, names, root_title, root_url):
|
||||
"""Render 'Root › ancestor › ... › leaf' with every ancestor linked."""
|
||||
"""Render 'Root › ancestor › ... › leaf' with every ancestor linked.
|
||||
|
||||
Returns None if an ancestor segment isn't itself a skill (no SKILL.md,
|
||||
e.g. a plain container directory like meta/) — there's no hub page to
|
||||
link to, so the leaf isn't part of the skills/ breadcrumb hierarchy.
|
||||
"""
|
||||
crumbs = [f"[{root_title}]({root_url})"]
|
||||
for depth in range(1, len(segments)):
|
||||
ancestor = segments[:depth]
|
||||
if ancestor not in names:
|
||||
return None
|
||||
name, url = names[ancestor]
|
||||
crumbs.append(f"[{name}]({url})")
|
||||
leaf_name, _leaf_url = names[segments]
|
||||
@@ -80,6 +87,8 @@ def run(public_dir):
|
||||
if len(segments) < 2:
|
||||
continue
|
||||
breadcrumb = build_breadcrumb(segments, names, root_title, root_url)
|
||||
if breadcrumb is None:
|
||||
continue
|
||||
filepath = os.path.join(public_dir, *segments, "SKILL.md")
|
||||
if inject(filepath, breadcrumb):
|
||||
injected += 1
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ Agent skills encoding deep Qdrant knowledge for coding agents.
|
||||
|
||||
## Qdrant Advisor
|
||||
|
||||
- [qdrant-advisor](/qdrant-advisor/SKILL.md) — Meta-skill that loads the relevant skill below live at trigger time, so you install one skill instead of the full set and always get current guidance. Ships no static content of its own.
|
||||
- [qdrant-advisor](../meta/qdrant-advisor/SKILL.md) — Meta-skill that loads the relevant skill below live at trigger time, so you install one skill instead of the full set and always get current guidance. Ships no static content of its own.
|
||||
|
||||
## Available Skills
|
||||
|
||||
|
||||
Reference in New Issue
Block a user