← 返回 Skill 列表
extension
分类: 开发与工程API Key 暂未确认

update-spatie-docs

通过导入给定仓库的文档来更新Spatie包文档。当用户说'update docs for [package]'、'import docs for [repo]'或调用/update-spatie-docs [repo-name]时使用。需要一个仓库名称参数(例如,'backup', 'laravel-medialibrary')。

person作者: jakexiaohubgithub

Update Spatie Docs

The spatie.be docs site does not rebuild automatically after a PR merges. To publish doc changes, run the docs:import artisan command against the repo.

Command

Run this twice to be sure (the second run catches any version that lagged on the first pass):

cd ~/dev/code/spatie.be && php artisan remote "docs:import --repo=spatie/{repo_name}"
cd ~/dev/code/spatie.be && php artisan remote "docs:import --repo=spatie/{repo_name}"

php artisan remote runs the command against the production spatie.be instance. Write it out in full. The ar alias is equivalent when typed by hand, but aliases are not defined in non-interactive shells, so a subagent or scheduled run would fail silently.

If no repo name argument is provided, ask the user for one.

Verification

After running, curl a docs URL to confirm the new content is live. The import sometimes returns success before the published pages reflect it, so check a specific page you changed:

curl -sL "https://spatie.be/docs/{repo_name}/v2/some-page-you-changed" | grep -oE '<title>[^<]*</title>'

If the title matches the fallback (Introduction page) instead of the page you expected, the cache has not caught up yet. Wait a moment and curl again.