GeezerVison is showing github.com — Add ability to pull snippets when generating JSON documentation · Issue #1951 · googleapis/google-cloud-python
Add ability to pull snippets when generating JSON documentation #1951
Description
We have a lot of great snippet code that we should be able to include when we generate docs.
See: pubsub_snippets.py
Activity
tseaver commented on Jul 8, 2016
FTR, those snippets are embedded into Sphinx narrative docs and into docstrings via the .. literalinclude: directives.
daspecster commented on Jul 8, 2016
ContributorAuthor
More actions
Yeah, I will need to recreate the literalinclude directive functionality and add the ability to parse the files and START and END sections.
daspecster commented on Jul 12, 2016
ContributorAuthor
More actions
Currently the generator isn't pulling in any RST files. Grabs the doc strings from the modules/classes/methods/functions.
What I'm thinking of doing just for right now is just grabbing the snippets and populating the examples = [] with the snippets.
@tseaver, do you think it would be possible to move the snippets to the module/class/etc doc strings later on or would that make things too messy?
added a commit that references this issue
on Jul 13, 2016This issue will close once commit b621d1f is merged into the 'master' branch.b621d1f daspecster commented on Jul 13, 2016
ContributorAuthor
More actions
added 3 commits that reference this issue
on Jul 20, 2016This issue will close once commit 7ffd691 is merged into the 'master' branch.7ffd691 This issue will close once commit d606735 is merged into the 'master' branch.d606735 This issue will close once commit de3d16f is merged into the 'master' branch.de3d16f
Metadata
Metadata
Development
No branches or pull requestsIssue actions