apple-docs-index
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseApple Documentation Index
Apple文档索引
This skill provides indexes of Apple framework documentation. Use these to:
- Browse available APIs in a framework
- Find the path to specific documentation
- Decide what detailed docs to download
本技能提供苹果框架文档的索引内容,可用于:
- 浏览框架中可用的API
- 查找特定文档的路径
- 确定需要下载的详细文档内容
Available Indexes
可用索引
| Framework | File | Size | Topics |
|---|---|---|---|
| SwiftUI | | 907KB | Views, modifiers, navigation, state |
| XCTest | | 55KB | Testing, assertions, expectations |
| XCUIAutomation | | 58KB | UI testing, elements, queries |
| UIKit | | 1.8MB | Views, controllers, controls, scenes |
| HealthKit | | 312KB | Health data, workouts, records |
| Combine | | 153KB | Publishers, subscribers, operators |
| SwiftData | | 86KB | Models, containers, queries |
| Observation | | 3KB | @Observable macro |
| 框架 | 文件 | 大小 | 主题 |
|---|---|---|---|
| SwiftUI | | 907KB | 视图、修饰符、导航、状态 |
| XCTest | | 55KB | 测试、断言、期望 |
| XCUIAutomation | | 58KB | UI测试、元素、查询 |
| UIKit | | 1.8MB | 视图、控制器、控件、场景 |
| HealthKit | | 312KB | 健康数据、运动、记录 |
| Combine | | 153KB | 发布者、订阅者、操作符 |
| SwiftData | | 86KB | 模型、容器、查询 |
| Observation | | 3KB | @Observable 宏 |
How to Use
使用方法
1. Browse an Index
1. 浏览索引
bash
undefinedbash
undefinedSee what's in HealthKit
See what's in HealthKit
cat healthkit-index.md | head -100
cat healthkit-index.md | head -100
Search for specific topic
Search for specific topic
grep -i "workout" healthkit-index.md
grep -i "navigation" ../swiftui/swiftui-overview.md
undefinedgrep -i "workout" healthkit-index.md
grep -i "navigation" ../swiftui/swiftui-overview.md
undefined2. Find Documentation Paths
2. 查找文档路径
Index files list all available documentation pages. Each entry shows the path:
markdown
- [HKWorkout](/documentation/healthkit/hkworkout)
- [NavigationStack](/documentation/swiftui/navigationstack)索引文件列出了所有可用的文档页面,每个条目都会显示路径:
markdown
- [HKWorkout](/documentation/healthkit/hkworkout)
- [NavigationStack](/documentation/swiftui/navigationstack)3. Fetch More Detailed Docs
3. 获取更详细的文档
- Check whether the detailed page is already available in one of your installed Apple skills.
- Use skill names, descriptions, or frontmatter to find likely skill directories, then grep their local
SKILL.mdfiles before fetching. This is faster and uses less context than fetching new docs from the internet..md - If no installed skill has the page, use the same path with the Markdown mirror.
sosumi.ai
For example, maps to .
/documentation/healthkit/hkworkouthttps://sosumi.ai/documentation/healthkit/hkworkout- 首先检查你已安装的Apple技能中是否已经存在该详细页面。
- 在获取新文档前,可使用技能名称、描述或的前置元数据查找可能的技能目录,然后检索本地的
SKILL.md文件。这种方式比从互联网获取新文档速度更快,占用的上下文也更少。.md - 如果已安装的技能中没有对应页面,可以将路径拼接在Markdown镜像地址后使用。
sosumi.ai
例如,对应的地址是。
/documentation/healthkit/hkworkouthttps://sosumi.ai/documentation/healthkit/hkworkout4. Browse Missing Framework Indexes
4. 浏览缺失的框架索引
If the local indexes don't include the framework you need, use the framework's index:
sosumi.aitext
https://sosumi.ai/documentation/{framework}For example, provides a Markdown index you can search for Foundation paths.
https://sosumi.ai/documentation/foundationIf the Markdown mirror is unavailable and your environment can parse JSON, Apple's public DocC index endpoint is:
text
https://developer.apple.com/tutorials/data/index/{framework}The useful path tree is under .
interfaceLanguages.swift[0].children如果本地索引没有包含你需要的框架,可以使用上对应框架的索引:
sosumi.aitext
https://sosumi.ai/documentation/{framework}例如,提供了可搜索的Foundation框架路径的Markdown索引。
https://sosumi.ai/documentation/foundation如果Markdown镜像无法访问,且你的环境支持解析JSON,可以使用苹果公开的DocC索引端点:
text
https://developer.apple.com/tutorials/data/index/{framework}可用的路径树位于节点下。
interfaceLanguages.swift[0].children