wsargent/docker-cheat-sheet

Printing out cheat sheet

ShashankaNataraj opened this issue · 7 comments

I have this cheat sheet on my cubicle wall

img_20170118_145914 1
Thanks for this!

@ambatigan Copy paste the .md file into a word document and print away!

Or, you could use : http://www.markdowntopdf.com/

How can i get that .md (markdown you meant) file? Btw, i see it as an image....

Depending on your operating system you can easily "print" the page to a pdf file. It's built-in on OS X and most Linux distributions, and for Windows there are plenty of free tools. It's easy to setup.

Here is a little cheat sheet on how to convert .md to .pdf using Docker

git clone https://github.com/wsargent/docker-cheat-sheet
cd docker-cheat-sheet

# start image
docker run --rm -ti -v "$PWD:/cheat" ubuntu bash

# install toolchain
apt-get update && apt-get -y install pandoc texlive-xetex

# generate pdf
cd /cheat 
pandoc --output book.html README.md
pandoc --output book.pdf book.html

# stop image
exit

# open book.pdf in your PDF Viewer

I recently did a similar work for my project which converts .md to book quality .pdf.

I had make this PDF from the ReadMe.md File with my pandoc Config. This PDF have syntax highlighting, but it is only Version 1.0. If anyone wish an Update, this person can text with an update suggestion.
README.pdf