mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-29 19:59:14 -04:00
Insert epl version into template.
This commit is contained in:
parent
d5ace6c163
commit
3d1fd05085
3 changed files with 4 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -2,12 +2,14 @@ doc_dirs = doc $(wildcard doc/*/)
|
|||
outdoc_dirs = out $(addprefix out/,$(doc_dirs))
|
||||
doc_sources = $(wildcard doc/*/*.md) $(wildcard doc/*.md)
|
||||
outdoc_files = $(addprefix out/,$(doc_sources:.md=.html))
|
||||
VERSION = $(shell node -e "console.log( require('./src/package.json').version )")
|
||||
|
||||
docs: $(outdoc_files)
|
||||
|
||||
out/doc/%.html: doc/%.md
|
||||
mkdir -p $(@D)
|
||||
node tools/doc/generate.js --format=html --template=doc/template.html $< > $@
|
||||
cat $@ | sed 's/__VERSION__/${VERSION}/' > $@
|
||||
|
||||
clean:
|
||||
rm -rf out/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue