Skip to content

Commit

Permalink
Rebuild docs
Browse files Browse the repository at this point in the history
  • Loading branch information
timmfin committed Sep 14, 2015
1 parent 64b0b01 commit d500d32
Show file tree
Hide file tree
Showing 25 changed files with 136 additions and 1,109 deletions.
20 changes: 10 additions & 10 deletions api/options/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="chrome=1"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"><title>sortable</title><link rel="icon" href="http://static.hubspot.com/favicon.ico"><link rel="stylesheet" href="https://static2cdn.hubspot.com/hubspot_public_assets/static-1.112/shared/sass/hubspot_public_assets.css"><link rel="stylesheet" href="https://static.hubspot.com/bundles/navigation.css"><link rel="stylesheet" href="/static-resources/css/print.css"><link rel="stylesheet" href="/static-resources/css/highlight-theme-github.css"><link rel="stylesheet" href="/static-resources/css/navigation-tweaks.css"><link rel="stylesheet" href="/static-resources/css/documentation.css"><script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script><link rel="stylesheet" href="/sortable//resources/executr/lib/CodeMirror/codemirror.css"><link rel="stylesheet" href="/sortable//resources/executr/build/css/executr.css"><script src="/sortable//resources/executr/lib/CodeMirror/codemirror.js"></script><script src="/sortable//resources/executr/lib/CodeMirror/mode/coffeescript/coffeescript.js"></script><script src="/sortable//resources/executr/lib/CodeMirror/mode/javascript/javascript.js"></script><script src="/sortable//resources/executr/lib/coffee-script.js"></script><script src="/sortable//resources/executr/lib/underscore.min.js"></script><script src="/sortable//resources/executr/lib/js2coffee.min.js"></script><script src="/sortable//resources/executr/build/js/executr.js"></script><script src="/sortable//resources/executr/build/js/executr-run.js"></script><script src="//use.typekit.net/jbn8qxr.js"></script><script>try{Typekit.load();}catch(e){}
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="chrome=1"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"><title>sortable</title><link rel="icon" href="http://static.hubspot.com/favicon.ico"><link rel="stylesheet" href="https://static2cdn.hubspot.com/hubspot_public_assets/static-1.112/shared/sass/hubspot_public_assets.css"><link rel="stylesheet" href="https://static.hubspot.com/bundles/navigation.css"><link rel="stylesheet" href="http://github.hubspot.com/static-resources/css/print.css"><link rel="stylesheet" href="http://github.hubspot.com/static-resources/css/highlight-theme-github.css"><link rel="stylesheet" href="http://github.hubspot.com/static-resources/css/navigation-tweaks.css"><link rel="stylesheet" href="http://github.hubspot.com/static-resources/css/documentation.css"><script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script><link rel="stylesheet" href="//github.hubspot.com/sortable//resources/executr/lib/CodeMirror/codemirror.css"><link rel="stylesheet" href="//github.hubspot.com/sortable//resources/executr/build/css/executr.css"><script src="//github.hubspot.com/sortable//resources/executr/lib/CodeMirror/codemirror.js"></script><script src="//github.hubspot.com/sortable//resources/executr/lib/CodeMirror/mode/coffeescript/coffeescript.js"></script><script src="//github.hubspot.com/sortable//resources/executr/lib/CodeMirror/mode/javascript/javascript.js"></script><script src="//github.hubspot.com/sortable//resources/executr/lib/coffee-script.js"></script><script src="//github.hubspot.com/sortable//resources/executr/lib/underscore.min.js"></script><script src="//github.hubspot.com/sortable//resources/executr/lib/js2coffee.min.js"></script><script src="//github.hubspot.com/sortable//resources/executr/build/js/executr.js"></script><script src="//github.hubspot.com/sortable//resources/executr/build/js/executr-run.js"></script><script src="//use.typekit.net/ghy0wve.js"></script><script>try{Typekit.load();}catch(e){}
</script></head><body><div id="hs-nav-v3" class="nav-width-flex signed-out-nav">
<div class="hs-nav-section main-nav">
<div class="nav-section-inner">
Expand All @@ -22,29 +22,29 @@
</ul>
<ul class="nav-links-right">
<li class="first">
<a href="http://dev.hubspot.com/jobs/" class="sign-in">You should work at HubSpot</a>
<a href="http://dev.hubspot.com/jobs/" class="sign-in">We're Hiring Engineers</a>
</li>
</ul>
</div>
</div>
</div>
<div class="hs-page-width-normal"><div class="row-fluid"><div class="span6"><h1 class="hs-doc-page-header"><a class="hs-doc-homepage-link" href="../../">sortable</a></h1></div><div class="span6 hidden-phone"><div class="hs-doc-slim-github-link-wrapper"><a class="hs-doc-slim-github-link" href="http://github.com/HubSpot/sortable">On GitHub</a></div></div></div></div><div class="hs-page-width-normal"><div class="row-fluid"><div class="span3"><div class="hs-doc-sidenav"><nav><ul class="hs-public-sidenav"><li class=""><a href="../../">Home</a></li><li><b>Api</b></li><li class="current-nav-item"><a href="../../api/options">Options</a></li><li class=""><a href="../../api/themes">Themes</a></li><li><b>Annotated source</b></li><li><a target="_blank" href="../../source/sortable.html">coffee/sortable.coffee</a></li></ul></nav></div></div><div class="span9"><div class="hs-doc-content"><h2>API Options</h2>
<h4>Initializing sortable</h4>
<div class="hs-page-width-normal"><div class="row-fluid"><div class="span6"><h1 class="hs-doc-page-header"><a class="hs-doc-homepage-link" href="../../">sortable</a></h1></div><div class="span6 hidden-phone"><div class="hs-doc-slim-github-link-wrapper"><a class="hs-doc-slim-github-link" href="http://github.com/HubSpot/sortable">On GitHub</a></div></div></div></div><div class="hs-page-width-normal"><div class="row-fluid"><div class="span3"><div class="hs-doc-sidenav"><nav><ul class="hs-public-sidenav"><li class=""><a href="../../">Home</a></li><li><b>Api</b></li><li class="current-nav-item"><a href="../../api/options">Options</a></li><li class=""><a href="../../api/themes">Themes</a></li></ul></nav></div></div><div class="span9"><div class="hs-doc-content"><h2 id="api-options">API Options</h2>
<h4 id="initializing-sortable">Initializing sortable</h4>
<p>To be properly initialized and pick up the default styling, your table must add the attribute <code>data-sortable</code>.</p>
<p>Example:</p>
<pre><code class="lang-html"><span class="tag">&lt;<span class="title">table</span> <span class="attribute">data-sortable</span>&gt;</span>
<span class="comment">&lt;!-- ... --&gt;</span>
<span class="tag">&lt;/<span class="title">table</span>&gt;</span></code></pre>
<h5><code>init</code></h5>
<h5 id="-init-"><code>init</code></h5>
<p>All tables on the page will be automatically initted when the page is loaded.</p>
<p>If you add tables with javascript, call <code>init</code> after they are added to the page:</p>
<pre><code class="lang-coffeescript">Sortable.init()</code></pre>
<h5><code>initTable</code></h5>
<h5 id="-inittable-"><code>initTable</code></h5>
<p>To initialize an individual table, call <code>initTable</code>.</p>
<pre><code class="lang-coffeescript">exampleTable = document.querySelector(<span class="string">'#exampleTable'</span>)
Sortable.initTable(exampleTable)</code></pre>
<h4>Sorting options</h4>
<h5><code>data-value</code></h5>
<h4 id="sorting-options">Sorting options</h4>
<h5 id="-data-value-"><code>data-value</code></h5>
<p>By default, sortable will automatically detect whether a column contains alpha or numeric data. If you&#39;d rather have a particular column sort on custom data, set the attribute <code>data-value</code> on a <code>&lt;td&gt;</code>.</p>
<pre><code class="lang-html"><span class="tag">&lt;<span class="title">table</span> <span class="attribute">data-sortable</span>&gt;</span>
<span class="tag">&lt;<span class="title">thead</span>&gt;</span><span class="comment">&lt;!-- ... --&gt;</span><span class="tag">&lt;/<span class="title">thead</span>&gt;</span>
Expand All @@ -57,7 +57,7 @@ <h5><code>data-value</code></h5>
<span class="comment">&lt;!-- ... --&gt;</span>
<span class="tag">&lt;/<span class="title">tbody</span>&gt;</span>
<span class="tag">&lt;/<span class="title">table</span>&gt;</span></code></pre>
<h5><code>th</code> <code>data-sortable=&quot;false&quot;</code></h5>
<h5 id="-th-data-sortable-false-"><code>th</code> <code>data-sortable=&quot;false&quot;</code></h5>
<p>To disable sorting on a particular column, add <code>data-sortable=&quot;false&quot;</code> to the <code>&lt;th&gt;</code> for that column.</p>
<pre><code class="lang-html"><span class="tag">&lt;<span class="title">table</span> <span class="attribute">data-sortable</span>&gt;</span>
<span class="tag">&lt;<span class="title">thead</span>&gt;</span>
Expand Down Expand Up @@ -90,7 +90,7 @@ <h5><code>th</code> <code>data-sortable=&quot;false&quot;</code></h5>
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-45159009-1', 'hubspot.com');
ga('create', 'UA-45159009-1', 'auto');
ga('send', 'pageview');
</script>
</body></html>
8 changes: 4 additions & 4 deletions api/themes/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="chrome=1"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"><title>sortable</title><link rel="icon" href="http://static.hubspot.com/favicon.ico"><link rel="stylesheet" href="https://static2cdn.hubspot.com/hubspot_public_assets/static-1.112/shared/sass/hubspot_public_assets.css"><link rel="stylesheet" href="https://static.hubspot.com/bundles/navigation.css"><link rel="stylesheet" href="/static-resources/css/print.css"><link rel="stylesheet" href="/static-resources/css/highlight-theme-github.css"><link rel="stylesheet" href="/static-resources/css/navigation-tweaks.css"><link rel="stylesheet" href="/static-resources/css/documentation.css"><script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script><link rel="stylesheet" href="/sortable//resources/executr/lib/CodeMirror/codemirror.css"><link rel="stylesheet" href="/sortable//resources/executr/build/css/executr.css"><script src="/sortable//resources/executr/lib/CodeMirror/codemirror.js"></script><script src="/sortable//resources/executr/lib/CodeMirror/mode/coffeescript/coffeescript.js"></script><script src="/sortable//resources/executr/lib/CodeMirror/mode/javascript/javascript.js"></script><script src="/sortable//resources/executr/lib/coffee-script.js"></script><script src="/sortable//resources/executr/lib/underscore.min.js"></script><script src="/sortable//resources/executr/lib/js2coffee.min.js"></script><script src="/sortable//resources/executr/build/js/executr.js"></script><script src="/sortable//resources/executr/build/js/executr-run.js"></script><script src="//use.typekit.net/jbn8qxr.js"></script><script>try{Typekit.load();}catch(e){}
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="chrome=1"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"><title>sortable</title><link rel="icon" href="http://static.hubspot.com/favicon.ico"><link rel="stylesheet" href="https://static2cdn.hubspot.com/hubspot_public_assets/static-1.112/shared/sass/hubspot_public_assets.css"><link rel="stylesheet" href="https://static.hubspot.com/bundles/navigation.css"><link rel="stylesheet" href="http://github.hubspot.com/static-resources/css/print.css"><link rel="stylesheet" href="http://github.hubspot.com/static-resources/css/highlight-theme-github.css"><link rel="stylesheet" href="http://github.hubspot.com/static-resources/css/navigation-tweaks.css"><link rel="stylesheet" href="http://github.hubspot.com/static-resources/css/documentation.css"><script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script><link rel="stylesheet" href="//github.hubspot.com/sortable//resources/executr/lib/CodeMirror/codemirror.css"><link rel="stylesheet" href="//github.hubspot.com/sortable//resources/executr/build/css/executr.css"><script src="//github.hubspot.com/sortable//resources/executr/lib/CodeMirror/codemirror.js"></script><script src="//github.hubspot.com/sortable//resources/executr/lib/CodeMirror/mode/coffeescript/coffeescript.js"></script><script src="//github.hubspot.com/sortable//resources/executr/lib/CodeMirror/mode/javascript/javascript.js"></script><script src="//github.hubspot.com/sortable//resources/executr/lib/coffee-script.js"></script><script src="//github.hubspot.com/sortable//resources/executr/lib/underscore.min.js"></script><script src="//github.hubspot.com/sortable//resources/executr/lib/js2coffee.min.js"></script><script src="//github.hubspot.com/sortable//resources/executr/build/js/executr.js"></script><script src="//github.hubspot.com/sortable//resources/executr/build/js/executr-run.js"></script><script src="//use.typekit.net/ghy0wve.js"></script><script>try{Typekit.load();}catch(e){}
</script></head><body><div id="hs-nav-v3" class="nav-width-flex signed-out-nav">
<div class="hs-nav-section main-nav">
<div class="nav-section-inner">
Expand All @@ -22,13 +22,13 @@
</ul>
<ul class="nav-links-right">
<li class="first">
<a href="http://dev.hubspot.com/jobs/" class="sign-in">You should work at HubSpot</a>
<a href="http://dev.hubspot.com/jobs/" class="sign-in">We're Hiring Engineers</a>
</li>
</ul>
</div>
</div>
</div>
<div class="hs-page-width-normal"><div class="row-fluid"><div class="span6"><h1 class="hs-doc-page-header"><a class="hs-doc-homepage-link" href="../../">sortable</a></h1></div><div class="span6 hidden-phone"><div class="hs-doc-slim-github-link-wrapper"><a class="hs-doc-slim-github-link" href="http://github.com/HubSpot/sortable">On GitHub</a></div></div></div></div><div class="hs-page-width-normal"><div class="row-fluid"><div class="span3"><div class="hs-doc-sidenav"><nav><ul class="hs-public-sidenav"><li class=""><a href="../../">Home</a></li><li><b>Api</b></li><li class=""><a href="../../api/options">Options</a></li><li class="current-nav-item"><a href="../../api/themes">Themes</a></li><li><b>Annotated source</b></li><li><a target="_blank" href="../../source/sortable.html">coffee/sortable.coffee</a></li></ul></nav></div></div><div class="span9"><div class="hs-doc-content"><h2>Themes</h2>
<div class="hs-page-width-normal"><div class="row-fluid"><div class="span6"><h1 class="hs-doc-page-header"><a class="hs-doc-homepage-link" href="../../">sortable</a></h1></div><div class="span6 hidden-phone"><div class="hs-doc-slim-github-link-wrapper"><a class="hs-doc-slim-github-link" href="http://github.com/HubSpot/sortable">On GitHub</a></div></div></div></div><div class="hs-page-width-normal"><div class="row-fluid"><div class="span3"><div class="hs-doc-sidenav"><nav><ul class="hs-public-sidenav"><li class=""><a href="../../">Home</a></li><li><b>Api</b></li><li class=""><a href="../../api/options">Options</a></li><li class="current-nav-item"><a href="../../api/themes">Themes</a></li></ul></nav></div></div><div class="span9"><div class="hs-doc-content"><h2 id="themes">Themes</h2>
<p>To use a builtin theme, you must include the theme style sheet, and add the class name to the table to match:</p>
<pre><code class="lang-html"><span class="tag">&lt;<span class="title">link</span> <span class="attribute">rel</span>=<span class="value">"stylesheet"</span> <span class="attribute">href</span>=<span class="value">"sortable-theme-light.css"</span> /&gt;</span>
<span class="tag">&lt;<span class="title">table</span> <span class="attribute">class</span>=<span class="value">"sortable-theme-light"</span> <span class="attribute">data-sortable</span>&gt;</span>
Expand Down Expand Up @@ -98,7 +98,7 @@
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-45159009-1', 'hubspot.com');
ga('create', 'UA-45159009-1', 'auto');
ga('send', 'pageview');
</script>
</body></html>
Loading

0 comments on commit d500d32

Please sign in to comment.