|
1 | | -<html> |
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
2 | 3 | <head> |
3 | 4 | <title>Shell: Help</title> |
4 | 5 | <%= partial 'public/partials/_head.html.erb' %> |
5 | 6 | </head> |
6 | | - <body> |
7 | | - <p class='icon'> |
8 | | - <a href='/'><img src='img/icon.png'></a> |
9 | | - </p> |
10 | | - <div class='help'> |
11 | | - <pre> |
12 | | - <%= CGI.escapeHTML(SlackShellbot::Commands::Man::HELP) %> |
13 | | - </pre> |
14 | | - </div> |
| 7 | + <body class="site-page help-page"> |
| 8 | + <%= partial 'public/partials/_navigation.html.erb' %> |
| 9 | + <main id="main" class="page-container help-content"> |
| 10 | + <header class="help-header"> |
| 11 | + <h1>Shell: Help</h1> |
| 12 | + <p class="section-intro">A little help for your channel's command line.</p> |
| 13 | + </header> |
| 14 | + <section id="get-started" class="help-section" aria-labelledby="start-title"> |
| 15 | + <h2 id="start-title">Get started</h2> |
| 16 | + <ol class="getting-started-steps"> |
| 17 | + <li><%= partial 'public/partials/_install_button.html.erb' %> and authorize Shell for your workspace.</li> |
| 18 | + <li>Invite <code>@sh</code> into a Slack channel.</li> |
| 19 | + <li>Type <code>man</code> to see the commands, or <code>ls</code> to list files.</li> |
| 20 | + </ol> |
| 21 | + <p>Each channel has its own rudimentary file system. This is a shell bot inside Slack, not a connection to your computer's shell.</p> |
| 22 | + </section> |
| 23 | + <section class="help-section" aria-labelledby="commands-title"> |
| 24 | + <h2 id="commands-title">Commands & questions</h2> |
| 25 | + <details id="is-this-a-joke" class="help-topic" open> |
| 26 | + <summary>Is this a joke?</summary> |
| 27 | + <p>Yes. Also, it works! Shell is a tiny Unix-like shell inside Slack, because apparently Slack needed a command line. Its commands and per-channel file system really work, but it is a toy, not a remote terminal.</p> |
| 28 | + </details> |
| 29 | + <details class="help-topic"> |
| 30 | + <summary>Command reference</summary> |
| 31 | + <pre><%= CGI.escapeHTML(SlackShellbot::Commands::Man::HELP) %></pre> |
| 32 | + </details> |
| 33 | + <details class="help-topic"> |
| 34 | + <summary>How do I create and read a file?</summary> |
| 35 | + <p>Try <code>touch notes</code> to create a file, <code>ls</code> to see it, and <code>cat notes</code> to read its contents. Use <code>mkdir projects</code> to create a directory.</p> |
| 36 | + </details> |
| 37 | + <details class="help-topic"> |
| 38 | + <summary>How do I leave the editor?</summary> |
| 39 | + <p>The basic <code>vi</code>-like editor updates messages in place. Use <code>:wq</code> to quit and save, or <code>:q</code> to quit without saving.</p> |
| 40 | + </details> |
| 41 | + </section> |
| 42 | + <section id="support" class="help-section" aria-labelledby="support-title"> |
| 43 | + <h2 id="support-title">Need a hand?</h2> |
| 44 | + <p>Contact <a href="mailto:dblock@vestris.com">dblock@vestris.com</a>, DM <a href="https://twitter.com/playplayio">@playplayio</a>, or <a href="https://github.com/slack-ruby/slack-shellbot/issues">report an issue on GitHub</a>.</p> |
| 45 | + </section> |
| 46 | + </main> |
15 | 47 | <%= partial 'public/partials/_footer.html.erb' %> |
16 | 48 | </body> |
17 | 49 | </html> |
18 | | - |
|
0 commit comments