sinaatalay / rendercv

The engine of the RenderCV App
http://rendercv.com
MIT License
1.87k stars 132 forks source link

Filter on content or sections #164

Open akib1689 opened 1 month ago

akib1689 commented 1 month ago

Discussed in https://github.com/sinaatalay/rendercv/discussions/163

Originally posted by akib1689 on August 29, 2024


I don't know if I'm missing something or not. It would be great if we could hide/include some of the sections from the YAML file.

My Use Case:

I apply for 2-3 roles, and each time I need to manually comment/uncomment the relevant portion of the YAML file. It would be very useful if we had something like a tag in each item.

[!NOTE] Each section will have some tags. For example, one of my skill rows should be included for DevOps-related jobs but not for developer-related jobs. It would be really helpful to set a match tag from the command line, say "devops," and each node that has the tag "devops" would be included in that particular render of the CV. By default, it would include all the contents.

The implementation can be flexible. But here I'm providing one way to implement:

akib1689 commented 1 month ago

I think we should discuss how do implement this section. Here is my proposal:

rendercv_settings:
  cli_options: # might be called render options also
    dont_generate_png: true
    # ... other cli options to implement
  versions:
    # array of different version
    - label1:
      include:
        labels: label1  # parses all the contents and its sub contents labled devops only.
sinaatalay commented 1 month ago

The cv field of the YAML input file should be used only for content-writing purposes. Whatever is in there should be the stuff that is meant to be printed in the PDF. What about something like this?

rendercv_settings:
  hidden_sections:
    - Publications