Skip to content

mdbook-latex: Add mdBook backend script. #416

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

Merged
merged 1 commit into from
Aug 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ the same protocol as the packages tree. For details, please read

## Building

The [build.sh](./build.sh) script builds HTML and roff versions of the Void
documentation and the `void-docs.7` man page. It requires the following
dependencies:
The [build.sh](./build.sh) script builds HTML, roff and PDF versions of the Void
documentation and the `void-docs.7` man page. It requires the following Void
packages:

- `mdBook`
- `fd`
- `pandoc`
- `texlive`
- `perl`
- `perl-JSON`
3 changes: 3 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ title = "Void Linux Handbook"
[output.html]
theme = "src/theme"

[output.latex]
optional = true

[output.linkcheck]
optional = true
follow-web-links = true
Expand Down
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

PATH="$PWD:$PATH"

# Build HTML mdbook
echo "Building mdBook"
mdbook build
Expand All @@ -22,3 +24,7 @@ echo "Building void-docs man page"
pandoc \
-V "title=void-docs" -V "section=7" -V "header=Void Docs" -s \
-o "void-docs.7" "void-docs.md"

# Build PDF
pdflatex -output-directory=book/latex/ book/latex/handbook.tex >/dev/null
pdflatex -output-directory=book/latex/ book/latex/handbook.tex >/dev/null
Loading