Open tclune opened 1 year ago
Hi Tom, great to hear you've switched over to FORD!
I can think of a few ways to do this, with differing levels of difficulty and prettiness, for want of a better word:
If you are able to have a play with pandoc and decide it works well enough, we could add that as an option to FORD somehow. That's probably the most expedient way to do this.
Adding @mathomp4 and @JulesKouatchou to monitor/comment this issue. @JulesKouatchou has the lead in overhauling our documentation and will work with Pandoc to see what it generates.
If you have a small enough project (or enough memory) you can get a very crude pdf by doing
pandoc $(find docs/html/ -name '*.html') -s -t pdf -o docs.pdf
where docs/html
is the path to your generated site. Links don't work (they still point to the html) and there is no attempt to deal with long code lines which go off the edge of the page in verbatim blocks. I suspect we would need to provide a pandoc filter to fix the links issue and we may also want a custom tex template to help out of the box appearance.
We have successfully sold our organization's management to switch over to FORD for our documentation, but there were several emphatic requests that they asked us to pursue.
The first, but possibly not the most important concern, was the lack of ability to produce a simple PDF document. Partly this just a matter of waiting for the previous generation to retire, but there are legitimate times still when we might want to produce a formal report for archiving where a PDF is a more natural fit.
How much trouble would it be to have an option to generate a pdf document? We'd hope for at least some hyperlinks to survive, of course.