docs: update sync and doctor pages for .skillignore visibility

- sync: add ignored_count/ignored_skills to JSON example, note about
  .skillignore filtering
- doctor: add Skillignore to environment checks table, update example
  output with skillignore line and visual spacing
This commit is contained in:
Willie
2026-03-18 00:19:30 +08:00
parent 33cc974210
commit 7c533f2012
2 changed files with 10 additions and 0 deletions
@@ -29,7 +29,12 @@ skillshare doctor
Checking environment
✓ Config: ~/.config/skillshare/config.yaml
→ Config directory: ~/.config/skillshare
→ Data directory: ~/.local/share/skillshare
→ State directory: ~/.local/state/skillshare
✓ Source: ~/.config/skillshare/skills (12 skills)
✓ Skillignore: 2 patterns, 1 skills ignored
✓ Link support: OK
✓ Git: initialized with remote
@@ -54,6 +59,7 @@ Summary
|-------|-----------------|
| Config | Config file exists and is valid |
| Source | Source directory exists and is readable |
| Skillignore | `.skillignore` active patterns and ignored skill count |
| Link support | System can create symlinks |
| Git | Repository status and remote configuration |
+4
View File
@@ -113,6 +113,8 @@ skillshare sync --json
"local": 2,
"updated": 0,
"pruned": 1,
"ignored_count": 2,
"ignored_skills": ["_team/vendor/lib", "test-draft"],
"dry_run": false,
"duration": "0.234s",
"details": [
@@ -136,6 +138,8 @@ skillshare sync --json
}
```
The `ignored_count` and `ignored_skills` fields show skills excluded by `.skillignore`. These are filtered at discovery time and never reach any target. See [.skillignore](/docs/reference/targets/configuration#skillignore) for pattern syntax.
### What Happens
```mermaid