jojomi / docker-hugo

Docker image for hugo static page generator (https://gohugo.io)
https://hub.docker.com/r/jojomi/hugo
MIT License
250 stars 94 forks source link

Is there any recommended way to use Pandoc with docker-hugo? #43

Open elmehalawi opened 6 years ago

elmehalawi commented 6 years ago

According to this, it seems that hugo can "shell out" to the pandoc command to get it to process markdown files whose extension is ".pandoc" or ".pdc".

Is it possible to get this working with docker? Should pandoc be installed alongside hugo, or should it be another image and then maybe mount the pandoc executable from the other image onto a directory in the PATH within the docker-hugo image?

jojomi commented 6 years ago

I think I would include pandoc in the same image for ease of use.

Since this is not the most common use case (am I wrong?) I would suggest you create your own Dockerfile and use the FROM directive to base it on this one. Then you would add the pandoc package and you should be good to go.

If you decide to do this, please report about your success, so that others can profit too :). Thank you! If you have further questions or comments, please add them here too!