Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

Need to document layers

Open wangkuiyi opened this issue 9 years ago • 2 comments

All our layers are currently defined as Python functions in layers.py. In the future, when we are going to have more layers, we might have more modules.

At the right time, we need to document these layers by adding formal Python function comments, so could Sphinx automatically generate the documentation.

wangkuiyi avatar Nov 07 '17 19:11 wangkuiyi

Thanks for creating the issue @wangkuiyi . I have a few questions:

  1. Do we add the comments to this file at the moment ?
  2. If we do, what would be the preferred way of doing so :
    1. Add in the beginning of the function, eg:
       #
       # This function executes the following blob of code.
       #
       def fn(att):
             <code here>
      
    2. Add after function definition, eg:
      def fn(att):
             #
             # This function executes the following blob of code.
             #
            <code here>
      

kavyasrinet avatar Nov 07 '17 20:11 kavyasrinet

As we have API doc standard and a list of API doc jobs now, this issue could be closed.

luotao1 avatar Mar 20 '18 03:03 luotao1