Unified · Split
| @@ -99,7 +99,7 @@ class App < Sinatra::Application · 98 unmodified lines | ||
| 99 | 99 | def self.parse_docs |
| 100 | 100 | Hash[JSON.parse(File.read(docs_manifest_path)).map! { |doc| |
| 101 | 101 | doc['full_name'] = doc['name'].dup |
| 102 | − doc['full_name'] << " #{doc['version']}" if doc['version'] | |
| 102 | + doc['full_name'] << " #{doc['version']}" if doc['version'] && !doc['version'].empty? | |
| 103 | 103 | doc['slug_without_version'] = doc['slug'].split('~').first |
| 104 | 104 | [doc['slug'], doc] |
| 105 | 105 | }] |
| @@ -3,10 +3,10 @@ · 2 unmodified lines | ||
| 3 | 3 | <head> |
| 4 | 4 | <meta charset="utf-8"> |
| 5 | 5 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,shrink-to-fit=no"> |
| 6 | − <meta name="description" content="DevDocs is a fast, offline API documentation browser with 100+ docs including HTML, CSS, JavaScript, PHP, Ruby, Python, Go, C, C++, jQuery, and more."> | |
| 6 | + <meta name="description" content="DevDocs is a fast, offline, and free documentation browser for developers. Search 100+ docs in one web app: HTML, CSS, JavaScript, PHP, Ruby, Python, Go, C, C++…"> | |
| 7 | 7 | <meta property="application-name" content="DevDocs"> |
| 8 | 8 | <meta property="og:title" content="DevDocs"> |
| 9 | − <meta property="og:description" content="DevDocs is an API documentation browser that combines 100+ docs in a single UI with offline mode, instant search, keyboard shortcuts, and more."> | |
| 9 | + <meta property="og:description" content="DevDocs is a free API documentation browser that combines 100+ docs in a single UI with offline mode, instant search, keyboard navigation, and more."> | |
| 10 | 10 | <meta property="og:type" content="website"> |
| 11 | 11 | <meta property="og:url" content="<%= canonical_origin %>"> |
| 12 | 12 | <meta property="og:image" content="<%= App.cdn_origin %>/images/icon-128.png"> |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | ||
| 3 | 3 | <head> |
| 4 | 4 | <meta charset="utf-8"> |
| 5 | 5 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> |
| 6 | − <% if doc_index_page? %><meta name="description" content="<%= @doc['full_name'] %> API documentation with instant search, offline mode, keyboard shortcuts, mobile version, and more."><% else %><meta name="robots" content="noindex"><% end %> | |
| 6 | + <% if doc_index_page? %><meta name="description" content="<%= @doc['full_name'] %> API documentation with instant search, offline mode, keyboard navigation, mobile version, and more."><% else %><meta name="robots" content="noindex"><% end %> | |
| 7 | 7 | <meta name="format-detection" content="telephone=no"> |
| 8 | 8 | <meta property="og:image" content="<%= App.cdn_origin %>/images/icon-128.png"> |
| 9 | 9 | <title>DevDocs<%= " — #{@doc['full_name']} documentation (fast, offline)" if doc_index_page? %></title> |