-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
feat: Added the rendercv_settings
block
#166
Conversation
Now no error is thrown from the terminal when used the block `rendercv_settings`. Though the functionality of the code block provided in the data model is not yet utilized.
This commit adds the `no_html` and `no_png` options to the `rendercv_settings` block in the `John_Doe_ClassicTheme_CV.yaml` file. These options allow the user to control whether the HTML and PNG files will be generated during the rendering process. The default values are set to `true` for `no_html` and `false` for `no_png`.
This commit refactors the code in `cli_command_render` to improve the handling of the output directory. The previous implementation used a hardcoded path, which has been replaced with a dynamic path based on the `output_folder_name` provided in the `rendercv_settings`. This change allows users to specify a custom output directory for the rendered files.
feat: Added render cv settings
Thanks a lot for your great work! It looks really good. I've included some comments. I'm quite tied up these days, so I might not be able to respond immediately, but I'll get back to you as soon as I can. |
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.
When everything is all set, we need to write tests for every function created. Overriding the settings from YAML with CLI should be tested, too.
I'll Use the comments as check-boxes and resolve them as I implement them. Is it okay? Once I resolve all the comments I'll use the ready for review. |
@sinaatalay Can you please review the changes now? I think most of the issue is resolved. and after your answer on the unresolved comments. I'll update and make the pr final. |
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.
Thank you! I have made a few more comments; then it will be ready. But we need tests. If you don't want to implement tests, I can do that too. If you want to work on it, let me know.
synced upstream
…neration This commit updates the `rendercv_settings` in the `John_Doe_ClassicTheme_CV.yaml` file to allow disabling the generation of HTML and PNG files. The `no_html` and `no_png` flags are set to `true` in the `render` section of the settings. This change provides more flexibility to users who may not need these file formats in their rendered output.
It would be very helpful. If you can implement testing as I'm not familiar with testing tools used in this project. But I'll surely can do documentation. All the change is implemented now. Only the documentation is remaining. |
refactor: Added the changes for the pull request
Let me know when you have finished the pull request following our last discussion. |
This commit adds the `rendercv_settings` field to the YAML input file structure in the and the `rendercv_settings.md` describing the reference of the file.
Update the documentation
@sinaatalay Please review the documentation. and overall code structure. I think the pull request is ready for merging now. |
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.
Thank you for your work! This is the most comprehensive contribution so far.
As discussed in #146, A new block named
rendercv_settings
is added.Usage of this block:
Each and every property in this block is direct equivalent implementation of the cli option.
fixes: #146