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

Added asciidoc setup instructions, detect iconpath. #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
#
# Install asciidoc with:
# brew install asciidoc
#
# For PDF generation install:
# brew install fop
#
# For code formatting also install:
# sudo easy_install Pygments
#

iconsdir := $(shell brew list asciidoc | grep /etc/asciidoc | head -n1 | egrep -o '.*/etc/asciidoc')/images/icons

default:
asciidoc \
-b html5 \
Expand All @@ -7,7 +20,7 @@ default:
-a docinfo \
-a icons \
-a pygments \
-a iconsdir=/usr/local/Cellar/asciidoc/8.6.8/etc/asciidoc/images/icons \
-a iconsdir=$(iconsdir) \
-o index.html \
thrift.asciidoc

Expand All @@ -18,7 +31,7 @@ pdf:
-a docinfo \
-a icons \
-a pygments \
-a iconsdir=/usr/local/Cellar/asciidoc/8.6.8/etc/asciidoc/images/icons \
-a iconsdir=$(iconsdir) \
-a pygments \
--no-xmllint \
thrift.asciidoc
Expand Down