mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed replacement of placeholders during build process
This commit is contained in:
parent
c409fe3953
commit
057225d323
7
Makefile
7
Makefile
@ -184,9 +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}
|
||||||
@ sed -i"" "s/\$$md-name\$$/${NAME}/" $@/base.html
|
@ sed -i.tmp 's/\$$md-name\$$/${NAME}/' $@/base.html
|
||||||
@ sed -i"" "s/\$$md-version\$$/${VERSION}/" $@/base.html
|
@ sed -i.tmp 's/\$$md-version\$$/${VERSION}/' $@/base.html
|
||||||
@ sed -i"" "s/\$$md-lunr-languages\$$/${LUNR_LANGUAGES}/" $@/base.html
|
@ sed -i.tmp 's/\$$md-lunr-languages\$$/${LUNR_LANGUAGES}/' $@/base.html
|
||||||
|
@ rm -f $@/*.tmp
|
||||||
@ echo "\n ${NAME}-${VERSION}\n"
|
@ echo "\n ${NAME}-${VERSION}\n"
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user