-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавлена публикация docx файлов в релиз (#10)
* add .docx building * add .docx to release * extract common variables and targets to Common.mk * fixed appending to array in build_course.sh
- Loading branch information
1 parent
c641901
commit e69e607
Showing
10 changed files
with
68 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
ASCIIDOCTOR_PDF = asciidoctor-pdf | ||
ASCIIDOCTOR = asciidoctor | ||
PANDOC = pandoc | ||
|
||
ROOT_ASCIIDOC_NAME = Course | ||
|
||
CHAPTERS_DIR = Chapters | ||
CHAPTERS = $(wildcard $(CHAPTERS_DIR)/*.adoc) | ||
|
||
ROOT_ASCIIDOC = $(ROOT_ASCIIDOC_NAME).adoc | ||
RESULT_PDF = $(ROOT_ASCIIDOC_NAME).pdf | ||
RESULT_XML = $(ROOT_ASCIIDOC_NAME).xml | ||
RESULT_DOCX = $(ROOT_ASCIIDOC_NAME).docx | ||
|
||
THEME = theme.yml | ||
REFERENCE = custom-reference.docx | ||
STYLE = tango | ||
|
||
.PHONY: all | ||
all: $(RESULT_PDF) $(RESULT_DOCX) | ||
|
||
.PHONY: asciidoctor | ||
asciidoctor: $(RESULT_PDF) $(RESULT_XML) | ||
|
||
.PHONY: pandoc | ||
pandoc: $(RESULT_DOCX) | ||
|
||
.PHONY: clean | ||
clean: | ||
$(RM) $(RESULT_PDF) $(RESULT_XML) $(RESULT_DOCX) | ||
|
||
$(RESULT_XML): $(ROOT_ASCIIDOC) $(CHAPTERS) | ||
$(ASCIIDOCTOR) \ | ||
--backend docbook \ | ||
--out-file='$@' '$<' | ||
|
||
$(RESULT_DOCX): $(RESULT_XML) $(REFERENCE) | ||
$(PANDOC) \ | ||
--from docbook \ | ||
--reference-doc=$(REFERENCE) \ | ||
--highlight-style $(STYLE) \ | ||
--output '$@' '$<' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,8 @@ | ||
ASCIIDOCTOR_PDF = asciidoctor-pdf | ||
|
||
ROOT_ASCIIDOC_NAME = Course | ||
|
||
CHAPTERS_DIR = Chapters | ||
CHAPTERS = $(wildcard $(CHAPTERS_DIR)/*.adoc) | ||
|
||
ROOT_ASCIIDOC = $(ROOT_ASCIIDOC_NAME).adoc | ||
RESULT_PDF = $(ROOT_ASCIIDOC_NAME).pdf | ||
|
||
THEME = theme.yml | ||
|
||
.PHONY: all | ||
all: $(RESULT_PDF) | ||
include ../Common.mk | ||
|
||
$(RESULT_PDF): $(ROOT_ASCIIDOC) $(CHAPTERS) $(THEME) | ||
$(ASCIIDOCTOR_PDF) \ | ||
-r asciidoctor-mathematical \ | ||
-a mathematical-format=svg \ | ||
--theme $(THEME) \ | ||
--out-file='$@' '$<' | ||
|
||
.PHONY: clean | ||
clean: | ||
$(RM) $(RESULT_PDF) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,6 @@ | ||
ASCIIDOCTOR_PDF = asciidoctor-pdf | ||
|
||
ROOT_ASCIIDOC_NAME = Course | ||
|
||
CHAPTERS_DIR = Chapters | ||
CHAPTERS = $(wildcard $(CHAPTERS_DIR)/*.adoc) | ||
|
||
ROOT_ASCIIDOC = $(ROOT_ASCIIDOC_NAME).adoc | ||
RESULT_PDF = $(ROOT_ASCIIDOC_NAME).pdf | ||
|
||
THEME = theme.yml | ||
|
||
.PHONY: all | ||
all: $(RESULT_PDF) | ||
include ../Common.mk | ||
|
||
$(RESULT_PDF): $(ROOT_ASCIIDOC) $(CHAPTERS) $(THEME) | ||
$(ASCIIDOCTOR_PDF) \ | ||
--theme $(THEME) \ | ||
--out-file='$@' '$<' | ||
|
||
.PHONY: clean | ||
clean: | ||
$(RM) $(RESULT_PDF) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters