Commit 8dfc4665a90633360ca2a53f235f95f4990d40f8

Lea Verou 2013-05-18T17:00:31

Added WPD plugin officially

diff --git a/code.js b/code.js
index 3c84401..bb72bb1 100644
--- a/code.js
+++ b/code.js
@@ -79,7 +79,8 @@ var components = {
 		},
 		'line-highlight': 'Line Highlight',
 		'show-invisibles': 'Show Invisibles',
-		'autolinker': 'Autolinker'
+		'autolinker': 'Autolinker',
+		'wpd': 'WebPlatform Docs'
 	}
 };
 
diff --git a/plugins/wpd/index.html b/plugins/wpd/index.html
index a10567f..09fb887 100644
--- a/plugins/wpd/index.html
+++ b/plugins/wpd/index.html
@@ -8,7 +8,7 @@
 <base href="../.." />
 <link rel="stylesheet" href="style.css" />
 <link rel="stylesheet" href="prism.css" data-noprefix />
-<link rel="stylesheet" href="plugins/line-highlight/prism-line-highlight.css" data-noprefix />
+<link rel="stylesheet" href="plugins/wpd/prism-wpd.css" data-noprefix />
 <script src="prefixfree.min.js"></script>
 
 <script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
@@ -20,13 +20,26 @@
 	<div class="intro" data-src="templates/header-plugins.html" data-type="text/html"></div>
 
 	<h2>WebPlatform Docs</h2>
-	<p>Makes tokens link to WebPlatform.org documentation</p>
+	<p>Makes tokens link to <a href="http://docs.webplatform.org">WebPlatform.org documentation. The links open in a new tab.</a></p>
 </header>
 
 <section class="language-markup">
 	<h1>How to use</h1>
 	
-	<p>No setup required, just include the plugin and you’re good to go!</p>
+	<p>No setup required, just include the plugin in your <a href="download.html">download</a> and you’re good to go!</p>
+	
+	<p>Tokens that currently link to documentation:</p>
+	
+	<ul>
+		<li>HTML, MathML and SVG tags</li>
+		<li>HTML, MathML and SVG non-namespaced attributes</li>
+		<li>(Non-prefixed) CSS properties</li>
+		<li>(Non-prefixed) CSS @rules</li>
+		<li>(Non-prefixed) CSS pseudo-classes</li>
+		<li>(Non-prefixed) CSS pseudo-elements (starting with <code>::</code>)</li>
+	</ul>
+	
+	<p><strong>Beta:</strong> This plugin is still in beta. Please help make it better: Test it and report any false positives etc!</p>
 </section>
 
 <section>
diff --git a/plugins/wpd/prism-wpd.css b/plugins/wpd/prism-wpd.css
new file mode 100644
index 0000000..43b7165
--- /dev/null
+++ b/plugins/wpd/prism-wpd.css
@@ -0,0 +1,11 @@
+code[class*="language-"] a[href],
+pre[class*="language-"] a[href] {
+	cursor: help;
+	text-decoration: none;
+}
+
+code[class*="language-"] a[href]:hover,
+pre[class*="language-"] a[href]:hover {
+	cursor: help;
+	text-decoration: underline;
+}
\ No newline at end of file