From de83c3de98dfc7d1b8a05041fb5cb74bd3a4ab45 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Wed, 24 Jun 2015 17:46:41 +0000 Subject: [PATCH] Switch quick installation snippet fron curl/sh to brew install --- app/views/docs/_install_homebrew.html.md | 1 + app/views/docs/_quick_install.html.md | 5 +++++ app/views/docs/getting-started.html.md | 2 +- app/views/docs/installation.html.md | 3 +-- app/views/home/show.html.slim | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 app/views/docs/_install_homebrew.html.md create mode 100644 app/views/docs/_quick_install.html.md diff --git a/app/views/docs/_install_homebrew.html.md b/app/views/docs/_install_homebrew.html.md new file mode 100644 index 0000000..88b2721 --- /dev/null +++ b/app/views/docs/_install_homebrew.html.md @@ -0,0 +1 @@ + brew update && brew install asciinema diff --git a/app/views/docs/_quick_install.html.md b/app/views/docs/_quick_install.html.md new file mode 100644 index 0000000..8044937 --- /dev/null +++ b/app/views/docs/_quick_install.html.md @@ -0,0 +1,5 @@ +Install asciinema with: + +<%= render partial: "docs/install_homebrew" %> + +See other <%= link_to('installation options', docs_path(:installation)) %>. diff --git a/app/views/docs/getting-started.html.md b/app/views/docs/getting-started.html.md index d3905e4..1a536a3 100644 --- a/app/views/docs/getting-started.html.md +++ b/app/views/docs/getting-started.html.md @@ -4,7 +4,7 @@ ## 1. Install the recorder -<%= render partial: 'docs/script_install_and_other' %> +<%= render partial: "docs/quick_install" %> ## 2. Record diff --git a/app/views/docs/installation.html.md b/app/views/docs/installation.html.md index 1cda82c..6a1c1a8 100644 --- a/app/views/docs/installation.html.md +++ b/app/views/docs/installation.html.md @@ -8,8 +8,7 @@ Homebrew: - brew update - brew install asciinema +<%= render 'install_homebrew' %> MacPorts: diff --git a/app/views/home/show.html.slim b/app/views/home/show.html.slim index cff43a8..9979403 100644 --- a/app/views/home/show.html.slim +++ b/app/views/home/show.html.slim @@ -11,7 +11,7 @@ p '   p - button type="button" class="btn btn-success" data-toggle="popover" data-content="#{render partial: 'docs/script_install_and_other'}

Once installed start recording with:

asciinema rec
" Start Recording + button type="button" class="btn btn-success" data-toggle="popover" data-content="#{render(partial: 'docs/quick_install').gsub('"', "'")}

Start recording with:

asciinema rec
" Start Recording p ' Supports Linux and Mac OS X