mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 02:46:15 -04:00
Fix doc format, add in makefile for docs
OK, first up, SOMEBODY *cough*analphabet*cough* screwed up the docs by making them all use the wrong heading level. Not cool, guy. I had to change them so they would compile right. But anyway, now the docs will build into sexy-looking HTML and will shortly be hosted on marktraceur.info. Fixed the makefile to work properly. Run: * `make clean` for removing old doc-build(s) * `make docs` for running new doc-build(s)
This commit is contained in:
parent
a4603a3bb6
commit
17375b2eed
7 changed files with 121 additions and 108 deletions
13
Makefile
Normal file
13
Makefile
Normal file
|
@ -0,0 +1,13 @@
|
|||
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))
|
||||
|
||||
docs: $(outdoc_files)
|
||||
|
||||
out/doc/%.html: doc/%.md
|
||||
mkdir -p $(@D)
|
||||
node tools/doc/generate.js --format=html --template=doc/template.html $< > $@
|
||||
|
||||
clean:
|
||||
rm -rf out/
|
Loading…
Add table
Add a link
Reference in a new issue