Skip to content

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

Python

fix cli-hub-skill

yuhao513c6f197054
diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml
index d9f9afed5..15340ec60 100644
--- a/.github/workflows/deploy-pages.yml
+++ b/.github/workflows/deploy-pages.yml
@@ -41,8 +41,13 @@ jobs:
- name: Generate meta-skill
run: python3 .github/scripts/generate_meta_skill.py
- - name: Copy catalog to hub
- run: cp cli-hub-skill/SKILL.md docs/hub/SKILL.md
+ - name: Copy catalog to hub with Jekyll front matter
+ run: |
+ echo "---" > docs/hub/SKILL.md
+ echo "layout: null" >> docs/hub/SKILL.md
+ echo "permalink: /SKILL.md" >> docs/hub/SKILL.md
+ echo "---" >> docs/hub/SKILL.md
+ cat cli-hub-skill/SKILL.md >> docs/hub/SKILL.md
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
@@ -50,6 +55,9 @@ jobs:
source: ./docs/hub
destination: ./docs/_site
+ - name: Copy raw SKILL.md to built site
+ run: cp cli-hub-skill/SKILL.md docs/_site/SKILL.md
+
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
diff --git a/docs/hub/_config.yml b/docs/hub/_config.yml
index 4a464eb0a..f20b56e1f 100644
--- a/docs/hub/_config.yml
+++ b/docs/hub/_config.yml
@@ -1,2 +1,17 @@
include:
- SKILL.md
+
+# Prevent Jekyll from processing SKILL.md
+exclude: []
+
+# Keep markdown files as-is
+markdown: kramdown
+kramdown:
+ input: GFM
+
+# Static files to copy without processing
+defaults:
+ - scope:
+ path: "SKILL.md"
+ values:
+ layout: none