[Docs] Asciidoctor support (#10730)

Ports elastic/logstash-docs#688 to this repo. Asciidoctor doesn't quite
work on this repo, but it comes closer with these changes.
This commit is contained in:
Nik Everett 2019-05-01 13:54:43 -04:00
parent 5d64a61c21
commit 0793bf1f5a
3 changed files with 9 additions and 2 deletions

View file

@ -152,7 +152,8 @@ a new input will not override the existing type. A type set at
the shipper stays with that event for its life even
when sent to another Logstash server.
ifeval::["{type}"=="input" and "{plugin}"=="beats"]
ifeval::["{type}"=="input"]
ifeval::["{plugin}"=="beats"]
ifeval::["{versioned_docs}"!="true"]
NOTE: The Beats shipper automatically sets the `type` field on the event.
@ -168,4 +169,5 @@ Logstash, it is ignored.
endif::[]
endif::[]
endif::[]

View file

@ -1,9 +1,11 @@
ifeval::["{versioned_docs}"!="true"]
[subs="attributes"]
++++
<titleabbrev>{plugin}</titleabbrev>
++++
endif::[]
ifeval::["{versioned_docs}"=="true"]
[subs="attributes"]
++++
<titleabbrev>{version}</titleabbrev>
++++
@ -28,12 +30,14 @@ To learn more about Logstash, see the {logstash-ref}/index.html[Logstash Referen
endif::[]
ifeval::[("{default_plugin}"=="0") and ("{versioned_docs}"!="true")]
ifeval::["{default_plugin}"=="0"]
ifeval::["{versioned_docs}"!="true"]
==== Installation
For plugins not bundled by default, it is easy to install by running +bin/logstash-plugin install logstash-{type}-{plugin}+. See {logstash-ref}/working-with-plugins.html[Working with plugins] for more details.
endif::[]
endif::[]
==== Getting Help

View file

@ -1,6 +1,7 @@
[id="{type}-{plugin}-index"]
== Versioned {plugin} {type} plugin docs
[subs="attributes"]
++++
<titleabbrev>{plugin}</titleabbrev>
++++