You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Find a better caption for snippet in JSON docs generator. #1984
Rather than snarfing the docs/foo_snippets.py file, could this be done by pulling in the docs/foo_usage.rst file, or maybe the HTML rendered from it by Sphinx? The usage docs already have the "human-oriented" descriptions of the snippets, and presents them in a logical order, grouped into sections.
For the site framework, there are only two fields for examples. example = { 'caption': '', 'code': '' }
I could parse the RST in this case I think. Docutils doesn't know what the literalinclude directive is though. So I would probably just manually parse it. I'll give it a go.
Activity
tseaver commentedon Jul 15, 2016
Rather than snarfing the
docs/foo_snippets.pyfile, could this be done by pulling in thedocs/foo_usage.rstfile, or maybe the HTML rendered from it by Sphinx? The usage docs already have the "human-oriented" descriptions of the snippets, and presents them in a logical order, grouped into sections.daspecster commentedon Jul 15, 2016
For the site framework, there are only two fields for examples.
example = { 'caption': '', 'code': '' }I could parse the RST in this case I think. Docutils doesn't know what the
literalincludedirective is though. So I would probably just manually parse it. I'll give it a go.daspecster commentedon Jul 15, 2016
http://daspecster.github.io/gcloud-python/#/docs/master/gcloud/pubsub
Update pushed to #1775.
tseaver commentedon Jul 16, 2016
I would say that the implementation in #1775 is adequate for now. We can look at a better rst -> markdown story for the usage / narrative docs later.
chore(python): fix docs build (#1984)