toyboot4e / adbook

Dead-simple SSG powered by Asciidoctor
https://toyboot4e.github.io/adbook/
MIT License
7 stars 2 forks source link

Does not work on windows #8

Closed Mazwak closed 2 years ago

Mazwak commented 2 years ago

I created the scaffold and tried to build it, but it fails.

I think the source_file is too much escaped. And most likely source_dir too. It is both quoted and double bachslashed.

2 errors while building the book:
- when running `asciidoctor`:
  src: \\?\S:\Rust\toto\src\index.adoc
  dst: \\?\S:\Rust\toto\.adbook-cache\b\index.html
  cmd: "asciidoctor" "\\\\?\\S:\\Rust\\toto\\src\\index.adoc" "-o" "-" "-r" "asciidoctor-diagram" "--trace" "--verbose" "-B" "\\\\?\\S:\\Rust\\toto\\src" "-a" "hbs@=theme/hbs/article.hbs" "-a" "linkcss" "-a" "stylesdir@=/theme/css" "-a" "stylesheet@=article.css" "-a" "imagesdir@=/static/img" "-a" "imagesoutdir@=\\\\?\\S:\\Rust\\toto\\src/static/img" "-a" "hardbreaks" "-a" "sectnums" "-a" "sectnumlevels@=2" "-a" "tabside@=4" "-a" "experimental" "-a" "stem@=latexmath" "-a" "icons@=font" "-a" "adbook=https://github.com/toyboot4e/adbook[adbook]" "-a" "rust=https://www.rust-lang.org/[Rust]" "-a" "asciidoctor=https://asciidoctor.org/[Asciidoctor]" "-a" "mdbook=https://github.com/rust-lang/mdBook[mdBook]" "-a" "handlebars=https://handlebarsjs.com/[Handlebars]" "-a" "prismjs=https://prismjs.com/[Prism.js]" "--embedded"

I could not find how to remove either quotes or backslashes.

toyboot4e commented 2 years ago

Thanks, will take a look this weekend on Windows!

toyboot4e commented 2 years ago

Fixes so far:

Right now adbook is still broken, but I'll soon fix it.