jgrassler / mkdocs-pandoc

[unmaintained] mkdocs -> pandoc converter: use this fork https://github.com/twardoch/mkdocs-combine
Apache License 2.0
107 stars 39 forks source link

mkdocs2pandoc gives no output #3

Closed dagerber closed 8 years ago

dagerber commented 8 years ago

mkdocs2pandoc gives no output an no error message.

Would be great, if you could add some logging, possibly a '-v' switch

sudo aptitude install fonts-lmodern lmodern pandoc texlive-base texlive-latex-extra texlive-fonts-recommended texlive-latex-recommended texlive-xetex

cd /home/xxxx/temp
virtualenv .
pip install mkdocs-pandoc
cd <dir-containing-mkdocs.yml>
/home/xxxx/temp/py/bin/mkdocs2pandoc
/home/xxxx/temp/py/bin/mkdocs2pandoc -f mkdocs.yml > file

No output...

jgrassler commented 8 years ago

Thanks for catching this!

Looks like this appeared in 0.2.2, with the Python 3 compatibility code being the likely culprit. I shouldn't have tested it with just the -o option (which worked fine). For now you can use one of the following two workarounds:

dagerber commented 8 years ago

Works like a charm. Thanks for your valuable work!

jgrassler commented 8 years ago

I'm glad the workaround works for you, but I'll leave this open nonetheless if you don't mind, since I'd rather fix this for all use cases including the one that didn't work for you :-)

jgrassler commented 8 years ago

Fixed in https://github.com/jgrassler/mkdocs-pandoc/commit/abe0f268187da76958d804e3f9fd066d496b426c. This is the basis for the new release 0.2.3.