diff options
author | Mark Holmquist <mtraceur@member.fsf.org> | 2012-08-13 19:03:06 -0700 |
---|---|---|
committer | Mark Holmquist <mtraceur@member.fsf.org> | 2012-08-13 21:11:39 -0700 |
commit | 17375b2eed613aecd176e2ac00226113cb1dec73 (patch) | |
tree | 83b4e3f8e87a8977874d7a1e70c7bcd5693a7aaa /Makefile | |
parent | a4603a3bb601f8862a95cf7c0468c121c2bb0e08 (diff) | |
download | etherpad-lite-17375b2eed613aecd176e2ac00226113cb1dec73.zip |
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)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..01f30701 --- /dev/null +++ b/Makefile @@ -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/ |