poldrack / autoCV

automatic generation of CV
MIT License
127 stars 17 forks source link

separate out content download and rendering #4

Open poldrack opened 4 years ago

poldrack commented 4 years ago

Per https://twitter.com/choldgraf/status/1264941141364899840?s=20 from @choldgraf:

One thought: it might be nice to cleanly separate our the "pull my credentials from various open sources" step and the "render my cv with latex" step. They seem easily separable and the first could be used as an entry into other kinds of outputs (eg html)

poldrack commented 4 years ago

from @choldgraf: I'd think one module that does all the pulling (could just be a list of functions like "get_XXX" and one master function that calls the others and results in something structured like yaml) and one module that takes the yaml and renders as latex

effigies commented 4 years ago

I manage my CV as a git repo, and use a Makefile to render, so separating fetch and render makes sense to me, as well.

A simple CLI approach would be to keep the default as is, but allow --fetch and --render flags to direct it to only perform one component.