Skip to content

Commit

Permalink
Wrap consts in kibana tutorials (#22181)
Browse files Browse the repository at this point in the history
* Wrap consts in kibana tutorials

* Fix onPrem instructions

* Fix rails instructions

* Use arrow functions and implicit return

Co-authored-by: LeanidShutau <leanidshutau@gmail.com>
  • Loading branch information
LeanidShutau authored and Aliaksandr Yankouski committed Aug 28, 2018
1 parent 2700654 commit 8cb473e
Show file tree
Hide file tree
Showing 14 changed files with 721 additions and 706 deletions.
276 changes: 136 additions & 140 deletions src/core_plugins/kibana/common/tutorials/filebeat_instructions.js

Large diffs are not rendered by default.

28 changes: 16 additions & 12 deletions src/core_plugins/kibana/common/tutorials/logstash_instructions.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,39 @@
* under the License.
*/

export const LOGSTASH_INSTRUCTIONS = {
export const createLogstashInstructions = () => ({
INSTALL: {
OSX: [
{
title: 'Download and install the Java Runtime Environment',
textPre: 'Follow the installation instructions [here](https://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jre.html).'
textPre:
'Follow the installation instructions [here](https://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jre.html).',
},
{
title: 'Download and install Logstash',
textPre: 'First time using Logstash? See the ' +
textPre:
'First time using Logstash? See the ' +
'[Getting Started Guide]({config.docs.base_url}guide/en/logstash/current/getting-started-with-logstash.html).',
commands: [
'curl -L -O https://artifacts.elastic.co/downloads/logstash/logstash-{config.kibana.version}.tar.gz',
'tar xzvf logstash-{config.kibana.version}.tar.gz'
]
}
'tar xzvf logstash-{config.kibana.version}.tar.gz',
],
},
],
WINDOWS: [
{
title: 'Download and install the Java Runtime Environment',
textPre: 'Follow the installation instructions [here](https://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_jre_install.html).'
textPre:
'Follow the installation instructions [here](https://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_jre_install.html).',
},
{
title: 'Download and install Logstash',
textPre: 'First time using Logstash? See the ' +
textPre:
'First time using Logstash? See the ' +
'[Getting Started Guide]({config.docs.base_url}guide/en/logstash/current/getting-started-with-logstash.html).\n' +
' 1. [Download](https://artifacts.elastic.co/downloads/logstash/logstash-{config.kibana.version}.zip) the Logstash Windows zip file.\n' +
' 2. Extract the contents of the zip file.'
}
' 2. Extract the contents of the zip file.',
},
],
}
};
},
});
Loading

0 comments on commit 8cb473e

Please sign in to comment.