SuperAPI AI 工具集

remotion-docs

编程与开发

查看项目

更新于 10-16 07:58

技能介绍

用途:本技能用于发现并阅读当前的 Remotion 官方文档,避免依赖过时的 API 记忆。若不适用,资料建议改加载 Remotion Best Practices。

主要能力:一是通过 Algolia 搜索 API 检索文档页面,命中结果包含指向文档页的 url 字段;二是将任意 Remotion 文档 URL 追加 .md 后缀,即可获取其 Markdown 源内容以节省 token,例如 https://www.remotion.dev/docs/use-video-config.md、https://www.remotion.dev/docs/sequence.md、https://www.remotion.dev/docs/lambda/rendermediaonlambda.md。

使用方式:先按需搜索概念或 API,再从结果中挑选最相关的 URL,然后用 .md 后缀抓取每个页面,最后依据当前文档实现功能。搜索使用 POST 请求,端点与请求体如下: POST https://plsduol1ca-dsn.algolia.net/1/indexes/*/queries?x-algolia-api-key=3e42dbd4f895fe93ff5cf40d860c4a85&x-algolia-application-id=PLSDUOL1CA Content-Type: application/x-www-form-urlencoded 请求体为 JSON:requests 数组,每项含 query、indexName(remotion)和 params(attributesToRetrieve=["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","url"]&hitsPerPage=10)。

适用场景:在编写或调试 Remotion 视频代码时查找组件、配置与渲染相关文档。

限制:资料未提供收费、平台、配额及更详细的使用步骤信息。