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