getnikola / plugins

Extra plugins for Nikola
https://plugins.getnikola.com/
MIT License
59 stars 95 forks source link

[asciidoc] cannot find dependency #247

Closed Neurrone closed 7 years ago

Neurrone commented 7 years ago

Get the following error trying to build on Windows 10, using the asciidoc-latex backend, even though the binary is on path.

> nikola build
Scanning posts..........done!
.  render_posts:cache\posts\test-post-with-math.html
[2017-09-13T20:33:21Z] ERROR: Nikola: In order to build this site (compile with asciidoc), you must install the "asciidoc" software.
[2017-09-13T20:33:21Z] ERROR: Nikola: Exiting due to missing dependencies.
# custom config
COMPILERS["asciidoc"] = ('.adoc',)

# Add asciidoc files to your POSTS, PAGES
POSTS = POSTS + (("posts/*.adoc", "posts", "post.tmpl"),)
PAGES = PAGES + (("stories/*.adoc", "posts", "post.tmpl"),)

# You can choose what command to use for processing.
# For example, you can replace asciidoc with asciidoctor
# Or use the full path to the program.
ASCIIDOC_BINARY = "asciidoctor-latex"

Also doesn't work if I just change it to asciidoctor or using the full path. Executing the command the plugin is invoking manually works.

Neurrone commented 7 years ago

Ah, it requires specifying a .bat extension on windows. Closing.