Skip to content

Simplify docs URL to use consistent raw GitHub link#210

Merged
jancurn merged 1 commit intomainfrom
claude/update-help-docs-link-fBTni
Apr 29, 2026
Merged

Simplify docs URL to use consistent raw GitHub link#210
jancurn merged 1 commit intomainfrom
claude/update-help-docs-link-fBTni

Conversation

@jancurn
Copy link
Copy Markdown
Member

@jancurn jancurn commented Apr 28, 2026

Summary

Unified the documentation URL handling to always use the raw GitHub content link, removing the conditional logic that previously served different URLs based on whether the output was a TTY.

Key Changes

  • Removed TTY detection logic that conditionally served either the GitHub UI tree view or raw Markdown URL
  • Replaced with a single, consistent raw GitHub content URL format using the raw/refs/tags path
  • Simplifies the codebase by eliminating the branching logic while maintaining access to documentation for both interactive and non-interactive use cases

Implementation Details

The new URL format (https://github.com/apify/mcpc/raw/refs/tags/v${mcpcVersion}/README.md) provides direct access to the raw Markdown file and works reliably across different contexts (AI agents, pipes, and human users), eliminating the need for environment-specific URL selection.

https://claude.ai/code/session_01UrgrTcgdKAv1H2zXe4DYzk

Use the GitHub raw URL for both TTY and non-TTY output so the docs
link can be fetched directly as Markdown by AI agents.
@jancurn jancurn merged commit 2b1db3c into main Apr 29, 2026
6 checks passed
@jancurn jancurn deleted the claude/update-help-docs-link-fBTni branch April 29, 2026 16:04
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