diff options
author | CorentinLGS <corentinlgs@gmail.com> | 2018-08-30 11:25:50 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-12-13 15:02:55 +0100 |
commit | a0f6ac410373843035cd54d648b28e9ea8f0cd1f (patch) | |
tree | 90d0324f42fbe6139d35f41ab407fa24b73584be /docs/resources/make_cover.sh | |
parent | 56ae1be0fb312bfabcae1aa2aff30bf4faa7d915 (diff) |
app-controller-submodule doc: Changed doc to fit new format.
-Split book.json in 2.
-Deleted unwanted files.
Change-Id: I52033ecb3d2361e27284865a5685333afc153beb
Signed-off-by: CorentinLGS <corentinlgs@gmail.com>
Diffstat (limited to 'docs/resources/make_cover.sh')
-rwxr-xr-x | docs/resources/make_cover.sh | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/docs/resources/make_cover.sh b/docs/resources/make_cover.sh deleted file mode 100755 index 1026ecb..0000000 --- a/docs/resources/make_cover.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -DOCS_DIR=$(cd $(dirname $0)/.. && pwd) -BOOKFILE=$DOCS_DIR/../book.json - -TITLE=$(grep '"title":' $BOOKFILE | cut -d'"' -f 4) -SUBTITLE=$(grep '"subtitle":' $BOOKFILE | cut -d'"' -f 4) -VERSION="Version $(grep '"version":' $BOOKFILE | cut -d'"' -f 4)" -DATE=$(grep '"published":' $BOOKFILE | cut -d'"' -f 4) - -[ -z "$TITLE" ] && { echo "Error TITLE not set!" ; exit 1; } -[ -z "$VERSION" ] && { echo "Error VERSION not set!" ; exit 1; } -[ -z "$DATE" ] && { echo "Error DATE not set!" ; exit 1; } - - -cat $(dirname $0)/cover.svg | sed -e "s/{title}/$TITLE/g" \ - -e "s/font-size:87.5px/font-size:54px/g" \ - -e "s/{subtitle}/$SUBTITLE/g" \ - -e "s/font-size:62.5px/font-size:40px/g" \ - -e "s/{version}/$VERSION/g" \ - -e "s/{date}/$DATE/g" \ - > /tmp/cover.svg - -# use imagemagick convert tool (cover size must be 1800x2360) -convert -resize "1600x2160!" -border 100 -bordercolor white -background white \ - -flatten -quality 100 /tmp/cover.svg $DOCS_DIR/cover.jpg - -convert -resize "200x262!" $DOCS_DIR/cover.jpg $DOCS_DIR/cover_small.jpg |