⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@llewellyn-sl
Copy link
Contributor

@llewellyn-sl llewellyn-sl commented Jan 14, 2026

Overview

Completes the CLI documentation automation system with production-ready reference documentation, navigation integration, and automated update workflow.

What's New

Documentation

  • Command Reference Landing Page (commands-reference.md) - Categorized command index with quick reference, replaces legacy commands.md
  • 18 Reference Pages - Complete command documentation with enriched descriptions, sanitized examples, and proper formatting
  • Navigation Integration - All reference pages added to Cloud and Enterprise sidebars under "Command Reference" dropdown
  • Automated Version Notices - GitHub Actions workflow injects CLI version info into overview and commands-reference pages

Automation

  • GitHub Actions Workflow - Fully automated pipeline that:
    • Extracts metadata from tower-cli releases
    • Generates reference docs with overlay merging
    • Adds CLI version notices
    • Copies to Enterprise docs
    • Creates PR with comparison report
  • Single Source of Truth - Platform Cloud is primary, Enterprise copies during automation

Maintenance

  • Comprehensive Documentation - README.md (workflow overview) and MAINTENANCE.md (operations guide)
  • Clean Codebase - Removed 99 temporary/development files
  • Backward Compatibility - Redirects for legacy /cli/commands URLs

File Changes

  • Modified: 23 files (sidebars, workflow, reference docs, redirects)
  • Deleted: 99 files (temporary folders, outdated scripts, legacy commands.md)
  • Added: 6 files (commands-reference.md, maintenance docs, enterprise reference/)

Impact

✅ All 18 CLI command groups discoverable via navigation
✅ Legacy URLs redirect to new command reference
✅ Automated updates on CLI releases
✅ Version compatibility clearly indicated
✅ Single source of truth maintained
✅ Production-ready deployment

Testing

  • Navigation links work in both Cloud and Enterprise sidebars
  • Redirects preserve legacy URLs
  • GitHub Actions workflow uses correct paths
  • Version injection logic validates
  • All reference pages render correctly
  • Examples are sanitized

What's Next

Deploy to production and test the automation with the next CLI release.

@netlify /platform-cloud/cli/commands-reference

llewellyn-sl and others added 6 commits January 14, 2026 14:56
Implements automated CLI reference documentation generation using the overlay pattern:
- Scripts to generate docs from tower-cli metadata
- GitHub Actions workflows for automated updates on CLI releases
- Directory structure for overlays (manual content) and reference (auto-generated)
- Sample overlay templates for main commands and subcommands

Structure:
- cli/scripts/: Python scripts for doc generation and comparison
- cli/overlays/: Manual examples and guides (merged with generated docs)
- cli/reference/: Auto-generated command reference (one file per main command)
- cli/metadata/: Versioned CLI metadata snapshots
- .github/workflows/: Automation workflows (dispatch and scheduled check)

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Updates:
- Use hierarchy field from metadata (pre-built command tree)
- Handle both 'children' and 'subcommands' fields
- Filter out string class name references
- Add overlay support for standalone commands
- Fix sample overlay to match actual CLI structure (tw launch, not tw pipelines launch)
- Add .gitignore for large metadata files

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Auto-generated documentation for 18 CLI commands from tower-cli metadata.
Includes manual overlay content for pipelines and launch commands.

Structure:
- One markdown file per main command
- All subcommands included as sections within each file
- Manual examples and guides merged from overlays/

Commands documented:
actions, collaborators, compute-envs, credentials, data-links, datasets,
info, labels, launch, members, organizations, participants, pipelines,
runs, secrets, studios, teams, workspaces

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
…ce docs

Major improvements:
- Created extract-overlays.py script to extract 77 overlay files from existing commands.md
- Extracted overlays preserve rich content: examples with output, admonitions, cross-references, "This command will:" sections
- Updated generate-cli-docs.py to support better overlay matching (both .md and -examples.md patterns)
- Created fix-reference-docs.py to add periods to descriptions and fix relative links
- Removed Synopsis headings from generated docs for cleaner format

Generated reference docs now include:
✓ Real command examples with actual output
✓ Contextual explanations and prerequisites
✓ Admonitions (:::note, :::tip) with platform-specific guidance
✓ Cross-references to other documentation pages
✓ "This command will:" explanatory sections for complex commands
✓ Help command references
✓ Run state explanations and workflows

Total: 3,433 lines of rich documentation across 18 command reference pages

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@llewellyn-sl llewellyn-sl marked this pull request as draft January 14, 2026 19:33
@netlify
Copy link

netlify bot commented Jan 14, 2026

Deploy Preview for seqera-docs ready!

Name Link
🔨 Latest commit 5b6064d
🔍 Latest deploy log https://app.netlify.com/projects/seqera-docs/deploys/696932a175333f04d54eac7e
😎 Deploy Preview https://deploy-preview-1013--seqera-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Add Command Reference landing page with navigation structure
- Integrate 18 reference pages into Cloud and Enterprise sidebars
- Update GitHub Actions workflow to inject CLI version info
- Add redirects for legacy /cli/commands URLs
- Clean up temporary files and outdated scripts
- Document single source of truth strategy
- Update maintenance documentation

Changes:
- New: commands-reference.md landing page (Cloud & Enterprise)
- New: Complete reference navigation in both sidebars
- New: Automated CLI version notices in docs
- New: Comprehensive maintenance guides (README.md, MAINTENANCE.md)
- Updated: GitHub Actions workflow with correct paths and version injection
- Updated: Redirects for backward compatibility
- Deleted: 99 temporary/development files
- Deleted: Legacy commands.md (replaced by commands-reference.md)

Ready for production deployment.
@llewellyn-sl llewellyn-sl self-assigned this Jan 15, 2026
MDX was evaluating ${} as JavaScript template literals, breaking the build.

Changes:
- Remove ${} wrappers from environment variables (TOWER_WORKSPACE_ID)
- Replace ${COMPLETION-CANDIDATES} with actual status values:
  - launch.md: SUBMITTED, RUNNING, SUCCEEDED, FAILED, CANCELLED
  - pipelines.md: OWNER, MEMBER, COLLABORATOR
  - studios.md: STARTING, RUNNING, STOPPED, STOPPING

Fixes Netlify deployment errors and local dev server issues.
@llewellyn-sl llewellyn-sl marked this pull request as ready for review January 16, 2026 16:23
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.

2 participants