-
Notifications
You must be signed in to change notification settings - Fork 577
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
Idea: TekDoc tool, similar to godoc #7
Comments
oooo that sounds super sweet |
that would be really good ! auto-generated on an url like https://catalog.tekton.dev 😍 |
Been talking with @imjasonh and @wlynch and a great first step (ignore what I put in the description!) for this would be a command line tool that can generate some markdown from the existing description fields. For example given these input params: catalog/buildpacks/buildpacks-v3.yaml Lines 6 to 21 in 1b3ceee
We would want to generate this markdown: https://github.com/tektoncd/catalog/tree/master/buildpacks#parameters |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/remove-lifecycle rotten |
@vdemeester: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@vdemeester now that we've got the hub, do you think this tool still makes sense? |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
/remove-lifecycle stale |
I found this as I was looking for something like what @bobcatfish mentioned. AFAICT, Hub would simply display the README file for the task. Would it be possible to have the Hub provide the technicals (parameters, outputs, workspaces, etc)? The README could then be less structured data and instead be more helpful information like samples, community links, etc. |
@jromero right, that would be something to bring to the @tektoncd/hub-maintainers team, but I tend to agree yes. It might even be on the hub roadmap 😉 |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Desired state
godoc hosts documentation for go projects. It finds these projects (scrapes them? not sure!) and looks for docstrings in the required format and uses that to generate (and i guess maintain? it must poll for changes) documentation, for example [this is some godoc generated docs for a function in tekton pipelines](https://godoc.org/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1#ApplyArrayReplacements, specifically this function.
What we would like is to be able to run an host a similar tool, maybe called TekDoc, that would show us for all the
Pipelines
andTasks
in tektoncd/catalog:More requirements
(note we dont need to meet all of these right away, we can start with something super simple and iterate!)
Pipelines
andTasks
only.Current state
params
but not for Pipelines and Tasks themselves, and not for the PipelineResources that they usePossible plan of attack
I tried to break it up into a few milestones, but some of it could happen in parallel!
[ Milestone 1: add the necessary info to the types ]
Suggestion: assume markdown format for contents of descriptions
[ Milestone 2: create service and/or library that scrapes catalog info]
For this bit it would probably be good to understand how godoc scrapes & polls!
The idea is that the webserver in milestone 3 will use this, but we can develop and test it without needing to have the whole webserver completed.
[ Milestone 3: create webserver ]
We can probably just pick any ol' webserver, but we'd want to make sure we can deploy and run it in a container. Would be great if the webserver we chose could automatically emit metrics to let us know if its up and running and if there are any errors.
Additional info
Original description
We could automatically generate interface documentation for the Tasks/Pipelines in this repository from the input and output parameters, and display this usage documentation nicely!
The text was updated successfully, but these errors were encountered: