Skip to content

Commit

Permalink
Convert asciidoc to markdown. This is a temporary shim until we event…
Browse files Browse the repository at this point in the history
…ually integrate with the rest of the elasticsearch.org documentation sites
  • Loading branch information
jordansissel committed Feb 14, 2014
1 parent 4fc329b commit dba1c57
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,18 @@ doccopy: $(addprefix build/,$(shell find docs -type f | grep '^docs/')) | build/
docindex: build/docs/index.html

docgen: $(addprefix build/docs/,$(subst lib/logstash/,,$(subst .rb,.html,$(PLUGIN_FILES))))
docgen: build/docs/tutorials/getting-started-with-logstash.md

build/docs: build
-$(QUIET)mkdir $@
$(QUIET)-mkdir $@

build/docs/inputs build/docs/filters build/docs/outputs build/docs/codecs: | build/docs
-$(QUIET)mkdir $@
$(QUIET)-mkdir $@

build/docs/tutorials/getting-started-with-logstash.md: build/docs/tutorials/getting-started-with-logstash.xml
$(QUIET)pandoc -f docbook -t markdown $< > $@
build/docs/tutorials/getting-started-with-logstash.xml: docs/tutorials/getting-started-with-logstash.asciidoc
$(QUIET)asciidoc -b docbook -o $@ $<

# bluecloth gem doesn't work on jruby. Use ruby.
build/docs/inputs/%.html: lib/logstash/inputs/%.rb docs/docgen.rb docs/plugin-doc.html.erb | build/docs/inputs
Expand Down

0 comments on commit dba1c57

Please sign in to comment.