Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate epub on Ubuntu. #1502

Open
sysescool opened this issue Jan 7, 2025 · 0 comments
Open

Generate epub on Ubuntu. #1502

sysescool opened this issue Jan 7, 2025 · 0 comments

Comments

@sysescool
Copy link

Install rust:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Init rust env

source ~/.bashrc
cargo install mdbook
cargo install mdbook-epub

The mdbook build-time needs to connect github, I use proxy:

export https_proxy=http://xxxx:xx
export http_proxy=http://xxxx:xx

Then clone

git clone https://github.com/sunface/rust-course.git
cd rust-course

Add below content to the end of book.toml and save it.
This will use mdbook-epub as render backend.

[output.epub]

Then run:

RUST_LOG=debug mdbook build

With RUST_LOG=debug, there will be some logs and you can solve the stuck or error.

And the book will gnerate at rust-course/book/epub dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant