-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move list of extensions to external file #1640
Comments
A PoC for the external registry: |
@szkiba thanks for working on this! From what I understand, we could use this file as the source for the documentation: https://grafana.github.io/k6-extension-registry/extensions.json? @jdbaldry would it be possible for us to read that file and then feed it into a Markdown file? 🤓 |
In the meantime, things have changed, I will describe it in a new comment. I think the extension documentation should be moved outside of the k6 releases. The generation can initially be done with a simple schedule (1-2 times per day). Later, we will be able to solve the change detection and trigger the generation only when a change has occurred. |
Nice, yeah we can do this! There's a couple of ways of the top of my head that you may want to consider:
In either case, we probably need to write down what's happening somewhere. I'm happy to do that as part of any PR if you tell me where you'd like that documentation to live. |
Hi @heitortsergent , @jdbaldry , The next milestone of automated registry management has been completed. The grafana/k6-extension-registry repository contains the extension registry. The source of the registry contains the most important properties, these are supplemented by automation using the GitHub API (e.g. number of stars, versions, etc.). In the event of a change, other repositories are notified with a I think k6-docs should work similarly, i.e. a repository_dispatch event would inform about extension registry changes. The workflow downloads the registry from https://grafana.github.io/k6-extension-registry/registry.json and generates what it needs from it, and then publishes the generated extensions documentation. Will this work for you? |
Nice! Yeah I think repository dispatch with that generates changes from the registry JSON seems great to me. |
Sounds good. I added the Let me know if I can help you with anything else regarding the registry. |
Thank you for your work! I'll arrange with @heitortsergent when he's back and get something set up to generate the documentation from that registry :) |
The list of extensions available on the Explore extensions page used to be a JSON file, and we migrated it to be included as part of the versioned files with the Grafana docs move.
Those extensions aren't necessarily versioned the same way that k6 is, so we should move them to a separate place that can represent a single source of truth and then update the documentation to use that file to list them in all versions of the k6 docs.
The text was updated successfully, but these errors were encountered: