Tweaks for Google

pull/210/merge
Thibaut 10 years ago
parent e4b1524fb2
commit 930ac17b07

@ -3,7 +3,7 @@ templates = app.templates
templates.sidebarDoc = (doc, options = {}) ->
link = """<a href="#{doc.fullPath()}" class="_list-item _icon-#{doc.slug} """
link += if options.disabled then '_list-disabled' else '_list-dir'
link += """" data-slug="#{doc.slug}">"""
link += """" data-slug="#{doc.slug}" title="#{doc.name}">"""
if options.disabled
link += """<span class="_list-enable" data-enable="#{doc.slug}">Enable</span>"""
else

@ -3,3 +3,4 @@ Disallow: /about
Disallow: /news
Disallow: /tips
Disallow: /help
Disallow: /offline

@ -8,7 +8,7 @@
<div class="_search-tag"></div>
</form>
<h1 class="_logo">
<a href="/" class="_nav-link">DevDocs</a>
<a href="/" class="_nav-link" title="Offline API Documentation Browser">DevDocs</a>
</h1>
<nav class="_nav">
<a href="/offline" class="_nav-link">Offline</a>

@ -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">
<meta name="description" content="DevDocs combines <%= App.docs.size %> reference documentations in a fast, organized, and searchable interface: HTML, CSS, JavaScript, PHP, Ruby, Python, Go, C, C++, etc.">
<meta name="description" content="DevDocs is a fast, offline API documentation browser with 60+ docs including HTML, CSS, JavaScript, PHP, Ruby, Python, Go, C, C++, jQuery, and more.">
<meta property="og:title" content="DevDocs">
<meta property="og:description" content="DevDocs combines <%= App.docs.size %> reference documentations in a fast, organized, and searchable interface: HTML, CSS, JavaScript, PHP, Ruby, Python, Go, C, C++, etc.">
<meta property="og:description" content="DevDocs is an API documentation browser that combines 60+ docs in a single UI with offline mode, instant search, keyboard shortcuts, and more.">
<meta property="og:type" content="website">
<meta property="og:url" content="http://devdocs.io">
<meta property="og:image" content="http://cdn.devdocs.io/images/icon-128.png">

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<% 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 %>
<% if doc_index_page? %><meta name="description" content="<%= @doc['name'] %> API documentation with instant search, offline mode, keyboard shortcuts, mobile version, and more."><% else %><meta name="robots" content="noindex"><% end %>
<meta name="format-detection" content="telephone=no">
<meta property="og:image" content="http://cdn.devdocs.io/images/icon-128.png">
<title>DevDocs<%= "/#{@doc['name']}" if doc_index_page? %></title>

Loading…
Cancel
Save