Code Monkey home page Code Monkey logo

docolatte's Introduction

Hi there ๐Ÿ‘‹

Hire me. I love to code.

docolatte's People

Contributors

amekusa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docolatte's Issues

Thanks ๐Ÿ’–

I didn't know where to leave this comment, so sorry if this is not the best place, but I wanted to thank you for this project. It has been so hard to find a theme for JSDoc! You have no idea! Yours it's just perfect ๐Ÿ‘Œ

Bug in TmplUtil::list

First of all: I love this template. One of the best!

There is a bug in TempUtil - you set the length of the items array instead of using a comparison operator! So the method will only render the first item...

Undocumented tag @modifies does not render correctly.

Hi,
Excellent theme, thank you.

I'm not sure if this is a you issue or a jsdoc issue, but got to start somewhere.

According to this issue here: jsdoc/jsdoc#1283
JSDoc has an undocumented @modifies tag. The linked commit: jsdoc/jsdoc@2f99af8 suggests that you use it just like the @param tag.

However when I use it like that it doesn't render out properly.

If I use the style suggested on the linked issue:

/**
  * @modifies {unread} The unread count is updated
  */
  async function_name() {...}

It renders like this:
modifies_1

If I use the standard @param style, like this:

/**
  * @modifies {Number} unread The unread count is updated
  */
  async function_name() {...}

It renders like this:
modifies_2

If I use this format:

/**
  * @modifies The unread count is updated
  */
  async function_name() {...}

It renders this:
modifies_3

Running
jsdoc -X .... produces this output (on this style: @modifies {Number} unread The unread count is updated):

"params": [
            {
                "type": {
                    "names": [
                        "String"
                    ]
                },
                "description": "<p>The id of the notification to mark as read</p>",
                "name": "id"
            }
        ],
"modifies": [
            {
                "type": {
                    "names": [
                        "Number"
                    ]
                },
                "description": "<p>unread The unread count is updated</p>"
            }
        ],
"returns": [
            {
                "type": {
                    "names": [
                        "Boolean"
                    ]
                },
                "description": "<p>true if the database was updated successfully</p>"
            }
        ],

From this I gather that the reason the name 'unread' doesn't appear is because either the jsdoc parser itself (or the markdown plugin) isn't creating a 'name' key. But there is a description, so why does that not end up in the rendered output?

TaffyDB Warning.. But otherwise Awesome!

I've looked at as many JSDoc templates as I could find and yours is easily my favorite!
I installed it but got the high severity vulnerability message in npm so I had to uninstall since security is a big deal around here.
I guess JSDoc has moved on from using TaffyDB? If you could update the template I would happily use it and highly recommend it to all my coworkers.

Thanks for all the work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.