Commit 148a034c authored by Gulnur Erezheeva's avatar Gulnur Erezheeva

HRM

parent ef8b1ae1
...@@ -16,41 +16,41 @@ PANDOC_PDF_OPTIONS=--latex-engine=xelatex \ ...@@ -16,41 +16,41 @@ PANDOC_PDF_OPTIONS=--latex-engine=xelatex \
# --highlight-style=kate \ # --highlight-style=kate \
# -V classoption=12pt \ # -V classoption=12pt \
methodologist-manual.md: developer-manual.md:
gpp -H -I$(SRC) $(SRC)/index.md > methodologist-manual.md gpp -H -I$(SRC) $(SRC)/index.md > developer-manual.md
methodologist-manual.xml: methodologist-manual.md developer-manual.xml: developer-manual.md
@echo Creating full XML image @echo Creating full XML image
ifdef VCSREV ifdef VCSREV
pandoc $(DOCBOOKOPTS) methodologist-manual.md \ pandoc $(DOCBOOKOPTS) developer-manual.md \
| xsltproc --encoding utf8 \ | xsltproc --encoding utf8 \
--stringparam vcs.revision $(VCSREV) \ --stringparam vcs.revision $(VCSREV) \
--stringparam vcs.changedby "$(VCSCHANGEDBY)" \ --stringparam vcs.changedby "$(VCSCHANGEDBY)" \
--xinclude conf/vcs/insert-revision-and-build-date.xsl - > methodologist-manual.xml --xinclude conf/vcs/insert-revision-and-build-date.xsl - > developer-manual.xml
else else
pandoc $(DOCBOOKOPTS) methodologist-manual.md -o methodologist-manual.xml pandoc $(DOCBOOKOPTS) developer-manual.md -o developer-manual.xml
#SP_ENCODING="UTF-8" xmllint --encode utf8 --xinclude src/index.xml > methodologist-manual.xml #SP_ENCODING="UTF-8" xmllint --encode utf8 --xinclude src/index.xml > developer-manual.xml
endif endif
sed -i 's/xml:base=".*"//g' methodologist-manual.xml sed -i 's/xml:base=".*"//g' developer-manual.xml
rm -f methodologist-manual.md rm -f developer-manual.md
html: methodologist-manual.xml html: developer-manual.xml
@echo Creating html document @echo Creating html document
rm -rf bin/html rm -rf bin/html
mkdir bin/html mkdir bin/html
LC_ALL=en_US.UTF-8 xmlto xhtml -m conf/html/settings.xsl -o bin/html methodologist-manual.xml LC_ALL=en_US.UTF-8 xmlto xhtml -m conf/html/settings.xsl -o bin/html developer-manual.xml
tar --exclude-vcs -c resources | tar x -C bin/html tar --exclude-vcs -c resources | tar x -C bin/html
# Working around images used in stylesheets # Working around images used in stylesheets
mkdir bin/html/resources/docbook mkdir bin/html/resources/docbook
cp -a $(DOCBOOK-XSL)/images bin/html/resources/docbook cp -a $(DOCBOOK-XSL)/images bin/html/resources/docbook
rm -f methodologist-manual.xml rm -f developer-manual.xml
pdf: methodologist-manual.md pdf: developer-manual.md
@echo Creating pdf document @echo Creating pdf document
mkdir -p bin/pdf mkdir -p bin/pdf
# SP_ENCODING="UTF-8" docbook2pdf -o bin methodologist-manual.xml # SP_ENCODING="UTF-8" docbook2pdf -o bin developer-manual.xml
pandoc $(PANDOC_PDF_OPTIONS) -o bin/pdf/developer-manual.pdf methodologist-manual.md pandoc $(PANDOC_PDF_OPTIONS) -o bin/pdf/developer-manual.pdf developer-manual.md
rm -f methodologist-manual.xml methodologist-manual.md rm -f developer-manual.xml developer-manual.md
clean: clean:
@echo Remove all @echo Remove all
......
---
author:
- Гульнур Ережеева
title: Управление персоналом. Руководство разработчика Synergy
subtitle: Версия 1.0
...
jhj
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment