Skip to content

Commit c1762c0

Browse files
committed
Android docs now work!
1 parent 8c67f1a commit c1762c0

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

lib/pebble_documentation_pebblekit_android.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def initialize(site, source)
2929
@path = '/docs/pebblekit-android/'
3030
open(source) do | zf |
3131
Zip::File.open(zf.path) do | zipfile |
32-
entry = zipfile.glob('javadoc/overview-summary.html').first
32+
entry = zipfile.glob('javadoc/index.html').first
3333
summary = Nokogiri::HTML(entry.get_input_stream.read)
3434
process_summary(zipfile, summary)
3535

@@ -47,7 +47,8 @@ def language
4747

4848
def process_summary(zipfile, summary)
4949
summary.css('tbody tr').each do | row |
50-
name = row.at_css('td.colFirst').content
50+
print(row)
51+
name = row.at_css('th.colFirst').content
5152
package = {
5253
name: name,
5354
url: "#{@path}#{name_to_url(name)}/",

plugins/generator_docs.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ def generate_docs
7777
# The order of these functions will determine the order of preference
7878
# when looking up symbols e.g. double backticks
7979
# DO NOT CHANGE THE ORDER UNLESS YOU KNOW WHAT YOU ARE DOING
80-
generate_docs_c
80+
# generate_docs_c
8181
generate_docs_c_preview unless @site.data['docs']['c_preview'].nil?
8282
generate_docs_rocky_js
8383
generate_docs_pebblekit_js
84-
# generate_docs_pebblekit_android
84+
generate_docs_pebblekit_android
8585
# generate_docs_pebblekit_ios
8686
end
8787

source/_includes/docs/menu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
{% else %}
2424
{% assign open = false %}
2525
{% endif %}
26-
{% if group.children.size > 0 %}
2726
<li
2827
class="section-menu__item{% if open == true %} open{% if include.group.path.last == group.name %} active{% endif %}{% endif %}">
2928
<a href="{{ group.url }}">{{ group.name }}</a>
29+
{% if group.children.size > 0 %}
3030
<ul>
3131
{% for item in group.children %}
3232
<li

source/_layouts/docs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h3><a href="/docs/">Documentation</a></h3>
5858
{% when 'c_preview' %}
5959
{% include docs/menu.html tree=site.data.docs_tree.c_preview group=page.group %}
6060
{% when 'rockyjs' %}
61-
{% include docs/menu.html tree=site.data.docs_tree.rockyjs group=page.group %}
61+
{% include docs/menu.html tree=site.data.docs_tree.rockyjs group=page.js_module %}
6262
{% when 'pebblekit_js' %}
6363
{% include docs/menu.html tree=site.data.docs_tree.pebblekit_js group=page.js_module %}
6464
{% when 'pebblekit_ios' %}

source/_sass/sections/documentation/android.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,6 @@
346346
display:block;
347347
float:left;
348348
background-image:url(resources/titlebar.gif);
349-
height:18px;
350349
}
351350
.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd {
352351
width:10px;

0 commit comments

Comments
 (0)