chore/ci/docs: detect outdated TS API reference#824
Merged
mateuszlampert merged 31 commits intomainfrom Feb 24, 2026
Merged
Conversation
959a34e to
0d06e5b
Compare
Member
|
@mateuszlampert should CI for generated documentation fail? |
Contributor
Author
|
@msluszniak oh, I forgot to change script name for prettier in the workflow code - now it's fixed and all tests passed :) |
msluszniak
reviewed
Feb 23, 2026
Member
msluszniak
left a comment
There was a problem hiding this comment.
@chmjkb I saw that the only files that contain real changes are the ones related to image segmentation. Could you check if these are correct?
This comment was marked as resolved.
This comment was marked as resolved.
msluszniak
approved these changes
Feb 24, 2026
chmjkb
approved these changes
Feb 24, 2026
Collaborator
chmjkb
left a comment
There was a problem hiding this comment.
the image segmentation reference looks good 👍🏻
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
This PR necessary scripts and CI workflows to handle autogenerated API-reference docs. Currently, any change to the Typescript API changes all references files because SHA in urls changes - as a result PRs are hard to review and some bugs/discrepancies in docs can be merged more easily.
This PR:
mainbranch instead of specific SHAs and so external references are excludedmainoccurences in reference URLs to appropriate SHAs (we want to truncate the history there and point to specific point in history instead ofmainbranch)Introduces a breaking change?
Type of change
Tested on
N/A
Testing instructions
1. Script for building specific version of docs
Run:
cd docs yarn docs:version 0.8.xand verify if
mainwas changed to valid SHA in all reference urls (so urls for specific version are truncated to some point in history instead of latest main)2. Github Action for detecting outdated api reference
Check results of actions for commits 7133ca4 and 2a4247c:
Check if API reference is up-to-dateworkflow failedCheck if API reference is up-to-dateworkflow succeeded3. Start docs locally and check if everything (exceptionally API-reference) works
Screenshots
Related issues
#790
Checklist
Additional notes