mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-24 07:30:12 +01:00
Simplified Makefile
This commit is contained in:
parent
057225d323
commit
dc86faeb3a
9
Makefile
9
Makefile
@ -184,10 +184,11 @@ 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}
|
||||||
@ sed -i.tmp 's/\$$md-name\$$/${NAME}/' $@/base.html
|
@ sed -i.tmp \
|
||||||
@ sed -i.tmp 's/\$$md-version\$$/${VERSION}/' $@/base.html
|
-e 's/\$$md-name\$$/${NAME}/' \
|
||||||
@ sed -i.tmp 's/\$$md-lunr-languages\$$/${LUNR_LANGUAGES}/' $@/base.html
|
-e 's/\$$md-version\$$/${VERSION}/' \
|
||||||
@ rm -f $@/*.tmp
|
-e 's/\$$md-lunr-languages\$$/${LUNR_LANGUAGES}/' \
|
||||||
|
$@/base.html; rm -f $@/base.html.tmp
|
||||||
@ echo "\n ${NAME}-${VERSION}\n"
|
@ echo "\n ${NAME}-${VERSION}\n"
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user