Skip to content

Commit

Permalink
docs: example of template from file
Browse files Browse the repository at this point in the history
  • Loading branch information
skyf0l committed Nov 15, 2023
1 parent 874e79c commit e5bd665
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test_doc/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ page-ranges = ""
ignore-invalid-page-ranges = false
header-template = "<h3 style='font-size:8px; margin-left: 48%' class='title'></h3>"
footer-template = "<p style='font-size:10px; margin-left: 48%'><span class='pageNumber'></span> / <span class='totalPages'></span></p>"
## For huge template, you can use the following option to load it from a file.
# header-template-path = "template/header.html"
# footer-template-path = "template/footer.html"
prefer-css-page-size = true

[output.pdf-outline]
Expand Down

0 comments on commit e5bd665

Please sign in to comment.