Permalink
Browse files

Website at Mon Oct 7 00:13:29 PDT 2013

  • Loading branch information...
1 parent eebc26b commit b80a985d738bbad53ecda6183ae25a9bc179add4 @JakeWharton committed Oct 7, 2013
Showing with 500 additions and 490 deletions.
  1. +34 −34 development.html
  2. +117 −117 download.html
  3. +72 −72 faq.html
  4. +36 −36 merch-and-donations.html
  5. +46 −46 samples.html
  6. +1 −1 static/css3-mediaqueries.js
  7. +46 −46 support.html
  8. +33 −33 theming.html
  9. +115 −105 usage.html
View
@@ -1,35 +1,35 @@
----
-title: Development
-layout: default
----
-
-<div class="row">
- <div class="three-fourths">
- <h1>Development</h1>
- <p>The ActionBarSherlock library along with its plugins and sample applications are all built using Apache Maven. Maven will automate the process of compiling and assembling the <code>apklib</code>, <code>jar</code>s, and <code>apk</code>s for each module.</p>
- <p>Using Maven is <strong>NOT</strong> a requirement for contributing to development. It is merely used for automated testing and releasing of the libary and its sample applications.</p>
-
- <h3 id="prerequisites">Prerequisites</h3>
- <p>Maven compilation requires that you have the <code>ANDROID_HOME</code> environment variable defined as the path to your Android SDK directory.</p>
- <p>For example, the following line is in my <code>~/.bash_profile</code> which sets this variable:</p>
- <pre>export ANDROID_HOME=/home/jake/vendor/android_sdk/</pre>
-
- <h3 id="compiling">Compiling</h3>
- <p>Once the prerequisites have been successfully installed, building is as easy as running <code>mvn clean package</code>. The <code>apklib</code> for the library will be located in the <code>actionbarsherlock/target/</code> folder.</p>
- <p>You can find a <code>jar</code> for each plugin in its respective <code>target/</code> folder. The <code>apk</code>s for each of the samples are their respective <code>target/</code> folders as well.</p>
-
- <h3 id="ide">IDE</h3>
- <p>Even though the project uses Maven, each folder within the repository still maintains the standard Android project layout. By specifying the desired folder as an existing source for a new Android project, you should be able to successfully import the sources.</p>
- <p>The library should be created as a project first. Any plugins and/or sample applications you also wish to create projects for can then be created.</p>
- <p>If your IDE supports Maven you can point it at the parent <code>pom.xml</code> file in the root of the repository which will load all of the modules automatically.</p>
-
- <h3 id="codestyle">Code Style</h3>
- <p>Since a large portion of the source code is ported from the Android Open Source Project its conventions are followed in ActionBarSherlock. Detailed information can be found on <a href="http://s.android.com/source/code-style.html">the AOSP Code Guidelines</a> page.</p>
- </div>
- <div class="fourth last">
- <h1>Getting The Code</h1>
- <p>The source code repository is hosted on GitHub at <a href="https://github.com/JakeWharton/ActionBarSherlock">JakeWharton/ActionBarSherlock</a>.</p>
- <p>The GitHub project is also the location of <a href="https://github.com/JakeWharton/ActionBarSherlock/issues">the issue tracker</a> as well as the source code to this website.</p>
- <p class="centered"><a class="img" href="https://github.com/JakeWharton/ActionBarSherlock"><img src="static/octocat.png" alt="View project on GitHub"/></a></p>
- </div>
+---
+title: Development
+layout: default
+---
+
+<div class="row">
+ <div class="three-fourths">
+ <h1>Development</h1>
+ <p>The ActionBarSherlock library along with its plugins and sample applications are all built using Apache Maven. Maven will automate the process of compiling and assembling the <code>apklib</code>, <code>jar</code>s, and <code>apk</code>s for each module.</p>
+ <p>Using Maven is <strong>NOT</strong> a requirement for contributing to development. It is merely used for automated testing and releasing of the libary and its sample applications.</p>
+
+ <h3 id="prerequisites">Prerequisites</h3>
+ <p>Maven compilation requires that you have the <code>ANDROID_HOME</code> environment variable defined as the path to your Android SDK directory.</p>
+ <p>For example, the following line is in my <code>~/.bash_profile</code> which sets this variable:</p>
+ <pre>export ANDROID_HOME=/home/jake/vendor/android_sdk/</pre>
+
+ <h3 id="compiling">Compiling</h3>
+ <p>Once the prerequisites have been successfully installed, building is as easy as running <code>mvn clean package</code>. The <code>apklib</code> for the library will be located in the <code>actionbarsherlock/target/</code> folder.</p>
+ <p>You can find a <code>jar</code> for each plugin in its respective <code>target/</code> folder. The <code>apk</code>s for each of the samples are their respective <code>target/</code> folders as well.</p>
+
+ <h3 id="ide">IDE</h3>
+ <p>Even though the project uses Maven, each folder within the repository still maintains the standard Android project layout. By specifying the desired folder as an existing source for a new Android project, you should be able to successfully import the sources.</p>
+ <p>The library should be created as a project first. Any plugins and/or sample applications you also wish to create projects for can then be created.</p>
+ <p>If your IDE supports Maven you can point it at the parent <code>pom.xml</code> file in the root of the repository which will load all of the modules automatically.</p>
+
+ <h3 id="codestyle">Code Style</h3>
+ <p>Since a large portion of the source code is ported from the Android Open Source Project its conventions are followed in ActionBarSherlock. Detailed information can be found on <a href="http://s.android.com/source/code-style.html">the AOSP Code Guidelines</a> page.</p>
+ </div>
+ <div class="fourth last">
+ <h1>Getting The Code</h1>
+ <p>The source code repository is hosted on GitHub at <a href="https://github.com/JakeWharton/ActionBarSherlock">JakeWharton/ActionBarSherlock</a>.</p>
+ <p>The GitHub project is also the location of <a href="https://github.com/JakeWharton/ActionBarSherlock/issues">the issue tracker</a> as well as the source code to this website.</p>
+ <p class="centered"><a class="img" href="https://github.com/JakeWharton/ActionBarSherlock"><img src="static/octocat.png" alt="View project on GitHub"/></a></p>
+ </div>
</div>
View
@@ -1,117 +1,117 @@
----
-title: Download
-layout: default
----
-
-<script type="text/javascript">
-$(function() {
- $.getJSON('https://api.github.com/repos/JakeWharton/ActionBarSherlock/tags?callback=?', function(response) {
- var meta = response.meta
- , data = response.data
- ;
-
- data.sort(function(o1, o2) {
- return (o1.name > o2.name) ? -1 : 1;
- });
-
- var last = data[0];
- var lastSha = last.commit.sha;
- var lastDate = $('#latest-date').html('<em>Date unavailable</em>');
- $('.latest-version').html(last.name);
- $('#latest-zip').attr('href', last.zipball_url);
- $('#latest-tarball').attr('href', last.tarball_url);
-
- var previous = $('#previous-releases').empty();
- $.each(data, function(index) {
- previous.append(
- $('<dt>Version ' + this.name + '<span class="normal"> &mdash; <em id="' + this.commit.sha + '">Date unavailable</em></span></dt>'),
- $('<dd><a class="img" href="' + this.zipball_url + '">Zip</a> &middot; <a class="img" href="' + this.tarball_url + '">Tarball</a></dd>')
- );
- $.getJSON(this.commit.url + '?callback=?', function(inner) {
- var d = new Date(inner.data.commit.author.date);
- var month = d.getMonth() + 1;
- if (month < 10) {
- month = '0' + month;
- }
- var day = d.getDate();
- if (day < 10) {
- day = '0' + day;
- }
- var date = d.getFullYear() + '-' + month + '-' + day;
- $('#' + inner.data.sha).html(date);
- if (inner.data.sha === lastSha) {
- lastDate.html(date);
- }
- });
-
- //Only most recent 10 tags
- if (index == 9) {
- return false;
- }
- });
- });
-
- $.getJSON('https://api.github.com/repos/JakeWharton/ActionBarSherlock/downloads?callback=?', function(response) {
- var meta = response.meta
- , data = response.data
- ;
-
- var samples = $('#sample-apps').empty();
- $.each(data, function() {
- if (/apk$/.test(this.html_url)) {
- samples.append(
- $('<dt class="normal"/>').html(this.description.substring(0, 8) === "Sample: " ? this.description.substring(8) : this.description),
- $('<dd class="sample-app"/>').append(
- $('<a/>').attr('href', this.html_url).html('APK'),
- ' &middot; ',
- $('<a/>').attr('href', 'http://chart.apis.google.com/chart?chs=545x545&cht=qr&chl=' + this.html_url + '&.png').html('QR Code').colorbox()
- )
- );
- }/* else if (/jar$/.test(this.html_url)) {
- plugins.append(
- $('<dt class="normal"/>').html(this.description.substring(0, 26) === "ActionBarSherlock Plugin: " ? this.description.substring(26) : this.description),
- $('<dd class="plugin"/>').append(
- $('<a/>').attr('href', this.html_url).html('JAR')
- )
- );
- }*/
- });
- });
-});
-</script>
-
-<div class="row">
- <div class="three-fourths">
- <h1>Download</h1>
- <p><strong>Version <span class="latest-version">(loading)</span></strong> &mdash; <span id="latest-date">(loading)</span> (<a id="changelog" href="https://github.com/JakeWharton/ActionBarSherlock/tree/master/CHANGELOG.md#readme">change log</a>)</p>
- <p><a class="img dl" id="latest-zip" href="https://github.com/JakeWharton/ActionBarSherlock/releases"><img src="static/down_grey.png" alt="Zip"/> Download .zip</a></p>
- <p><a class="img dl" id="latest-tarball" href="https://github.com/JakeWharton/ActionBarSherlock/releases"><img src="static/down_grey.png" alt="Tarball"/> Download .tgz</a></p>
- <!-- Download icon by Ddate Kaspar / Franziska Sponsel -->
-
- <h3>Plugins</h3>
- <dl id="plugins">
- <dt class="normal"><a href="https://github.com/JakeWharton/ActionBarSherlock-Plugin-Maps/downloads">Google Maps</a></dt>
- <dd class="plugin">Base activity which extends from <code>MapActivity</code>.</dd>
- </dl>
-
- <h3>Sample Applications</h3>
- <dl id="sample-apps">
- <dt class="normal">(loading)</dt>
- </dl>
-
- <h3>Third-Party Tools</h3>
- <dl id="third-party">
- <dt class="normal"><a href="https://github.com/rtyley/roboguice-sherlock">RoboGuice-Sherlock</a> &mdash; Roberto Tyley</dt>
- <dd class="plugin">Base activities and base fragments which allow for easy use of RoboGuice and ActionBarSherlock together.</dd>
- <dt class="normal"><a href="http://jgilfelt.github.com/android-actionbarstylegenerator/">Action Bar Style Generator</a> &mdash; Jeff Gilfelt</dt>
- <dd class="plugin">Allows you to easily create a simple, attractive and seamless custom action bar style for your Android application. It will generate all necessary nine patch assets plus associated XML drawables and styles which you can copy straight into your project.</dd>
- </dl>
- </div>
- <div class="fourth last">
- <h1>Release History</h1>
- <dl id="previous-releases">
- <dt class="normal">(loading)</dt>
- </dl>
- <p><a href="https://github.com/JakeWharton/ActionBarSherlock/releases">View all &raquo;</a></p>
- </div>
-</div>
+---
+title: Download
+layout: default
+---
+
+<script type="text/javascript">
+$(function() {
+ $.getJSON('https://api.github.com/repos/JakeWharton/ActionBarSherlock/tags?callback=?', function(response) {
+ var meta = response.meta
+ , data = response.data
+ ;
+
+ data.sort(function(o1, o2) {
+ return (o1.name > o2.name) ? -1 : 1;
+ });
+
+ var last = data[0];
+ var lastSha = last.commit.sha;
+ var lastDate = $('#latest-date').html('<em>Date unavailable</em>');
+ $('.latest-version').html(last.name);
+ $('#latest-zip').attr('href', last.zipball_url);
+ $('#latest-tarball').attr('href', last.tarball_url);
+
+ var previous = $('#previous-releases').empty();
+ $.each(data, function(index) {
+ previous.append(
+ $('<dt>Version ' + this.name + '<span class="normal"> &mdash; <em id="' + this.commit.sha + '">Date unavailable</em></span></dt>'),
+ $('<dd><a class="img" href="' + this.zipball_url + '">Zip</a> &middot; <a class="img" href="' + this.tarball_url + '">Tarball</a></dd>')
+ );
+ $.getJSON(this.commit.url + '?callback=?', function(inner) {
+ var d = new Date(inner.data.commit.author.date);
+ var month = d.getMonth() + 1;
+ if (month < 10) {
+ month = '0' + month;
+ }
+ var day = d.getDate();
+ if (day < 10) {
+ day = '0' + day;
+ }
+ var date = d.getFullYear() + '-' + month + '-' + day;
+ $('#' + inner.data.sha).html(date);
+ if (inner.data.sha === lastSha) {
+ lastDate.html(date);
+ }
+ });
+
+ //Only most recent 10 tags
+ if (index == 9) {
+ return false;
+ }
+ });
+ });
+
+ $.getJSON('https://api.github.com/repos/JakeWharton/ActionBarSherlock/downloads?callback=?', function(response) {
+ var meta = response.meta
+ , data = response.data
+ ;
+
+ var samples = $('#sample-apps').empty();
+ $.each(data, function() {
+ if (/apk$/.test(this.html_url)) {
+ samples.append(
+ $('<dt class="normal"/>').html(this.description.substring(0, 8) === "Sample: " ? this.description.substring(8) : this.description),
+ $('<dd class="sample-app"/>').append(
+ $('<a/>').attr('href', this.html_url).html('APK'),
+ ' &middot; ',
+ $('<a/>').attr('href', 'http://chart.apis.google.com/chart?chs=545x545&cht=qr&chl=' + this.html_url + '&.png').html('QR Code').colorbox()
+ )
+ );
+ }/* else if (/jar$/.test(this.html_url)) {
+ plugins.append(
+ $('<dt class="normal"/>').html(this.description.substring(0, 26) === "ActionBarSherlock Plugin: " ? this.description.substring(26) : this.description),
+ $('<dd class="plugin"/>').append(
+ $('<a/>').attr('href', this.html_url).html('JAR')
+ )
+ );
+ }*/
+ });
+ });
+});
+</script>
+
+<div class="row">
+ <div class="three-fourths">
+ <h1>Download</h1>
+ <p><strong>Version <span class="latest-version">(loading)</span></strong> &mdash; <span id="latest-date">(loading)</span> (<a id="changelog" href="https://github.com/JakeWharton/ActionBarSherlock/tree/master/CHANGELOG.md#readme">change log</a>)</p>
+ <p><a class="img dl" id="latest-zip" href="https://github.com/JakeWharton/ActionBarSherlock/releases"><img src="static/down_grey.png" alt="Zip"/> Download .zip</a></p>
+ <p><a class="img dl" id="latest-tarball" href="https://github.com/JakeWharton/ActionBarSherlock/releases"><img src="static/down_grey.png" alt="Tarball"/> Download .tgz</a></p>
+ <!-- Download icon by Ddate Kaspar / Franziska Sponsel -->
+
+ <h3>Plugins</h3>
+ <dl id="plugins">
+ <dt class="normal"><a href="https://github.com/JakeWharton/ActionBarSherlock-Plugin-Maps/downloads">Google Maps</a></dt>
+ <dd class="plugin">Base activity which extends from <code>MapActivity</code>.</dd>
+ </dl>
+
+ <h3>Sample Applications</h3>
+ <dl id="sample-apps">
+ <dt class="normal">(loading)</dt>
+ </dl>
+
+ <h3>Third-Party Tools</h3>
+ <dl id="third-party">
+ <dt class="normal"><a href="https://github.com/rtyley/roboguice-sherlock">RoboGuice-Sherlock</a> &mdash; Roberto Tyley</dt>
+ <dd class="plugin">Base activities and base fragments which allow for easy use of RoboGuice and ActionBarSherlock together.</dd>
+ <dt class="normal"><a href="http://jgilfelt.github.com/android-actionbarstylegenerator/">Action Bar Style Generator</a> &mdash; Jeff Gilfelt</dt>
+ <dd class="plugin">Allows you to easily create a simple, attractive and seamless custom action bar style for your Android application. It will generate all necessary nine patch assets plus associated XML drawables and styles which you can copy straight into your project.</dd>
+ </dl>
+ </div>
+ <div class="fourth last">
+ <h1>Release History</h1>
+ <dl id="previous-releases">
+ <dt class="normal">(loading)</dt>
+ </dl>
+ <p><a href="https://github.com/JakeWharton/ActionBarSherlock/releases">View all &raquo;</a></p>
+ </div>
+</div>
Oops, something went wrong.

0 comments on commit b80a985

Please sign in to comment.