From b8040a119c5222d746e31448159fd990c4fc0a05 Mon Sep 17 00:00:00 2001 From: Thibaut Date: Tue, 13 Jan 2015 20:45:31 -0500 Subject: [PATCH] Offline mode is ready for prime time! --- assets/javascripts/news.json | 5 ++++- assets/javascripts/templates/pages/about_tmpl.coffee | 3 --- assets/javascripts/templates/pages/root_tmpl.coffee.erb | 6 +++--- views/index.erb | 2 +- views/other.erb | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/assets/javascripts/news.json b/assets/javascripts/news.json index 17105ffe..e0557456 100644 --- a/assets/javascripts/news.json +++ b/assets/javascripts/news.json @@ -1,5 +1,8 @@ [ - [ "2014-12-21", + [ "2015-01-13", + "Offline mode has landed!\nIf you notice any bugs, please report them on GitHub." + ], [ + "2014-12-21", "New React, RethinkDB, Socket.IO, Modernizr and Bower documentations" ], [ "2014-11-30", diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 8c799d47..0b9de766 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -47,9 +47,6 @@ app.templates.aboutPage = -> """

Questions & Answers

-
Does it work offline? -
Yes! DevDocs is open source. You can run the code locally on your computer.
- An offline version that requires no setup is planned for the future.
Where can I suggest new docs and features?
You can suggest and vote for new docs on the Trello board.
If you have a specific feature request, add it to the issue tracker.
diff --git a/assets/javascripts/templates/pages/root_tmpl.coffee.erb b/assets/javascripts/templates/pages/root_tmpl.coffee.erb index f545c3d2..a41c5386 100644 --- a/assets/javascripts/templates/pages/root_tmpl.coffee.erb +++ b/assets/javascripts/templates/pages/root_tmpl.coffee.erb @@ -25,8 +25,8 @@ app.templates.intro = """

Hi there!

Thanks for downloading DevDocs. Here are a few things you should know:

    -
  1. Your local version of DevDocs won't self-update. Unless you're offline or modifying the code, - I recommend using the hosted version at devdocs.io. +
  2. Your local version of DevDocs won't self-update. Unless you're modifying the code, + I recommend using the hosted version at devdocs.io.
  3. Run thor docs:list to see all available documentations.
  4. Run thor docs:download --all to download/update all documentations.
  5. To be notified about new versions, don't forget to watch the repository on GitHub. @@ -56,7 +56,7 @@ app.templates.intro = """
  6. The search supports fuzzy matching (e.g. "bgcp" brings up "background-clip")
  7. To search a specific documentation, type its name (or an abbreviation), then Tab
  8. You can search using your browser's address bar — learn how -
  9. DevDocs works on mobile and can be installed on Chrome and Firefox. +
  10. DevDocs works offline, on mobile, and can be installed on Chrome and Firefox.
  11. For the latest news, subscribe to the newsletter or follow @DevDocs
  12. DevDocs is free and open source diff --git a/views/index.erb b/views/index.erb index 82948d22..b9e53a39 100644 --- a/views/index.erb +++ b/views/index.erb @@ -13,7 +13,7 @@ - DevDocs: Open-source / Offline API Documentation Browser + DevDocs: Offline API Documentation Browser diff --git a/views/other.erb b/views/other.erb index 85c8d157..317abb9a 100644 --- a/views/other.erb +++ b/views/other.erb @@ -3,9 +3,9 @@ - <% if doc_index_page? %><% else %><% end %> + <% if doc_index_page? %><% else %><% end %> - DevDocs<%= ": Downloadable #{@doc['name']} API Documentation" if doc_index_page? %> + DevDocs<%= ": #{@doc['name']} API Documentation" if doc_index_page? %> <%= stylesheet_tag 'application' %>