Skip to content

Conversation

@theletterf
Copy link
Collaborator

Fixes #7

This adds src/versionsCache.ts, which downloads and caches https://raw.githubusercontent.com/elastic/docs-builder/main/config/versions.yml. The file is parsed to provide subs validation and autocomplete for all available versions, resolving YAML anchors automatically.

I've also added an command to manually retrieve the versions.yml file without having to wait for the cache to expire or reload the IDE. Along the way I made some performance and exception handling improvements.

Screenshot 2025-10-22 at 12 25 16 Screenshot 2025-10-22 at 12 25 34 Screenshot 2025-10-22 at 12 25 48

Co-authored by Claude Sonnet 4.5 using Claude Code 2.0

@theletterf theletterf self-assigned this Oct 22, 2025
@theletterf theletterf added the enhancement New feature or request label Oct 22, 2025
@theletterf
Copy link
Collaborator Author

@colleenmcginnis Could you have a look at this PR when you've some spare time? Not urgent! Thank you!

@theletterf theletterf requested a review from Mpdreamz October 30, 2025 11:18
@theletterf
Copy link
Collaborator Author

Solved conflicts to make this feature compatible with the web version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retrieve versions metadata from docs-builder

2 participants