-
Notifications
You must be signed in to change notification settings - Fork 25
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
Generate READMEs for all components using a script #484
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice :) This will save us a lot of time
Few questions:
- The defaults are not show in the argument table. Is it worth adding them (perhaps explicitly mention that those are optional) and then not showing them in the Usage section? I feel like this will show better that default arguments don't need to be passed but might be less clear
- We mention now testing but we don't have tests for every component. Can we dynamically create this segment only if we have a test for the component?
- How is this script run? is it going to be part of CI/CD or should we do it manually every time we create a component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The defaults are not show in the argument table. Is it worth adding them (perhaps explicitly mention that those are optional) and then not showing them in the Usage section? I feel like this will show better that default arguments don't need to be passed but might be less clear
I added the defaults to the table, and commented them in the Usage section. I think this makes it clear that they are not needed while still providing an example. If no default is available, I now generate the default value of the type as an example.
- We mention now testing but we don't have tests for every component. Can we dynamically create this segment only if we have a test for the component?
Done
- How is this script run? is it going to be part of CI/CD or should we do it manually every time we create a component?
I added it to pre-commit. I think that's the most logical place since it makes changes to the code.
484009f
to
c566b3b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @RobbeSneyders! I'm already a big fan of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Robbe!
This PR adds a script to generate a component README from its `fondant_component.yaml`. As a next step, I'd like to add these to the documentation.
This PR adds a script to generate a component README from its
fondant_component.yaml
.As a next step, I'd like to add these to the documentation.