Skill站外收录 @skilllib/skill-2117939930272415706
renaming-services
自动化完成服务文档的重命名与全链路引用更新,涵盖文档文件、服务列表组件及 Nginx 重定向配置,确保 URL 一致性与链接有效性,同时支持 kebab-case 规范化、版本区分和重复内容整合等常见重构场景。
效率工具 AI 技能
Skills.MD
# Rename Service Documentation
This skill guides you through renaming a service in the Coolify documentation, ensuring all references are updated correctly.
## When to Use This Skill
- Service name changed in the Coolify repository
- Fixing incorrect service naming (e.g., camelCase to kebab-case)
- Consolidating duplicate service documentation
- Correcting typos in service slugs
## Critical: Three Locations Must Be Updated
When renaming a service, you **MUST** update all three locations:
1. **Documentation file** (`docs/services/`)
2. **Services list** (`docs/.vitepress/theme/components/Services/List.vue`)
3. **Nginx redirects** (`nginx/redirects.conf`)
Failing to update all three will cause broken links or 404 errors.
## Step-by-Step Process
### 1. Rename the Documentation File
```bash
# Rename the markdown file
git mv docs/services/old-name.md docs/services/new-name.md
```
**Naming rules:**
- Use lowercase only
- Use hyphens for spaces (kebab-case)
- Match the service name from `service-templates-latest.json`
- Don't use camelCase even if the JSON does (e.g., `denoKV` → `denokv.md`)
### 2. Update the Services List
Edit `docs/.vitepress/theme/components/Services/List.vue`:
```javascript
// Find the service entry and update the slug
{
name: 'Service Name',
slug: 'new-name', // ← Change from 'old-name'
icon: '/docs/images/services/service-logo.svg',
description: 'Service description',
category: 'Category'
},
```
### 3. Add Nginx Redirects
Add redirect rules to `nginx/redirects.conf`:
```nginx
# Redirect old service URL to new URL
location = /docs/services/old-name { return 301 /docs/services/new-name; }
# Also redirect legacy knowledge-base path if it existed
location = /knowledge-base/services/old-name { return 301 /docs/services/new-name; }
```
**Important:** Keep redirects even for deleted pages to prevent 404 errors from search engines and bookmarks.
### 4. Update Internal Links
Search for any internal links referencing the old name:
```bash
# Search for references to the old service name
grep -r "old-name" docs/
```
Update any found references in other documentation files.
### 5. Rename Logo File (If Needed)
If the logo filename also needs updating:
```bash
# Rename the logo
git mv docs/public/images/services/old-name-logo.svg docs/public/images/services/new-name-logo.svg
```
Then update the `icon` path in List.vue.
## Verification Checklist
After renaming, verify:
- [ ] New file exists: `docs/services/new-name.md`
- [ ] Old file removed or redirected
- [ ] List.vue `slug` matches new filename
- [ ] List.vue `icon` path is correct
- [ ] Redirect added to `nginx/redirects.conf`
- [ ] No broken internal links (run `grep -r "old-name" docs/`)
- [ ] Service appears correctly at http://localhost:5173/docs/services/new-name
- [ ] Old URL redirects to new URL
## Common Scenarios
### Fixing camelCase to kebab-case
When the Coolify JSON uses camelCase but docs should use lowercase:
- `denoKV` → `denokv.md`
- `homeAssistant` → `home-assistant.md`
### Adding Version Numbers
When Coolify adds version-specific services:
- `mautic.md` → `mautic5.md` (if JSON specifies `mautic5`)
### Consolidating Names
When compound names are required:
- `ente.md` → `ente-photos.md` (if JSON specifies `ente-photos`)
## Troubleshooting
### Service shows 404
- Check if redirect is in `nginx/redirects.conf`
- Verify slug in List.vue matches filename
- Ensure markdown file exists
### Old URL still works without redirect
- Nginx config may need reload
- Check redirect syntax in `redirects.conf`
### Search engines still show old URL
- Redirects are working correctly (301 tells search engines to update)
- Takes time for search engines to re-crawl
## Related Skills
- `adding-service-documentation` - For creating new service docs
- `disabling-services` - For hiding deprecated services
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「renaming-services」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次