mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Try to fix Travis build
This commit is contained in:
parent
ffda730071
commit
24882c2057
6
Makefile
6
Makefile
@ -89,7 +89,7 @@ material/assets/fonts/%.css: src/assets/fonts/%.css | $$(@D)/.
|
|||||||
# Icons
|
# Icons
|
||||||
IMAGES_ICONS = $(subst src,material,$(wildcard src/assets/images/icons/*.svg))
|
IMAGES_ICONS = $(subst src,material,$(wildcard src/assets/images/icons/*.svg))
|
||||||
material/assets/images/icons: ${IMAGES_ICONS}
|
material/assets/images/icons: ${IMAGES_ICONS}
|
||||||
material/assets/images/icons/%: src/assets/images/icons/% | $$(@D)/.
|
material/assets/images/icons/%.svg: src/assets/images/icons/%.svg | $$(@D)/.
|
||||||
@ echo "+ $@"
|
@ echo "+ $@"
|
||||||
@ ${BIN}/svgo -q -i $< -o $@ --disable=removeViewBox
|
@ ${BIN}/svgo -q -i $< -o $@ --disable=removeViewBox
|
||||||
|
|
||||||
@ -184,6 +184,10 @@ material/%.yml: src/%.yml
|
|||||||
NAME = $(shell jq -r '.name' package.json)
|
NAME = $(shell jq -r '.name' package.json)
|
||||||
VERSION = $(shell jq -r '.version' package.json)
|
VERSION = $(shell jq -r '.version' package.json)
|
||||||
material: $$@/assets $$@/__init__.py $$@/mkdocs_theme.yml ${HTML}
|
material: $$@/assets $$@/__init__.py $$@/mkdocs_theme.yml ${HTML}
|
||||||
|
echo ${NAME}
|
||||||
|
echo ${VERSION}
|
||||||
|
ls package.json
|
||||||
|
cat package.json
|
||||||
@ sed -i "" 's/\$$md-name\$$/${NAME}/' $@/base.html
|
@ sed -i "" 's/\$$md-name\$$/${NAME}/' $@/base.html
|
||||||
@ sed -i "" 's/\$$md-version\$$/${VERSION}/' $@/base.html
|
@ sed -i "" 's/\$$md-version\$$/${VERSION}/' $@/base.html
|
||||||
@ sed -i "" 's/\$$md-lunr-languages\$$/${LUNR_LANGUAGES}/' $@/base.html
|
@ sed -i "" 's/\$$md-lunr-languages\$$/${LUNR_LANGUAGES}/' $@/base.html
|
||||||
|
Loading…
Reference in New Issue
Block a user