Skip to content

Conversation

@even-wei
Copy link
Contributor

@even-wei even-wei commented Dec 1, 2025

Summary

Unified GitHub and GitLab CI/CD setup guides into platform-agnostic documentation, reducing files by 90% while improving clarity and maintainability.

Key Changes

Documentation Structure:

  • ✅ Merged 6 platform-specific files → 2 unified guides (setup-cd.md, setup-ci.md)
  • ✅ Added platform comparison tables showing GitHub vs GitLab syntax differences
  • ✅ Moved GitLab PAT guide to getting-started/ (accessible via contextual links)

Enhanced Code Examples:

  • ✅ Added line numbers to all YAML examples (linenums="1")
  • ✅ Syntax highlighting for critical lines (e.g., recce-cloud upload)
  • ✅ Separate examples for GitHub and GitLab with expected output

Improved Verification:

  • ✅ Added GitLab verification screenshots alongside GitHub
  • ✅ Platform-specific expected output examples
  • ✅ Clear success indicators for both platforms

Better Troubleshooting:

  • ✅ Comprehensive troubleshooting in Setup CD (logical first step)
  • ✅ Setup CI references CD troubleshooting (DRY principle)
  • ✅ Platform-specific solutions clearly marked

Files Changed

Deleted (7 files):

  • docs/7-cicd/github/setup-cd.md
  • docs/7-cicd/github/setup-ci.md
  • docs/7-cicd/github/scenario-ci.md
  • docs/7-cicd/gitlab/setup-cd.md
  • docs/7-cicd/gitlab/setup-ci.md
  • docs/7-cicd/gitlab/gitlab-pat-guide.md
  • docs/7-cicd/gitlab-pat-guide.md

Created (2 files):

  • docs/7-cicd/setup-cd.md (unified)
  • docs/7-cicd/setup-ci.md (unified)

Moved (1 file):

  • docs/2-getting-started/gitlab-pat-guide.md (from CI/CD section)

Benefits

  1. 50% reduction in CI/CD documentation files
  2. Equal platform treatment - GitHub and GitLab side-by-side
  3. Single source of truth - easier to maintain and keep consistent
  4. Cleaner navigation - GitLab-specific content linked contextually
  5. Better UX - newbies follow linear path: Getting Started → Setup CD → Setup CI

Testing Checklist

  • Verify all internal links work
  • Check screenshots render correctly
  • Confirm YAML syntax highlighting displays properly
  • Test navigation flow from getting started through CI/CD setup

🤖 Generated with Claude Code

even-wei and others added 5 commits November 24, 2025 20:43
Replace GitHub Actions and GitLab CI/CD components with the new
recce-cloud CLI for simpler, more direct CI/CD integration.

Changes:
- Replace DataRecce/recce-cloud-cicd-action with recce-cloud upload command
- Replace GitLab component with direct CLI usage
- Remove RECCE_API_TOKEN requirements (auto-detects GITHUB_TOKEN/CI_JOB_TOKEN)
- Simplify authentication - no manual token setup needed
- Add platform-specific verification images for GitHub/GitLab CI/CD
- Update configuration examples to show CLI flags instead of component inputs

Benefits:
- Simpler setup without external dependencies
- Consistent approach across GitHub and GitLab
- Automatic platform and context detection
- Direct pip install + CLI execution

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: even-wei <evenwei@infuseai.io>
Remove unused generic setup-ci.md and setup-cd.md files that have been
replaced by platform-specific documentation in github/ and gitlab/ subdirectories.

Files removed:
- docs/7-cicd/setup-ci.md (replaced by github/setup-ci.md and gitlab/setup-ci.md)
- docs/7-cicd/setup-cd.md (replaced by github/setup-cd.md and gitlab/setup-cd.md)
- docs/assets/images/7-cicd/verify-setup-ci.png (replaced by platform-specific images)
- docs/assets/images/7-cicd/verify-setup-cd.png (replaced by platform-specific images)

These files were not referenced in mkdocs.yml navigation and contained
outdated GitHub Action-based workflows that have been superseded by
the new recce-cloud CLI approach.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: even-wei <evenwei@infuseai.io>
Standardize capitalization across documentation:
- Github -> GitHub
- Gitlab -> GitLab

Updated files:
- docs/7-cicd/ci-cd-getting-started.md
- docs/2-getting-started/start-free-with-cloud.md

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: even-wei <evenwei@infuseai.io>
Add real-world CLI output examples to help users verify their CI/CD
setup is working correctly. Shows the detailed output from
recce-cloud upload command including:

- CI environment detection (platform, PR/MR number, branches, etc.)
- Authentication method used (GITHUB_TOKEN/CI_JOB_TOKEN)
- Session creation and artifact upload progress
- Success confirmation with session ID and URLs

Examples added to:
- GitHub CI setup (PR validation)
- GitHub CD setup (production baseline)
- GitLab CI setup (MR validation)
- GitLab CD setup (production baseline)

These examples help users:
- Confirm their setup is working correctly
- Understand what information is automatically detected
- Verify authentication is working
- Get session IDs and URLs for reviewing changes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: even-wei <evenwei@infuseai.io>
Unify GitHub and GitLab CI/CD setup guides into platform-agnostic
documentation with side-by-side comparisons, reducing documentation
by ~90% while improving clarity and maintainability.

Changes:
- Merge platform-specific guides into unified setup-cd.md and setup-ci.md
- Add line numbers and syntax highlighting to all YAML examples
- Add verification screenshots for both GitHub and GitLab
- Move troubleshooting to Setup CD (logical first step)
- Relocate GitLab PAT guide to getting-started (accessible via links only)
- Update all cross-references and navigation structure

Benefits:
- 50% reduction in CI/CD documentation files (9 files → 2 files)
- Equal platform treatment with comparison tables
- Single source of truth for both platforms
- Easier maintenance and consistency

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: even-wei <evenwei@infuseai.io>
@even-wei even-wei requested a review from ijac13 December 1, 2025 08:13
Copy link
Contributor

@ijac13 ijac13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@even-wei even-wei merged commit 3204323 into main Dec 2, 2025
@even-wei even-wei deleted the feature/simplify-cicd-docs branch December 2, 2025 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants