Skip to content

Documentation Method Templates Improvement #16167

Closed

Description

@aidangomez

System information

N/A

Describe the problem

The method/class templates in documentation should include a full, functioning path to the method instead of just truncating to the method's name.

I.e. this is what we have at present (bad):
screen shot 2018-01-16 at 2 23 08 pm

This is a more practical and copy/paste-friendly version:
screen shot 2018-01-16 at 2 22 49 pm

I'm constantly just grabbing method templates, pasting to my text editor and then coming back to docs to copy/paste the package path which is now the header of the page; which is an awful workflow.

Source code / logs

N/A

Activity

  1. aselle commented on Jan 16, 2018

    @aselle
    Contributor

    @wolffg, could you consider this feature req. Thanks for the suggestion @aidangomez.

  2. added
    stat:awaiting tensorflower
    on Jan 16, 2018
  3. MarkDaoust commented on Jan 17, 2018

    @MarkDaoust
    Member

    This is an easy fix, and clear win for regular functions.

    It's probably better not to change this for methods. Adding the path to the class, on each method signature seems like unnecessary noise, since you rarely do a direct lookup of the method:

    get_collection(...)
    tf.Graph.get_collection(...)

    get_name_scope(...)
    tf.Graph.get_name_scope(...)

    WDYT?

  4. aidangomez commented on Jan 17, 2018

    @aidangomez
    Author

    Agreed. That's an important distinction.

  5. MarkDaoust commented on Jan 18, 2018

    @MarkDaoust
    Member

    Fix inflight.

  6. removed
    stat:awaiting tensorflower
    on Jan 23, 2018
  7. tensorflowbutler commented on Jan 23, 2018

    @tensorflowbutler
    Member

    A member of the TensorFlow organization has replied after the stat:awaiting tensorflower label was applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type:docs-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions