Commit c1162194 authored by Mikko Ahlroth's avatar Mikko Ahlroth

Add info about ST3 plugin and refactor plugins page

parent 3181a7fd
......@@ -3,7 +3,7 @@ defmodule CodeStats.Mixfile do
def project do
[app: :code_stats,
version: "1.8.0",
version: "1.8.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
width="131"
height="120">
<path
d="M 103.96875,29.43727 C 106.08143,18.684552 104.89996,10.523975 99.90625,7.2810201 98.241679,6.2000351 96.24602,5.7270015 94,5.8122701 81.871494,6.2727205 62.301679,22.972344 46.3125,47.59352 27.362362,76.774173 20.627996,106.01897 31.28125,112.93727 c 5.056946,3.28402 13.115147,0.95604 22.21875,-5.53125"
style="fill:none;stroke:#66595c;stroke-width:5;stroke-linecap:round" />
<path
d="m 113.6875,77.15602 c 8.99437,-3.489189 14.52504,-8.265012 14.8125,-13.75 0.6648,-12.685141 -26.94124,-24.429026 -61.6875,-26.25 -3.257461,-0.170716 -6.460588,-0.260544 -9.59375,-0.25 -30.287234,0.101927 -53.9287749,8.410341 -54.53125,19.90625 -0.286892,5.474225 4.7004836,10.782383 13.25,15.1875"
style="fill:none;stroke:#66595c;stroke-width:5;stroke-linecap:round" />
<path
d="M 57,10.53102 C 50.846125,5.4251295 45.074552,2.683237 40.4375,3.0310201 39.20289,3.123617 38.061068,3.4278792 37,3.9685201 25.681946,9.7353567 29.297632,39.560643 45.09375,70.56227 c 15.796118,31.00163 37.775696,51.45434 49.09375,45.6875 10.8844,-5.54588 7.94666,-33.337754 -6.34375,-63.03125"
style="fill:none;stroke:#66595c;stroke-width:5;stroke-linecap:round" />
<path
d="m 73.5,61 a 7.5,7.5 0 0 1 -15,0 7.5,7.5 0 1 1 15,0 z"
style="fill:#66595c" />
</svg>
\ No newline at end of file
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 118.44362 136.42464">
<defs>
<radialGradient id="radial-gradient" cx="113.88847" cy="5.54566" r="160.48628" gradientUnits="userSpaceOnUse">
<stop offset="0.0457" stop-color="#d85292"/>
<stop offset="1" stop-color="#b369ab"/>
</radialGradient>
<radialGradient id="radial-gradient-2" cx="22.67414" cy="45.61421" r="96.39509" gradientUnits="userSpaceOnUse">
<stop offset="0.06952" stop-color="#ee3d85"/>
<stop offset="1" stop-color="#d85292"/>
</radialGradient>
<radialGradient id="radial-gradient-3" cx="93.43312" cy="116.62181" r="97.75743" gradientUnits="userSpaceOnUse">
<stop offset="0.14152" stop-color="#f4793b"/>
<stop offset="1" stop-color="#ee3d85"/>
</radialGradient>
<linearGradient id="linear-gradient" x1="84.98779" y1="115.23721" x2="5.69679" y2="66.21423" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#f4793b"/>
<stop offset="1" stop-color="#44c8f5"/>
</linearGradient>
</defs>
<title>logo-2</title>
<g>
<path d="M116.95372,11.712a7.295,7.295,0,0,0-11.0448-9.49346L2.10119,121.03019A9.45486,9.45486,0,0,0,16.613,133.14987Z" fill="url(#radial-gradient)"/>
<path d="M114.3662,13.84975A7.29894,7.29894,0,0,0,108.10462.66443L21.33917,43.33716a5.98245,5.98245,0,0,0,5.39941,10.6694Z" fill="url(#radial-gradient-2)"/>
<path d="M28.10083,44.02978A5.9788,5.9788,0,0,0,19.451,52.18535l57.25558,71.0418a11.70231,11.70231,0,1,0,17.1709-15.8793Z" opacity="0.99688" fill="url(#radial-gradient-3)"/>
<path d="M6.67182,62.93371a4.59787,4.59787,0,0,0-4.68514,7.8842l77.44051,54.74024a11.70315,11.70315,0,1,0,11.73035-20.24291Z" fill="url(#linear-gradient)"/>
<rect x="26.05973" y="50.6476" width="51.25302" height="51.25303"/>
<rect x="30.48062" y="92.29067" width="19.21988" height="3.20332" fill="#fff"/>
<g>
<path d="M33.20024,65.55107a3.14761,3.14761,0,0,0,2.29126-.84729,3.10339,3.10339,0,0,0,.82349-2.351V57.05418H34.01176v5.28668a0.97362,0.97362,0,0,1-.94281,1.16949,1.691,1.691,0,0,1-1.31274-.7757l-1.49164,1.4082A3.41141,3.41141,0,0,0,33.20024,65.55107Z" fill="#fff"/>
<polygon points="43.63 63.439 39.143 63.439 39.143 62.114 43.153 62.114 43.153 60.288 39.143 60.288 39.143 59.011 43.57 59.011 43.57 57.054 36.852 57.054 36.852 65.408 43.63 65.408 43.63 63.439" fill="#fff"/>
<polygon points="46.597 65.408 48.912 65.408 48.912 59.083 51.418 59.083 51.418 57.054 44.103 57.054 44.103 59.083 46.597 59.083 46.597 65.408" fill="#fff"/>
<path d="M36.29106,71.34623a1.93362,1.93362,0,0,0,1.28888-1.86163V69.46067a1.87986,1.87986,0,0,0-.537-1.36041,3.12866,3.12866,0,0,0-2.27936-.73993H30.47935V75.714h4.30811c1.99286,0,3.16235-.87115,3.16235-2.30316V73.38688A2.02706,2.02706,0,0,0,36.29106,71.34623ZM32.73478,69.222h1.51563c0.68024,0,1.05017.25061,1.05017,0.716v0.02386c0,0.48926-.40576.728-1.10986,0.728H32.73478V69.222Zm2.8999,3.86652c0,0.48926-.3938.76373-1.1098,0.76373h-1.7901V72.31285H34.501c0.7757,0,1.13367.29834,1.13367,0.75183v0.02386Z" fill="#fff"/>
<path d="M48.4152,67.3007l-3.12134,7.40924-1.30573-1.90778a2.64662,2.64662,0,0,0,1.71838-2.5777V70.2006a2.60845,2.60845,0,0,0-.73981-1.94525,3.69863,3.69863,0,0,0-2.72089-.895H38.29576V75.714h2.31512v-2.53h1.02631l1.68262,2.53h3.97363l0.59674-1.5036h3.234l0.59674,1.5036h2.48224L50.64683,67.3007H48.4152Zm-5.0238,3.07886a1.04926,1.04926,0,0,1-1.24109.99054H40.61088V69.35331h1.52747a1.04265,1.04265,0,0,1,1.25305,1.00244v0.0238Zm5.179,2.02881,0.94281-2.36292L50.444,72.40837h-1.8736Z" fill="#fff"/>
<rect x="54.47728" y="67.36033" width="2.31512" height="8.35364" fill="#fff"/>
<polygon points="62.962 71.776 59.525 67.36 57.365 67.36 57.365 75.714 59.656 75.714 59.656 71.131 63.236 75.714 65.253 75.714 65.253 67.36 62.962 67.36 62.962 71.776" fill="#fff"/>
<path d="M69.58714,70.51084c-1.16956-.26251-1.45593-0.42957-1.45593-0.81146V69.67552c0-.3103.27448-0.537,0.83533-0.537a4.10069,4.10069,0,0,1,2.33905.82336L72.46312,68.327a5.2577,5.2577,0,0,0-3.43689-1.10986c-2.00488,0-3.23407,1.12183-3.23407,2.67316v0.02386c0,1.70654,1.37238,2.20776,3.15057,2.61353,1.14557,0.27448,1.42.45343,1.42,0.81152V73.363c0,0.358-.33417.57288-0.96661,0.57288a4.328,4.328,0,0,1-2.709-1.00244l-1.28876,1.53943a5.85673,5.85673,0,0,0,3.91418,1.38434c2.02875,0,3.37732-1.0144,3.37732-2.72089V73.11241C72.68992,71.54911,71.4965,70.92857,69.58714,70.51084Z" fill="#fff"/>
</g>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg2"
version="1.1"
inkscape:version="0.48.2 r9819"
width="220"
height="385"
sodipodi:docname="Question_mark_grey.png">
<metadata
id="metadata8">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1280"
inkscape:window-height="1003"
id="namedview4"
showgrid="false"
inkscape:zoom="1.225974"
inkscape:cx="255.76086"
inkscape:cy="171.09787"
inkscape:window-x="-4"
inkscape:window-y="-4"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<g
style="font-size:495px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#aeaeae;fill-opacity:1;stroke:none;font-family:Balkeno;-inkscape-font-specification:Balkeno"
id="text2987">
<path
d="m 115.81991,280.15637 -9.90967,0 c 1.12783,-20.30263 3.66567,-37.10071 7.61353,-50.39429 3.94764,-13.29331 12.12512,-31.78328 24.53247,-55.46997 9.66783,-18.2078 15.952,-32.18606 18.85254,-41.93481 2.90023,-9.7483 4.35043,-19.61768 4.35058,-29.60815 -1.5e-4,-20.463596 -5.43838,-36.737994 -16.31469,-48.823247 -10.8766,-12.084645 -24.21032,-18.127119 -40.00122,-18.127441 -14.018644,3.22e-4 -25.056231,3.303541 -33.112798,9.909668 -8.056698,6.60675 -12.085014,13.777153 -12.084961,21.51123 -5.3e-5,5.962199 2.416936,13.293734 7.250977,21.994629 4.833918,8.701432 7.250908,15.307871 7.250976,19.819341 -6.8e-5,5.80102 -1.853093,10.67528 -5.559082,14.6228 -3.706113,3.94798 -8.217827,5.92186 -13.535156,5.92163 -6.76762,2.3e-4 -12.930944,-3.34328 -18.48999,-10.03052 -5.559107,-6.68677 -8.338645,-15.99218 -8.338623,-27.916259 -2.2e-5,-18.207723 7.814911,-34.320988 23.444824,-48.339843 15.629822,-14.018227 36.818765,-21.027497 63.566893,-21.027832 33.19322,3.35e-4 57.60482,9.668294 73.23486,29.003906 11.60137,14.179979 17.40215,29.890413 17.40235,47.131348 -2e-4,11.76294 -2.61861,23.84789 -7.85523,36.25488 -5.237,12.40744 -15.18694,26.98994 -29.84985,43.74756 -23.3644,26.42593 -37.66492,45.15761 -42.90161,56.19507 -5.23693,11.03771 -8.4193,26.22446 -9.54712,45.5603 z m -3.38379,29.97071 c 7.57313,4e-5 13.97815,2.61845 19.21509,7.85522 5.23668,5.23685 7.85509,11.64187 7.85522,19.21509 -1.3e-4,7.41212 -2.65882,13.73658 -7.97607,18.97339 -5.3175,5.23681 -11.68224,7.85521 -19.09424,7.85522 -7.41221,-1e-5 -13.736664,-2.61841 -18.973388,-7.85522 -5.236898,-5.23681 -7.855304,-11.56127 -7.855224,-18.97339 -8e-5,-7.57322 2.618326,-13.97824 7.855224,-19.21509 5.236724,-5.23677 11.561178,-7.85518 18.973388,-7.85522 z"
style="font-variant:normal;font-stretch:normal;fill:#aeaeae;font-family:Times New Roman;-inkscape-font-specification:Times New Roman"
id="path3016" />
</g>
</svg>
......@@ -144,3 +144,10 @@ ul.ticker {
pointer-events: none;
}
}
// Plugin page editor icons
.media {
.media-object {
width: 8em;
}
}
......@@ -39,7 +39,7 @@
<header class="header">
<div class="row">
<div class="col-xs-2">
<a class="logo" href="<%= page_path(@conn, :index) %>"><img src="/images/Logo_crushed.png" alt="<%= get_conf(:site_name) %>" title="<%= get_conf(:site_name) %>" height="100%" /></a>
<a class="logo" href="<%= page_path(@conn, :index) %>"><img src="<%= static_path(@conn, "/images/Logo_crushed.png") %>" alt="<%= get_conf(:site_name) %> logo" title="<%= get_conf(:site_name) %>" height="100%" /></a>
</div>
<div class="col-xs-10">
......
......@@ -19,9 +19,14 @@
</li>
<li>
<strong>IntelliJ/JetBrains plugin:</strong>
<strong>JetBrains plugin:</strong>
<a href="https://github.com/Nicd/code-stats-intellij">https://github.com/Nicd/code-stats-intellij</a>
</li>
<li>
<strong>Sublime Text 3 plugin:</strong>
<a href="https://github.com/Nicd/code-stats-sublime">https://github.com/Nicd/code-stats-sublime</a>
</li>
</ul>
</p>
......@@ -29,6 +34,15 @@
<h2>Changelog</h2>
<h3>1.8.1 – 2017-01-18 – Fixes + Sublime Text 3 support</h3>
<ul>
<li>Bumped Elixir version to 1.4 and fixed compilation warnings.</li>
<li>Fix decimals being printed wrong with Elixir 1.4.</li>
<li>Added information about new Sublime Text 3 plugin.</li>
<li>Added editor logos to plugin page.</li>
</ul>
<h3>1.8.0 – 2017-01-02 – Language aliases</h3>
<ul>
......
......@@ -7,7 +7,7 @@
<div class="col-xs-12 col-lg-4">
<h4>Write code</h4>
<p>
Code::Stats currently has <a href="<%= page_path(@conn, :plugins) %>">plugins for the Atom editor and the IntelliJ/JetBrains range of IDEs</a>. If you wish to make one for your own favourite editor, you are free to check out the <a href="<%= page_path(@conn, :api_docs) %>">API documentation</a>!
Code::Stats has <a href="<%= page_path(@conn, :plugins) %>">plugins for various editors</a>. If you wish to make one for your own favourite editor, you are free to check out the <a href="<%= page_path(@conn, :api_docs) %>">API documentation</a>!
</p>
</div>
......
......@@ -14,38 +14,96 @@
<hr />
<h3>Atom</h3>
<div class="media">
<div class="media-left">
<img
class="media-object"
src="<%= static_path(@conn, "/images/atom-logo.svg") %>"
title="Atom editor"
alt="Atom editor logo"
/>
</div>
<div class="media-body">
<h3 class="media-heading">Atom</h3>
<p>
To install, use Atom's builtin package search to search for <code>code-stats-atom</code> and install the package. Then go to the package's settings page and insert the API key of the machine you want.
</p>
<p>
To install, use Atom's builtin package search to search for <code>code-stats-atom</code> and install the package. Then go to the package's settings page and insert the API key of the machine you want.
</p>
<p>
<a href="https://atom.io/packages/code-stats-atom">Link to the plugin on Atom's site.</a>
</p>
<p>
<a href="https://atom.io/packages/code-stats-atom">Link to the plugin on Atom's site.</a>
</p>
</div>
</div>
<h3>IntelliJ IDEA / JetBrains IDEs</h3>
<div class="media">
<div class="media-body">
<h3 class="media-heading">JetBrains IDEs</h3>
<p>
To install, use the IDEs builtin package manager, click on "Browse repositories…" and search for <code>Code::Stats</code>. After installation, go to Settings -> Other Settings -> Code::Stats and insert your API key.
</p>
<p>
To install, use the IDEs builtin package manager, click on "Browse repositories…" and search for <code>Code::Stats</code>. After installation, go to Settings -> Other Settings -> Code::Stats and insert your API key.
</p>
<p>
<a href="https://plugins.jetbrains.com/plugin/8393?pr=">Link to the plugin on JetBrain's site.</a>
</p>
<p>
<a href="https://plugins.jetbrains.com/plugin/8393?pr=">Link to the plugin on JetBrain's site.</a>
</p>
<p>
<strong>Note:</strong>
If the plugin fails to send XP, reporting <code>C::S ERR!</code>, hover over the status bar text to see the actual exception. If it complains of a PKIX error, you may need to install the <a href="https://www.identrust.com/certificates/trustid/root-download-x3.html">DST Root CA X3</a> to the IDE's JRE's trust store manually. The command to do that goes roughly like this on OS X:
</p>
<p>
<strong>Note:</strong>
If the plugin fails to send XP, reporting <code>C::S ERR!</code>, hover over the status bar text to see the actual exception. If it complains of a PKIX error, you may need to install the <a href="https://www.identrust.com/certificates/trustid/root-download-x3.html">DST Root CA X3</a> to the IDE's JRE's trust store manually. The command to do that goes roughly like this on OS X:
</p>
<pre>
<code>$ cd /Applications/&lt;IDE&gt;.app/Contents/jre/jdk/Contents/Home/jre
$ bin/keytool -import -alias 'DST Root CA X3' -keystore lib/security/cacerts -trustcacerts -file /path/to/dst_root_ca_x3.pem</code>
</pre>
</div>
<div class="media-right">
<img
class="media-object"
src="<%= static_path(@conn, "/images/jetbrains-logo.svg") %>"
title="JetBrains"
alt="JetBrains logo"
/>
</div>
</div>
<h3>Other editors</h3>
<div class="media">
<div class="media-left">
<img
class="media-object"
src="<%= static_path(@conn, "/images/sublime-logo.png") %>"
title="Sublime Text"
alt="Sublime Text logo"
/>
</div>
<div class="media-body">
<h3 class="media-heading">Sublime Text 3</h3>
<p>
If there is no plugin for your favourite editor, you can check out the <a href="<%= page_path(@conn, :api_docs) %>">API docs</a> and implement one yourself.
</p>
<p>
To install, first setup <a href="https://packagecontrol.io/">Package Control</a> and then use it to install package <code>CodeStats</code>. Then open the package settings and configure the API key.
</p>
<p>
<a href="https://packagecontrol.io/packages/CodeStats">Link to the plugin on Package Control's site.</a>
</p>
</div>
</div>
<div class="media">
<div class="media-body">
<h3 class="media-heading">Other editors</h3>
<p>
If there is no plugin for your favourite editor, you can check out the <a href="<%= page_path(@conn, :api_docs) %>">API docs</a> and implement one yourself. If you do, please let us know so we can add a link to it here!
</p>
</div>
<hr />
<p>
<em>
All logos are the intellectual property and possible trademarks of their respective owners. The Atom editor logo is licensed under the MIT licence. The JetBrains logo is used with permission from JetBrains s.r.o. It is believed that the Sublime Text logo is used according to the fair use rules of the Finnish law.
</em>
</p>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment