Lychee improvements and a script to fix anchors in translated content#2154
Open
mdlinville wants to merge 5 commits intomainfrom
Open
Lychee improvements and a script to fix anchors in translated content#2154mdlinville wants to merge 5 commits intomainfrom
mdlinville wants to merge 5 commits intomainfrom
Conversation
Contributor
📚 Mintlify Preview Links✨ Added (1 total)📄 Pages (1)
📝 Changed (167 total)📄 Pages (167)
🤖 Generated automatically when Mintlify deployment succeeds |
Contributor
🔗 Link Checker Results✅ All links are valid! No broken links were detected. Checked against: https://wb-21fd5541-lychee-improvements.mintlify.app |
dbrian57
reviewed
Feb 17, 2026
| You can also [compare](/weave/guides/tools/comparison) and visualize the monitor's trace data in the Weave UI, or download it in various formats (such as CSV and JSON) using the download button (<Icon icon="download" iconType="regular" />) in the Traces tab. | ||
|
|
||
| Weave automatically stores all scorer results in the [Call](/weave/concepts/fundamental-components#calls) object's `feedback` field. | ||
| Weave automatically stores all scorer results in the [Call](/weave/guides/tracking/tracing#calls) object's `feedback` field. |
5a0a4ef to
461a6f3
Compare
- Remove 'include' since it changes how 'exclude' behaves. The 'scheme' key is sufficient. - Improve regex to match W&B prod URLs - Add regex to exclude 'mintlify.app' preview URLs since those links are checked by 'mint validate'
Mintlify composes heading slugs algorithmically from the heading title, in both Markdown and HTML headings. There is no support for setting the heading slug manually, even by setting id on a HTML heading. This means that translated content will have different slugs than the English content, which will break anchor-level links in translated content. This script syncs deep links in translated content with the translated headings. A translator would run it toward the end of the translation refresh, perhaps just before creating the PR. - Full docs are in the README - Extracting and rewriting are handled separately - Supports dry-run and verbose modes - Supports operating on a specific translation or a specific file or all translations
461a6f3 to
2522fbc
Compare
6a7c22a to
ad87cfe
Compare
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Improve Lychee config
includesince it turns off howexcluderegex matcing (!).The 'scheme' key is sufficient.mintlify.apppreview URLs since those links are checked bymint validateand causemint devto failFix broken Weave link discovered in the process
Fix newly-broken anchors in localized content after recent Translation refresh.
Mintlify composes heading slugs algorithmically from the heading title, in both Markdown and HTML headings. There is no support for setting the heading slug manually, even by setting
idon a HTML heading. This means that translated content will have different slugs than the English content, which will break anchor-level links in translated content.This script syncs deep links in translated content with the translated headings. A translator would run it toward the end of the translation refresh, perhaps just before creating the PR.
- Full docs are in the README
- Extracting and rewriting are handled separately
- Supports dry-run and verbose modes
- Supports operating on a specific translationor a specific file or all translations
Run the script to validate the functionality. I first ran it in dry-run mode, then ran it for real and committed the result.
mint broken-linksreports:found 1765 broken links in 512 files(See https://github.com/wandb/docs/actions/runs/22117148644/job/63928073034#step:8:39)mint broken-linksreports:success no broken links found(See https://github.com/wandb/docs/actions/runs/22160011726/job/64074066310#step:8:192)Testing
localhost:3000.mint dev) (validates the Weave fix)mint broken-links)