-
Notifications
You must be signed in to change notification settings - Fork 7
Doc generation #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think some wires are getting crossed with #2 in this PR - can you try and separate those out?
c1762c0
to
2535adc
Compare
2535adc
to
b61b462
Compare
Yup, that should be sorted now |
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason this has been disabled? We definitely want this one enabled - don't want to be using the preview docs.
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove debug print
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove debug print
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks doc generation for Android in my local testing. What was the motivation for this change?
<a href="{{ group.url }}">{{ group.name }}</a> | ||
{% if group.children.size > 0 %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not convinced this is a necessary change - the only place I'm seeing it have an effect is in the Rocky docs, where it adds the timeout/interval functions to the sidebar. Those pages are very small though, and they're already documented on the Rocky docs index page, so I don't think that adds much value.
@@ -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') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there issues with this path as is? I haven't run into errors in this path in my local testing, but it's entirely possible I missed something.
@@ -7,6 +7,7 @@ ALGOLIA_API_KEY= | |||
ALGOLIA_SEARCH_KEY= | |||
ALGOLIA_PREFIX=devsite-dev- | |||
GOOGLE_ANALYTICS= | |||
GOOGLE_API= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What uses this environment variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh I don't remember 😅 I don't think it's used currently.
@@ -1,45 +1,48 @@ | |||
{% comment %} | |||
Copyright 2025 Google LLC | |||
Copyright 2025 Google LLC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you avoid reformatting the header blocks if possible? Just to keep diffs clean.
I think I'm going to close this, I don't see how this PR has any meaningful changes at the moment. It was made a long time ago, if any of the like... 2 actual changes were helpful, they'll be here if I eventually revisit this. But I suspect most of the issues actually stemmed from my not generating the Android docs properly or something? |
Not really expecting this to get merged, but this is just my work that I did over the duration of the Hackathon to try to get docs generation working. I've got all but the Android and iOS docs building and displaying all properly.