File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ mkdocs build --clean
32
32
sed -i " s/@@TIMESTAMP@@/$CURRENT_DATE /g" site/index.html
33
33
)
34
34
35
+ # Make the pdf
36
+ make pdf
37
+
35
38
# Commit and push the documentation to gh-pages
36
39
(
37
40
cd site
Original file line number Diff line number Diff line change 6
6
- " pip install mkdocs"
7
7
- " pip install mkdocs-cinder"
8
8
- " pip install markdown-include"
9
+ - " wget https://bitbucket.org/wkhtmltopdf/wkhtmltopdf/downloads/wkhtmltox-0.13.0-alpha-7b36694_linux-trusty-amd64.deb"
10
+ - " sudo dpkg -it wkhtml*.deb"
9
11
after_success :
10
12
- if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then ./.deploy.sh ; fi
11
13
env :
Original file line number Diff line number Diff line change 7
7
build :
8
8
mkdocs build --clean
9
9
10
- pdf_epub :
11
- mkdocs2pandoc > erc.pd
12
- pandoc --toc -f markdown+grid_tables+table_captions -o erc-specification.pdf erc.pd
13
- pandoc --toc -f markdown+grid_tables -t epub -o erc-specifiction.epub erc.pd
10
+ VCS_REF := $(shell git rev-parse --short HEAD)
11
+ CURRENT_DATE := $(shell date -u +"% Y-% m-% dT% H:% M:% SZ")
12
+ FILE_NAME_PDF := $(shell echo o2r-architecture-${VCS_REF}.pdf)
14
13
15
- .PHONY : build serve pdf_epub default
14
+ pdf :
15
+ # update version in cover page, if not already done
16
+ sed -i ' s/@@VERSION@@/${VCS_REF}/g' site/index.html
17
+ sed -i ' s/@@TIMESTAMP@@/${CURRENT_DATE}/g' site/index.html
18
+ # create PDF
19
+ wkhtmltopdf --margin-top 20mm --no-background file://$(shell pwd) /site/index.html site/o2r-architecture.pdf
Original file line number Diff line number Diff line change @@ -95,4 +95,4 @@ div[role=main] img {
95
95
96
96
.rst-content .note .admonition-title {
97
97
background : # 004286 ;
98
- }
98
+ }
You can’t perform that action at this time.
0 commit comments