toyboot4e / adbook Goto Github PK
View Code? Open in Web Editor NEWDead-simple SSG powered by Asciidoctor
Home Page: https://toyboot4e.github.io/adbook/
License: MIT License
Dead-simple SSG powered by Asciidoctor
Home Page: https://toyboot4e.github.io/adbook/
License: MIT License
More?
Line 70 in 62b0047
If I use a diagram, it does not work.
The diagram is created in 'src/static/img', but it is not moved/copied to 'site'.
It might be a bigger issue. It seems nothing is copied from static.
I also think that there should be 2 dirs :
and diagrams should go in a temp dir, like .adbook-cache.
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.
Use two step cache:
Items in the botto of the sidebar can't be seen. term.css
needs to be fixed
I tried to use adbook, but it does not install.
I’m using rust 1.57.0.
I also cloned the repo, but it fails too.
There are many errors, but it’s just a few repeated :
error: cannot find derive macro `Parser` in this scope
--> src\cli.rs:33:10
|
33 | #[derive(Parser, Debug)]
| ^^^^^^
|
note: `Parser` is imported here, but it is only a trait, without a derive macro
--> src\cli.rs:27:5
|
27 | use clap::Parser;
| ^^^^^^^^^^^^
error: cannot find attribute `clap` in this scope
--> src\cli.rs:34:3
|
34 | #[clap(name = "adbook is a simple SSG powered by asciidoctor")]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
A problem with clap. It just needs the « derive » feature in cargo.toml.
A confusion for the compiler between the various « Ok ».
If asciidoctor is not installed, the error message does not say so.
It just says "x errors while building the book:", without outputting the actual error.
Like "command not found"
I was converting the same file twice. I fixed it other than cache updates, so wil fix it today.
Prefer to use buffer, avoid I/O
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.