mirror of https://github.com/zcash/zips.git
Add viewport meta tag for responsive display
This commit is contained in:
parent
fb8dafb3d8
commit
0c0d2f04e2
2
Makefile
2
Makefile
|
@ -15,7 +15,7 @@ protocol:
|
||||||
index.html: README.rst
|
index.html: README.rst
|
||||||
$(eval TITLE::=$(shell echo '$(basename $<)' | sed -r 's|zip-0{0,3}|ZIP |'): $(shell grep -E '^(\.\.)?\s*Title:' $< |sed 's|.*Title:\s*||'))
|
$(eval TITLE::=$(shell echo '$(basename $<)' | sed -r 's|zip-0{0,3}|ZIP |'): $(shell grep -E '^(\.\.)?\s*Title:' $< |sed 's|.*Title:\s*||'))
|
||||||
rst2html5 -v --title="$(TITLE)" $< >$@
|
rst2html5 -v --title="$(TITLE)" $< >$@
|
||||||
sed -i 's|</head>|<link rel="stylesheet" href="assets/css/style.css"></head>|' $@
|
sed -i 's|</head>|<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="assets/css/style.css"></head>|' $@
|
||||||
sed -i 's|<a href="\([^":]*\).rst">|<a href="\1">|' $@
|
sed -i 's|<a href="\([^":]*\).rst">|<a href="\1">|' $@
|
||||||
|
|
||||||
%.html: %.rst
|
%.html: %.rst
|
||||||
|
|
Loading…
Reference in New Issue