Skip to content

Simplify README usage - #120

Merged
dblock merged 1 commit into
dblock/ruby-gem-releasefrom
dblock/simplify-docs
Nov 24, 2026
Merged

dblock merged 1 commit into
dblock/ruby-gem-releasefrom
dblock/simplify-docs

Conversation

@dblock

@dblock dblock commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Simplifies the Markdown docs, mainly README Usage. Stacked on #119.

  • README. Usage is now a short quick start: get a token, make requests, paginate, handle errors, and a link to the full reference. The README goes from 1,180 to 241 lines. The intro sentence is shorter, and Contributing links CONTRIBUTING, CHANGELOG, UPGRADING and RELEASING.
  • docs/USAGE.md has the complete API reference moved from the README: all endpoints, pagination, OAuth, webhooks, rate limits and errors. Headings are one level up, relative links are updated, and the TOC is generated with danger-toc. Content is otherwise unchanged.
  • Danger now checks both TOCs with toc.files = ['README.md', 'docs/USAGE.md'].
  • Links fixed. The UPGRADING link now points to docs/USAGE.md#create-an-activity. Three links that were already broken now point to real files: models/segment.rb (now summary_segment.rb), errors/upload_failed_error.rb (now upload_error.rb) and /bin/strava-oauth-token.
  • CONTRIBUTING. The token instructions are shorter and no longer link to a missing anchor. The RuboCop command uses gemfiles/rubocop.gemfile. "Write Documentation" now mentions docs/USAGE.md.

The quick start examples use values from the specs: TCS NYC Marathon 2018, 26.26mi and fifteen_minutes_remaining 590.

Validation

  • danger-toc MarkdownFile#good? passes for README.md and docs/USAGE.md.
  • Every relative file link and anchor in README, docs/USAGE.md, UPGRADING, CONTRIBUTING and RELEASING resolves.
  • bundle exec rake spec (351 examples, 0 failures) and RuboCop (no offenses) still pass.

This PR was written by an AI (Claude) acting on behalf of @dblock.

🤖 Generated with Claude Code

https://claude.ai/code/session_011Gr21k7MEtkJHgmg5FvBEm

Replace the README usage reference with a short quick start for getting a
token, making requests, paginating and handling errors, and move the full
API reference, including OAuth, webhooks, rate limits and errors, to
docs/USAGE.md. Fix broken links, check both TOCs with Danger, and simplify
token and RuboCop instructions in CONTRIBUTING.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Gr21k7MEtkJHgmg5FvBEm
@dblock
dblock added this pull request to stack #121 November 24, 2026 21:16
@github-actions

Copy link
Copy Markdown
Contributor

Danger Report

No issues found.

View run

@dblock
dblock merged commit 4ea84ab into master Nov 24, 2026
15 checks passed
@dblock
dblock deleted the dblock/simplify-docs branch November 24, 2026 21:54
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.

1 participant