Ver código fonte

Encode em dash character

Thibaut 12 anos atrás
pai
commit
63f56abcad

+ 1 - 1
assets/javascripts/templates/error_tmpl.coffee

@@ -39,6 +39,6 @@ app.templates.unsupportedBrowser = """
       If you're unable to upgrade, I apologize.
       I decided to prioritize speed and new features over support for older browsers.
     <p class="_fail-text">
-       Thibaut <a href="https://twitter.com/DevDocs" class="_fail-link">@DevDocs</a>
+      &mdash; Thibaut <a href="https://twitter.com/DevDocs" class="_fail-link">@DevDocs</a>
   </div>
 """

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -13,7 +13,7 @@ app.templates.aboutPage = -> """
   <p>DevDocs combines multiple API documentations in a fast, organized, and searchable interface.
   <ul>
     <li>Created and maintained by <a href="http://thibaut.me">Thibaut Courouble</a>
-    <li>Proudly sponsored by <a href="http://www.maxcdn.com">MaxCDN</a>content delivery that developers love
+    <li>Proudly sponsored by <a href="http://www.maxcdn.com">MaxCDN</a>&mdash;content delivery that developers love
     <li>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>
   </ul>

+ 1 - 1
assets/javascripts/templates/pages/news_tmpl.coffee

@@ -120,7 +120,7 @@ app.news = [
   ], [
     1372377600000, # June 28, 2013
     """ DevDocs made the front page of Hacker News!
-        Hi everyone  thanks for trying DevDocs.
+        Hi everyone &mdash; thanks for trying DevDocs.
         Please bear with me while I fix bugs and scramble to add more docs.
         This is only v1. There's a lot more to come. """
   ], [

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

@@ -35,10 +35,10 @@ app.templates.intro = """
        Here's what you should know before you start:
     <ol class="_intro-list">
       <li>To pick your docs, click <a class="_intro-link" data-pick-docs>Select documentation</a> in the bottom left corner
-      <li>You don't have to use your mouse  see the list of <a href="/help#shortcuts">keyboard shortcuts</a>
+      <li>You don't have to use your mouse &mdash; see the list of <a href="/help#shortcuts">keyboard shortcuts</a>
       <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  <a href="/help#browser_search">learn how</a>
+      <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 is available as a <a href="https://chrome.google.com/webstore/detail/devdocs/mnfehgbmkapmjnhcnbodoamcioleeooe">Chrome web app</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>

+ 1 - 1
public/500.html

@@ -62,7 +62,7 @@
     <h1>Oops!</h1>
     <p>
       <strong>Something is technically wrong.</strong><br>
-      Thanks for noticingwe're going to fix it up and have things back to normal soon.<br>
+      Thanks for noticing&mdash;we're going to fix it up and have things back to normal soon.<br>
       Go back to <a href="http://devdocs.io">devdocs.io</a>.
     </p>
   </div>

+ 1 - 1
views/index.erb

@@ -12,7 +12,7 @@
   <meta name="apple-mobile-web-app-capable" content="yes">
   <meta name="apple-mobile-web-app-status-bar-style" content="black">
   <meta name="format-detection" content="telephone=no">
-  <title>DevDocs  API Documentation Browser</title>
+  <title>DevDocs &mdash; 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="icon" type="image/x-icon" href="http://maxcdn.devdocs.io/favicon.ico">

+ 2 - 2
views/unsupported.erb

@@ -2,7 +2,7 @@
 <html>
 <head>
   <meta charset="utf-8">
-  <title>DevDocs  API Documentation Browser</title>
+  <title>DevDocs &mdash; API Documentation Browser</title>
   <%= stylesheet_tag 'application' %>
 </head>
 <body>
@@ -24,7 +24,7 @@
       I decided to prioritize speed and new features over support for older browsers.
     </p>
     <p class="_fail-text">
-       Thibaut <a href="https://twitter.com/DevDocs" class="_fail-link">@DevDocs</a>
+      &mdash; Thibaut <a href="https://twitter.com/DevDocs" class="_fail-link">@DevDocs</a>
     </p>
   </div>
 </body>