Suggestion: Generate a PDF file containing the ToC and contents of this repo
dlight opened this issue · 4 comments
Is there a way to generate a PDF with the entire content outlined in the table of contents?
Not currently, but that's sounds like a good idea. Do you know of any tools that would do that?
I would use pandoc. For a quick PoC, this SO answer says you can use multiple Markdown files with something like
pandoc table-of-contents.md src/ReadMe.md src/*/*.md -o learn-halogen.pdf
But I've not tried it.
Note: the same solution could be applied to your other Purescript resource, purescript-jordans-reference
I tried it out using this command:
pandoc --toc --top-level-division=chapter --eol=lf --self-contained --tab-stop=2 -o ./pandoc/output.pdf --extract-media=pandoc/media -T Title ReadMe.md src/**/*.md
It extracts the text of the markdown files, but the margins of the resulting PDF file are too large in some areas. I wasn't able to determine how to get the SVG files to be included. Also, since the code isn't included, some of the "chapters" themselves are seemingly pointless.
Closing this since no one else has made any comments on this recently and I'm still not sure how to include the PS source code in the resulting output.