Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Incorrect rendering of tables in the docs #153

Closed
plamut opened this issue May 7, 2021 · 12 comments · Fixed by #249 or #277
Closed

Incorrect rendering of tables in the docs #153

plamut opened this issue May 7, 2021 · 12 comments · Fixed by #249 or #277
Assignees
Labels
api: datacatalog Issues related to the googleapis/python-datacatalog API. type: docs Improvement to the documentation for an API.

Comments

@plamut
Copy link

plamut commented May 7, 2021

In the generated docs, the tables containing "applicable previous versions" are not rendered correctly, while in the source markdown file UPGRADING.md they are rendered just fine.

@plamut plamut added the type: docs Improvement to the documentation for an API. label May 7, 2021
@product-auto-label product-auto-label bot added the api: datacatalog Issues related to the googleapis/python-datacatalog API. label May 7, 2021
@meredithslota meredithslota added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Sep 16, 2021
meredithslota added a commit that referenced this issue Nov 3, 2021
@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label Nov 3, 2021
gcf-merge-on-green bot pushed a commit that referenced this issue Nov 3, 2021
Removes `:` from table formatting markdown 

Fixes #153 🦕
@meredithslota meredithslota reopened this Nov 4, 2021
@meredithslota
Copy link
Contributor

Not yet closed, let's wait to see if the change actually makes it's way through. :)

@meredithslota meredithslota removed the 🚨 This issue needs some love. label Nov 4, 2021
@meredithslota meredithslota self-assigned this Nov 4, 2021
@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label Nov 8, 2021
@meredithslota meredithslota removed type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. 🚨 This issue needs some love. labels Nov 9, 2021
@meredithslota
Copy link
Contributor

Ok, the change has not yet made it's way through despite v3.6.1 being released. Turns out I don't totally understand our doc generation process. Tagging in @tswast for advice here — am I missing some important connective tissue here?

@tswast
Copy link
Contributor

tswast commented Nov 18, 2021

I think it's a limitation of the Sphinx markdown renderer (https://stackoverflow.com/questions/44461762/sphinx-is-not-recognising-my-markdown-tables/50616143). I'll try treating the file as ReStructured Text, since that is better supported.

@tswast
Copy link
Contributor

tswast commented Dec 1, 2021

The "UPGRADING" guide no longer appears in https://cloud.google.com/python/docs/reference/datacatalog/latest

I think we'll still need #268 once it's added back, but passing on to folks who might know about the reference docs on cloud.google.com.

@dandhlee
Copy link
Contributor

dandhlee commented Dec 1, 2021

I've excluded because of formatting issues as well. Once #268 is added I'll try running it through the plugin to see how it'd look and go from there.

@tswast tswast assigned tswast and unassigned dandhlee Dec 1, 2021
@tswast
Copy link
Contributor

tswast commented Dec 1, 2021

Thanks @dandhlee

I'll pass back to you once I solve the Owlbot issue with #268

@tswast tswast assigned dandhlee and unassigned tswast Dec 1, 2021
@dandhlee
Copy link
Contributor

dandhlee commented Dec 1, 2021

I can see the well formatted html page being generated with Sphinx for HTML. With the existing tools it doesn't seem like I can pull that page nicely for cloud.google.com. I'll have to add some feature support from Sphinx to the plugin, will get back to this in few days.

@meredithslota
Copy link
Contributor

Honestly, I'm not sure this is worth the effort — I'm considering instead rolling back the changes that originally caused the funky formatting (the insertion of a formatted table) and instead just presenting that content in text since it's relatively simple. That would require undoing #268 and the related change in synthtool googleapis/synthtool#1285 but might be easier than the remaining work. Thoughts?

@tswast
Copy link
Contributor

tswast commented Dec 23, 2021

IMO, Cloud RAD really needs to support full Sphinx formatting. I don't believe this is the only doc that has been excluded for this reason.

@tswast tswast assigned meredithslota and unassigned dandhlee Dec 28, 2021
@tswast
Copy link
Contributor

tswast commented Dec 28, 2021

I filed bug 212403496 internally to handle the Sphinx formatting issues in general. For now, passing back to @meredithslota to tackle reverting the Markdown -> ReStructured Text conversion and removing the problematic tables.

@meredithslota
Copy link
Contributor

Reopening just to remind me to confirm that this actually fixes the issue.

@meredithslota meredithslota reopened this Jan 11, 2022
@meredithslota
Copy link
Contributor

Confirmed fixed as of 3.6.2 release HUZZAH.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: datacatalog Issues related to the googleapis/python-datacatalog API. type: docs Improvement to the documentation for an API.
Projects
None yet
5 participants