Skip to content

Commit

Permalink
v0.1.8
Browse files Browse the repository at this point in the history
Revert "Temporary use mdbook-pdf-headless_chrome"
This reverts commit 7250bba.

Fix clippy warning

Signed-off-by: Songlin Jiang <[email protected]>
  • Loading branch information
HollowMan6 committed Feb 2, 2024
1 parent c5c48f2 commit 9b06b58
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
- name: Add target
run: |
rustup target add ${{ matrix.target }}
- name: Clippy check
run: |
cargo clippy
- name: Build mdbook-pdf Release
run: |
cargo build --release --target ${{ matrix.target }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
/.vagrant
/build
/dist
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ include = [
env_logger = "0"
lazy_static = "1"
mdbook = "0"
mdbook-pdf-headless_chrome = "0"
headless_chrome = "1"
regex = "1"
serde = "1"
serde_derive = "1"

[features]
# Enables auto fetching chromium support.
fetch = ["mdbook-pdf-headless_chrome/fetch"]
fetch = ["headless_chrome/fetch"]
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
print_html_path
);
println!("Verify output.html is active and output.html.print.enabled is set to true in your book.toml.");
return Err(Box::try_from(io::Error::new(
return Err(Box::<io::Error>::from(io::Error::new(
io::ErrorKind::NotFound,
format!("File not found: {}", print_html_path),
))
.unwrap());
)));
}

// Modify the print.html for custom JS scripts as well as links outside the book.
Expand Down

0 comments on commit 9b06b58

Please sign in to comment.