remotion-docs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseThis skill teaches you how to discover and read current Remotion documentation.
If this is not relevant, load Remotion Best Practices instead.
本技能将教你如何查找并阅读最新的Remotion文档。
如果这不符合你的需求,请改为加载Remotion最佳实践内容。
Searching the docs
搜索文档
Use the Algolia search API to find relevant documentation pages:
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
{
"requests": [
{
"query": "<your search query>",
"indexName": "remotion",
"params": "attributesToRetrieve=[\"hierarchy.lvl0\",\"hierarchy.lvl1\",\"hierarchy.lvl2\",\"url\"]&hitsPerPage=10"
}
]
}Each hit contains a field pointing to the documentation page.
url使用Algolia搜索API查找相关文档页面:
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
{
"requests": [
{
"query": "<your search query>",
"indexName": "remotion",
"params": "attributesToRetrieve=[\"hierarchy.lvl0\",\"hierarchy.lvl1\",\"hierarchy.lvl2\",\"url\"]&hitsPerPage=10"
}
]
}每个搜索结果条目都包含一个指向文档页面的字段。
urlFetching a page as Markdown
获取Markdown格式的页面
Append to any Remotion docs URL to retrieve its Markdown source (saves tokens):
.mdhttps://www.remotion.dev/docs/use-video-config.md
https://www.remotion.dev/docs/sequence.md
https://www.remotion.dev/docs/lambda/rendermediaonlambda.md在任意Remotion文档URL后添加后缀,即可获取其Markdown源文件(节省令牌消耗):
.mdhttps://www.remotion.dev/docs/use-video-config.md
https://www.remotion.dev/docs/sequence.md
https://www.remotion.dev/docs/lambda/rendermediaonlambda.mdWorkflow
工作流程
- Search Algolia for the concept or API you need.
- Pick the most relevant URL(s) from the results.
- Fetch each URL with the suffix.
.md - Implement using the current documentation rather than memorized API knowledge.
- 在Algolia中搜索你需要的概念或API。
- 从搜索结果中选择最相关的URL。
- 获取带有后缀的每个URL对应的内容。
.md - 根据最新文档进行实现,而非依赖记忆中的API知识。