Selaa lähdekoodia

Offline mode is ready for prime time!

Thibaut 11 vuotta sitten
vanhempi
commit
b8040a119c

+ 4 - 1
assets/javascripts/news.json

@@ -1,5 +1,8 @@
 [
-  [ "2014-12-21",
+  [ "2015-01-13",
+    "<a href=\"/offline\">Offline mode</a> has landed!\nIf you notice any bugs, please report them on <a href=\"https://github.com/Thibaut/devdocs/issues\" target=\"_blank\">GitHub</a>."
+  ], [
+    "2014-12-21",
     "New <a href=\"/react/\">React</a>, <a href=\"/rethinkdb/\">RethinkDB</a>, <a href=\"/socketio/\">Socket.IO</a>, <a href=\"/modernizr/\">Modernizr</a> and <a href=\"/bower/\">Bower</a> documentations"
   ], [
     "2014-11-30",

+ 0 - 3
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -47,9 +47,6 @@ app.templates.aboutPage = -> """
 
   <h2 class="_lined-heading" id="faq">Questions & Answers</h2>
   <dl>
-    <dt>Does it work offline?
-    <dd>Yes! DevDocs is open source. You can run <a href="https://github.com/Thibaut/devdocs">the code</a> locally on your computer.<br>
-        An offline version that requires no setup is planned for the future.
     <dt>Where can I suggest new docs and features?
     <dd>You can suggest and vote for new docs on the <a href="https://trello.com/b/6BmTulfx/devdocs-documentation">Trello board</a>.<br>
         If you have a specific feature request, add it to the <a href="https://github.com/Thibaut/devdocs/issues">issue tracker</a>.<br>

+ 3 - 3
assets/javascripts/templates/pages/root_tmpl.coffee.erb

@@ -25,8 +25,8 @@ app.templates.intro = """
     <h2 class="_intro-title">Hi there!</h2>
     <p>Thanks for downloading DevDocs. Here are a few things you should know:
     <ol class="_intro-list">
-      <li>Your local version of DevDocs won't self-update. Unless you're offline or modifying the code,
-          I recommend using the hosted version at <a href="http://devdocs.io">devdocs.io</a>.
+      <li>Your local version of DevDocs won't self-update. Unless you're modifying the code,
+          I&nbsp;recommend using the hosted version at <a href="http://devdocs.io">devdocs.io</a>.
       <li>Run <code>thor docs:list</code> to see all available documentations.
       <li>Run <code>thor docs:download --all</code> to download/update all documentations.
         <li>To be notified about new versions, don't forget to <a href="https://github.com/Thibaut/devdocs/subscription">watch the repository</a> on GitHub.
@@ -56,7 +56,7 @@ app.templates.intro = """
       <li>The search supports fuzzy matching (e.g. "bgcp" brings up "background-clip")
       <li>To search a specific documentation, type its name (or an abbreviation), then Tab
       <li>You can search using your browser's address bar &mdash; <a href="/help#browser_search">learn how</a>
-      <li>DevDocs works on mobile and can be installed on <a href="https://chrome.google.com/webstore/detail/devdocs/mnfehgbmkapmjnhcnbodoamcioleeooe">Chrome</a> and <a href="https://marketplace.firefox.com/app/devdocs/">Firefox</a>.
+      <li>DevDocs works <a href="/offline">offline</a>, on mobile, and can be installed on <a href="https://chrome.google.com/webstore/detail/devdocs/mnfehgbmkapmjnhcnbodoamcioleeooe">Chrome</a> and <a href="https://marketplace.firefox.com/app/devdocs/">Firefox</a>.
       <li>For the latest news, subscribe to the <a href="http://eepurl.com/HnLUz">newsletter</a> or follow <a href="https://twitter.com/DevDocs">@DevDocs</a>
       <li>DevDocs is free and <a href="https://github.com/Thibaut/devdocs">open source</a>
           <iframe class="_github-btn" src="http://ghbtns.com/github-btn.html?user=Thibaut&repo=devdocs&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>

+ 1 - 1
views/index.erb

@@ -13,7 +13,7 @@
   <meta name="apple-mobile-web-app-status-bar-style" content="black">
   <meta name="format-detection" content="telephone=no">
   <meta name="robots" content="noodp">
-  <title>DevDocs: Open-source / Offline API Documentation Browser</title>
+  <title>DevDocs: Offline API Documentation Browser</title>
   <link rel="canonical" href="http://devdocs.io">
   <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="DevDocs Search">
   <link rel="alternate" href="http://devdocs.io/feed" title="DevDocs" type="application/atom+xml">

+ 2 - 2
views/other.erb

@@ -3,9 +3,9 @@
 <head>
   <meta charset="utf-8">
   <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">
-  <% if doc_index_page? %><meta name="description" content="<%= @doc['name'] %> reference documentation with fast, fuzzy search, keyboard shortcuts, mobile version, offline mode, and more."><% else %><meta name="robots" content="noindex"><% end %>
+  <% if doc_index_page? %><meta name="description" content="<%= @doc['name'] %> reference documentation with fast, fuzzy search, keyboard shortcuts, mobile version, offline access, and more."><% else %><meta name="robots" content="noindex"><% end %>
   <meta name="format-detection" content="telephone=no">
-  <title>DevDocs<%= ": Downloadable #{@doc['name']} API Documentation" if doc_index_page? %></title>
+  <title>DevDocs<%= ": #{@doc['name']} API Documentation" if doc_index_page? %></title>
   <link rel="icon" type="image/x-icon" href="http://maxcdn.devdocs.io/favicon.ico">
   <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Search DevDocs">
   <%= stylesheet_tag 'application' %>