Closed jag3773 closed 8 years ago
Probably should be even more specific, such as obs_md2html, obs_json2html (just an example...for tW we have it as a json), and then obs_html2pdf.
Then we should also have a package that handles the full conversion, e.g. obs_conv.py, which takes and input and output file and knows what to do based on the file extensions, kind of like pandoc does.
Will each converter/package expect file(s) for input and output a file, or should we do what USFM-Tools does where you can import the transform.py file and call the transform.singeHtmlRenderer() method with the content already loaded in memory and get a string back? Then we don't have to keep making files, such as .md -> obs.html -> obs.pdf but just .md -> obs.pdf?
I'm beginning to record the spec in https://github.com/unfoldingWord-dev/door43.org/wiki/tX-Development-Architecture.
After the proposal is accepted, there are code samples at https://developers.zamzar.com/docs which could pretty easily be modified to provide examples.
Story
As a developer I need to know the layout of the tX code architecture for Door43 so that I can contribute.
Notes
I see a few options, but maybe there are others too?
pip
).requirements.txt
file and conversion script would import them as 3rd party modules.apex
to do these deployments.Although option 2 is enticing, it does box us into Python unnecessarily (Lambda supports other types of code too). Perhaps going with option 3 would allow the most amount of flexibility going forward.