Skip to content

Conversation

@dbrian57
Copy link
Contributor

@dbrian57 dbrian57 commented Jan 14, 2026

Description

Currently, the links to the source code link that send readers to the code in the Weave SDK are 404ing. This hopefully corrects that. It also make the source links a button instead of an image that does a weird zoom animation.

@dbrian57 dbrian57 requested a review from a team as a code owner January 14, 2026 21:37
lazydocs generates <img ... > (no self-closing slash) but the regex
expected <img ... />. Updated pattern to handle both formats with /?>
- Create compact SourceLink component matching GitHubLink styling
- Add CSS for .source-link class (compact button style)
- Update generation script to use <SourceLink url=... /> component
@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

📚 Mintlify Preview Links

🔗 View Full Preview

✨ Added (1 total)

📄 Pages (1)

File Preview
snippets/en/_includes/source-link.mdx Source Link

📝 Changed (1 total)

⚙️ Other (1)
File
snippets/button-links.css

🤖 Generated automatically when Mintlify deployment succeeds
📍 Deployment: a888e32 at 2026-01-16 21:24:44 UTC

@github-actions
Copy link
Contributor

🔗 Link Checker Results

All links are valid!

No broken links were detected in the changed files.

Tip

Redirects detected: If you see redirects for internal docs.wandb.ai links, check if they have trailing slashes.

Mintlify automatically removes trailing slashes, causing redirects like:

  • https://docs.wandb.ai/models/https://docs.wandb.ai/models

Fix: Remove trailing slashes from links to avoid unnecessary redirects.

@dbrian57 dbrian57 merged commit b8a06e9 into main Jan 16, 2026
10 checks passed
@dbrian57 dbrian57 deleted the weave/ref-source-link-fix branch January 16, 2026 21:32
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