Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.36 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.36 KB

livingfire-docbook

Write your documents with Mardown in a GitHub Page, GitLab Wiki, Golumn Wiki, ... and turn them with DocBook into into a high quality PDF

Usage

See project page

Quick Start

Make sure you have a working Docker and docker-compose environment.

# download project files
git clone https://gitlab.com/phoen1x/livingfire-docbook.git
cd livingfire-docbook

# start livingfire-docbook
docker-compose up -d

# convert docbook to pdf
docker-compose exec docbook /book/convertBook.sh
xdg-open book/target/docbkx/pdf/book.pdf

# write Markdown or import wiki
cd tmp/wiki
git init
git remote add origin https://gitlab.com/phoen1x/livingfire-docbook.wiki.git
git pull
rm -rf .git
cd ../..

# convert plantuml to images - http://plantuml.com/
docker-compose exec docbook /book/convertPlantuml.sh

# convert markdown to docbook
docker-compose exec docbook /book/convertWiki2Docbook.sh
xdg-open book/target/docbkx/pdf/book.pdf

# stop  livingfire-docbook and get PDF
docker-compose down
cat book/target/docbkx/pdf/book.pdf > book.pdf