Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customise output #31

Open
techhazard opened this issue Oct 14, 2014 · 8 comments
Open

Customise output #31

techhazard opened this issue Oct 14, 2014 · 8 comments

Comments

@techhazard
Copy link

I'd really like to customise the default output.
Something like how the extra tags is defined, but including the default tags like description (or perhaps just an on/off switch for the parameters).
And with a reset button to get back the defaults.

I've already pulled the repo and am looking into it, but I've got no experience in JS or CS, only in C++ and a little PHP.

@techhazard
Copy link
Author

I personally prefer this:

/**
 * @function [function name]
 *
 * @brief    [brief description]
 * @detail   [detailed descr]
 *
 * @param    {type} {name} [descr]
 *  "..."
 * @return   {type} [descr]
 *
 * @pre      [precondition]
 * @post     [postcondition]
 *
 * @author   [name]
 * @email    [email]
 */

So I hope you see my desire to customise the output.

@lukasoppermann
Copy link

I would also like to customise the output, although I rather want to have less info, in contrast to @awesomefireduck.

@kankaristo
Copy link

It would also be nice to be able to customize the tag format.

We use Sphinx, which uses the following format:

/**
 * Brief description.
 *
 * Longer description.
 *
 * :param parameterA: Parameter description.
 * :param parameterB: Parameter description.
 *
 * :returns: Description of return value.
 */

@return can already be customized, but @param and others can't be.

Also, customizing the "trigger" (/**) would be nice. We have an internal tool, which actually uses /*!.

@hikerpig
Copy link

hikerpig commented Aug 6, 2015

We write coffeescript and use codo as doc generator, it would be nice to be able to customize the form of comments. Replace the * with #

    # Given a obj and a nested keyname, return the value
    # Safe from errors
    # @param {Object} obj
    # @param {String} key
    # @return by default is undefined
    getVal = (obj, key) ->
      unless obj then return obj
      keyAttr = key.split('.')
      val = obj

      for k in keyAttr
        if val and val.hasOwnProperty(k)
          val = val[k]
        else
          return undefined
      val

@MoritzKn
Copy link
Collaborator

MoritzKn commented Oct 6, 2016

Docblockr already has a few configurations to change the output style and all of them are error-prone, because this configurations have to be considered in many places.
But customizing the output is a heavily requested feature. Currently these issues request a more specific but similar functionality:

We should think about how to realize these customizations without introducing too many special cases.

@techhazard
Copy link
Author

I no longer use Atom, so this isn't an issue for me.
Good luck with this!

@lukasoppermann
Copy link

I still use it with dockblockr and would appreciate this feature.

@glfmn
Copy link

glfmn commented Jun 6, 2018

#223 is also relevant to this

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

No branches or pull requests

7 participants