Skip to content

Conversation

@joalves
Copy link
Collaborator

@joalves joalves commented Jan 27, 2026

Merge latest development changes including redirect improvements

Summary by CodeRabbit

  • Documentation

    • Removed legacy SDK API documentation pages from the documentation site.
  • Improvements

    • Enhanced URL path handling with case-insensitive support to improve navigation reliability.
    • Restructured redirect rules with pattern-based routing for better coverage of path variations.

✏️ Tip: You can customize this high-level summary in your review settings.

…hing (#246)

* feat: improve redirects with splat patterns and case-insensitive matching

- Consolidate server redirects using Netlify splat patterns (~75 rules vs 169)
- Make anchor redirects case-insensitive to avoid duplication
- Add anchor redirects for pages with changed section headings
- Remove case-only redirects that could cause infinite loops
- Update test script with comprehensive redirect tests

* fix: remove duplicate SDK-API directory from old location

The files were incorrectly copied instead of renamed during a previous
merge. Removing the old docs/SDK-API/ directory so redirects work properly.
Files already exist in docs/APIs-and-SDKs/SDK-API/.

* fix: add explicit base path redirects for splat patterns

Splat patterns (/*) don't match bare paths without trailing slash.
Added explicit redirects for:
- /docs/SDK-Documentation and /docs/SDK-Documentation/Advanced
- /docs/sdk-documentation and /docs/sdk-documentation/advanced
- /docs/Examples and /docs/examples
- /docs/API, /docs/sdk-api, /docs/SDK-API
- /docs/web-console-api and /docs/Web-Console-API
@joalves joalves merged commit 3e2ed27 into master Jan 27, 2026
2 checks passed
@coderabbitai
Copy link

coderabbitai bot commented Jan 27, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

This PR removes multiple API documentation pages from the SDK-API directory (including collector API info, health check, context operations, and experiment endpoints) and deletes the associated sidebar configuration. Simultaneously, it restructures redirect handling by introducing case-insensitive path normalisation in anchorRedirects.ts, replacing explicit redirect mappings with splat-based patterns in _redirects, and substantially expanding the test suite with request throttling, improved logging, and comprehensive test coverage across server redirects and anchor preservation scenarios.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~50 minutes

Possibly related PRs

Suggested reviewers

  • bmsilva
  • mario-silva
  • marcio-absmartly
  • calthejuggler

Poem

🐰 With docs removed and redirects refined,
Case-insensitive paths, now aligned,
Splat patterns bloom where mappings were tight,
Tests throttled and expanded, shining bright—
The SDK docs vanish, redirects take flight! ✨

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@netlify
Copy link

netlify bot commented Jan 27, 2026

Deploy Preview for absmartly-docs ready!

Name Link
🔨 Latest commit 7fc4082
🔍 Latest deploy log https://app.netlify.com/projects/absmartly-docs/deploys/69790c283ab1b0000835f5af
😎 Deploy Preview https://deploy-preview-247--absmartly-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.

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