Add viewport meta tag for responsive display

This commit is contained in:
copernicus-mogley 2020-01-24 13:01:15 +01:00 committed by Daira Hopwood
parent fb8dafb3d8
commit 0c0d2f04e2
1 changed files with 1 additions and 1 deletions

View File

@ -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