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

Should support an option to turn off the index #6

Closed
adam-lynch opened this issue Aug 23, 2014 · 4 comments
Closed

Should support an option to turn off the index #6

adam-lynch opened this issue Aug 23, 2014 · 4 comments

Comments

@adam-lynch
Copy link

I have one file with one class and I was getting rundant stuff like:

class x

members:
x (which linked to "class X" above"
new x() (linked to constructor below)
aMethod
anotherMethod

I used a template like this to get what I wanted:

{{heading-depth-bump~}}
{{#if (constructorHasDocs)}}{{set "isConstructor" true~}}{{>function}}{{/if~}}
{{~#each (groupByKind (children))~}}
    {{#if (equal kind "member")}}{{>member}}{{/if~}}
    {{#if (equal kind "function")}}{{>function}}{{/if~}}
    {{#if (equal kind "namespace")}}{{>namespace}}{{/if~}}
    {{#if (equal kind "constant")}}{{>constant}}{{/if~}}
    {{#if (equal kind "typedef")}}{{>typedef}}{{/if~}}
    {{#if (equal kind "event")}}{{>event}}{{/if~}}
    {{~#if (equal kind "class")~}}
        {{set "isConstructor" false~}}
        {{~#unless (equal kind "class")~}}
            {{>head~}}
        {{/unless~}}
        {{>body~}}
        {{>members~}}
    {{/if~}}
    {{#if (equal kind "module")}}{{>module}}{{/if~}}
{{/each~}}
{{heading-depth-drop~}}

It was painful to debug through a few our your modules and eventually through dmd's templates to find the right bit of handlebars markup to use.

adam-lynch referenced this issue in nwutils/nw-updater Aug 24, 2014
See [CONTRIBUTING.md](CONTRIBUTING.md).

The API docs in the README are now generated from JSDoc comments. The JSDoc comments will need to be improved.

@edjafarov see above ^

Also fixed the default Grunt task.
@75lb
Copy link
Member

75lb commented Sep 9, 2014

hey.. sorry i have been slow to respond @adam-lynch , been up to my neck in it with "real work".. anyway, i'm back..

listen, you don't need to go through all the shit you did to get your customised docs, it's easy - i just haven't documented it yet.. that's my next job! will keep you posted.

@adam-lynch
Copy link
Author

cool 👍 Yeah it was awkward alright

@75lb
Copy link
Member

75lb commented Sep 13, 2014

btw, you shouldn't have seen an index if your input source code only contained one class.. i have a feeling you might have been using an old version.. were you using jsdoc2md? or the grunt or gulp plugin when you saw this output? Could you send a gist or something of your input source code so i can reproduce? Thanks..

@adam-lynch
Copy link
Author

grunt-jsdoc-to-markdown. See https://github.com/edjafarov/node-webkit-updater

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

No branches or pull requests

2 participants