From 01d6026dd1eda2c37ef1c03a7f60b8bee84ae272 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sat, 12 Oct 2013 00:20:42 +0200 Subject: [PATCH] Add FAQ page --- app/views/docs/_docs_topics.html.slim | 1 + app/views/docs/faq.html.slim | 37 +++++++++++++++++++++++++ app/views/layouts/_navigation.html.slim | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 app/views/docs/faq.html.slim diff --git a/app/views/docs/_docs_topics.html.slim b/app/views/docs/_docs_topics.html.slim index fa50c26..dcc50e0 100644 --- a/app/views/docs/_docs_topics.html.slim +++ b/app/views/docs/_docs_topics.html.slim @@ -4,3 +4,4 @@ ul.delimited li = link_to_category 'About', docs_path(:about), :about li = link_to_category 'Getting started', docs_path(:record), :record li = link_to_category 'Recorder options', docs_path(:options), :options + li = link_to_category 'FAQ', docs_path(:faq), :faq diff --git a/app/views/docs/faq.html.slim b/app/views/docs/faq.html.slim new file mode 100644 index 0000000..fb148d4 --- /dev/null +++ b/app/views/docs/faq.html.slim @@ -0,0 +1,37 @@ +markdown: + + # Frequently Asked Questions + + ## How can I delete the recorded asciicast? + + In order to delete your asciicast you need to associate your local API token + (which was assigned to the recorded asciicast) with the asciinema.org + account. Just run `asciinema auth` in your terminal and open the printed URL + in your browser. Once you sign in you'll see a "Delete" link on your + asciicast's page. + + ## How can I point asciinema client to the custom asciinema instance? + + You can easily tell asciinema client to use custom API URL by adding + following setting to _~/.asciinema/config_ file: + + [api] + url = http://localhost:3000 + + ## Can I edit/post-process the recorded asciicast? + + TL;DR answer: No, you can't. + + That's tricky. You can't do that at the moment. And there is a little chance + asciinema will allow for this in the future. The thing is, the recording + consists of two streams: text printed to the terminal and the timing + information (how many characters to print after what delay). If you deleted + some text from the first stream you would need to track the appropriate item + in the second stream and adjust the number of characters for it. Otherwise + the replay of the asciicast would get broken and just look improper. + + Also, some characters in the text stream are not printable characters, they + are escape sequences used to change the text foreground and background color, + erase some areas of the terminal etc. Each sequence depends on the state of + the terminal at a given moment. By (accidently) removing these sequences you + can break the whole output so it displays mostly rubbish. diff --git a/app/views/layouts/_navigation.html.slim b/app/views/layouts/_navigation.html.slim index 8f4dcb3..6a933b7 100644 --- a/app/views/layouts/_navigation.html.slim +++ b/app/views/layouts/_navigation.html.slim @@ -1,3 +1,3 @@ ul li = link_to "Browse", browse_path - li = link_to "Record", docs_path(:record) + li = link_to "Docs", docs_path(:record)