diff --git a/.env.sample b/.env.sample index eb82ef9..382cb99 100644 --- a/.env.sample +++ b/.env.sample @@ -7,6 +7,7 @@ ALGOLIA_API_KEY= ALGOLIA_SEARCH_KEY= ALGOLIA_PREFIX=devsite-dev- GOOGLE_ANALYTICS= +GOOGLE_API= ROLLBAR_CLIENT_TOKEN= JEKYLL_ENV=development SKIP_DOCS=false diff --git a/lib/c_docs/doc_member.rb b/lib/c_docs/doc_member.rb index 25bcb55..4175811 100644 --- a/lib/c_docs/doc_member.rb +++ b/lib/c_docs/doc_member.rb @@ -95,7 +95,12 @@ def process_data(node, mapping, platform) def process_typedef(node, mapping, platform) process_return_type(node, mapping, platform) - @data[platform]['argsstring'] = node.at_css('argsstring').content.to_s + argsstring = node.at_css('argsstring') + if argsstring == nil then + @data[platform]['argsstring'] = "" + else + @data[platform]['argsstring'] = argsstring.content.to_s + end process_parameter_list(node, mapping, platform) end diff --git a/lib/pebble_documentation_c.rb b/lib/pebble_documentation_c.rb index 537ff47..dd9547b 100644 --- a/lib/pebble_documentation_c.rb +++ b/lib/pebble_documentation_c.rb @@ -55,6 +55,8 @@ def cleanup def download_and_extract(zip, folder) open(zip) do | zf | Zip::File.open(zf.path) do | zipfile | + print("extracted from ", zf.path) + print("\n") zipfile.each do | entry | path = File.join(folder, entry.name).sub('/doxygen_sdk/', '/') FileUtils.mkdir_p(File.dirname(path)) diff --git a/lib/pebble_documentation_js.rb b/lib/pebble_documentation_js.rb index 6223045..924d790 100644 --- a/lib/pebble_documentation_js.rb +++ b/lib/pebble_documentation_js.rb @@ -63,7 +63,7 @@ def process_members(js_module) :properties => member['properties'], :url => url, :kind => kind, - :summary => member['summary'] + :summary => member['memberof'] } add_symbol(symbol) js_module[:children].push(symbol) diff --git a/lib/pebble_documentation_pebblekit_android.rb b/lib/pebble_documentation_pebblekit_android.rb index 4f7f124..1f4e942 100644 --- a/lib/pebble_documentation_pebblekit_android.rb +++ b/lib/pebble_documentation_pebblekit_android.rb @@ -29,7 +29,7 @@ def initialize(site, source) @path = '/docs/pebblekit-android/' open(source) do | zf | Zip::File.open(zf.path) do | zipfile | - entry = zipfile.glob('javadoc/overview-summary.html').first + entry = zipfile.glob('javadoc/index.html').first summary = Nokogiri::HTML(entry.get_input_stream.read) process_summary(zipfile, summary) @@ -47,7 +47,8 @@ def language def process_summary(zipfile, summary) summary.css('tbody tr').each do | row | - name = row.at_css('td.colFirst').content + print(row) + name = row.at_css('th.colFirst').content package = { name: name, url: "#{@path}#{name_to_url(name)}/", diff --git a/plugins/generator_docs.rb b/plugins/generator_docs.rb index 89ee536..1c03175 100644 --- a/plugins/generator_docs.rb +++ b/plugins/generator_docs.rb @@ -77,7 +77,7 @@ def generate_docs # The order of these functions will determine the order of preference # when looking up symbols e.g. double backticks # DO NOT CHANGE THE ORDER UNLESS YOU KNOW WHAT YOU ARE DOING - generate_docs_c + # generate_docs_c generate_docs_c_preview unless @site.data['docs']['c_preview'].nil? generate_docs_rocky_js generate_docs_pebblekit_js diff --git a/source/_includes/docs/menu.html b/source/_includes/docs/menu.html index 44c5472..df7ac51 100644 --- a/source/_includes/docs/menu.html +++ b/source/_includes/docs/menu.html @@ -1,45 +1,48 @@ {% comment %} - Copyright 2025 Google LLC +Copyright 2025 Google LLC - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 +http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. {% endcomment %}