Code Monkey home page Code Monkey logo

endokken's Introduction

Endokken Build Status npm version Dependency Status

Generates HTML documentation for your Atom package from AtomDoc comments in your code and your GitHub project's own Markdown files.

Command-Line Interface

You can simply run the endokken command from the root directory of your Atom package and it will generate HTML documentation in the ./docs directory.

$ endokken

Endokken also supports the following command-line options:

  • --extension [EXT] — Adds the given extension to all generated documentation files. Defaults to no extension for REST-like purity.
  • --metadata [FILENAME] — Dumps the AtomDoc metadata to the file name you provide or api.json if no filename is given.
  • --title [TITLE] — Title of index page, default is name of current directory.
  • --version — Displays the version.
  • --help — Displays command-line help.

Acknowledgements

Endokken was originally envisioned as YARD for Atom packages. As such, Endokken owes a lot of its inspiration and ideas to YARD and its author Loren Segal.

Copyright

Copyright © 2014-2015 by Lee Dohm and Lifted Studios. See LICENSE for details.

endokken's People

Contributors

lee-dohm avatar klorenz avatar jysperm avatar

Stargazers

Evy avatar Steffen Bruchmann avatar Vaughan Rouesnel avatar shane0 avatar yuan.yinchun avatar Booker Zhao avatar EGOIST avatar eagleon avatar  avatar Larry Xu avatar Dudley Carr avatar Hernan (Yidi) Ke avatar  avatar Christoffer Karlsson avatar

Watchers

Jesse Grosjean avatar James Cloos avatar  avatar

endokken's Issues

"Cleaner" default styling?

First thanks for doing this!

I'm sure all the issues that I raise here are pretty easily solvable with some custom styling/tweaking, but I wonder if the defaults should change. I really like the way that the Atom.io generated API docs omit much of the boiler plate that most documentation tools generate. I think it would make sense for Atom package generated docs to have that same feel.

As some examples of boiler plate included in endokken but not in Atom api docs:

  1. Ommit the "Class:" before the generated classname
  2. Ommit the table of class info after classname (Class Name, Superclass, File)
  3. Ommit "Description" heading before class description
  4. Make each class description "collapsed" by default so you just see the method signature. Click to expand... again like Atom.io API docs.

Thanks,
Jesse

Error when generating documentation for the minimap package

I'm not sure what trigger this error as I was just trying your package for the first time. Maybe it's something related to the various mixins used in the package?

/Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/node_modules/donna/src/metadata.coffee:363
        moduleName = exp.args[0].base.value;
                                     ^
TypeError: Cannot read property 'value' of undefined
  at Metadata.module.exports.Metadata.evalCall (/Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/node_modules/donna/src/metadata.coffee:282:36)
  at Metadata.module.exports.Metadata.eval (/Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/node_modules/donna/src/metadata.coffee:23:5)
  at Metadata.module.exports.Metadata.visitAssign (/Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/node_modules/donna/src/metadata.coffee:36:13)
  at Metadata.module.exports.Metadata.visit (/Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/node_modules/donna/src/metadata.coffee:21:5)
  at /Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/node_modules/donna/src/metadata.coffee:18:42
  at /Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/node_modules/coffee-script/lib/coffee-script/nodes.js:210:17
  at Block.exports.Base.Base.eachChild (/Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/node_modules/coffee-script/lib/coffee-script/nodes.js:198:17)
  at Block.exports.Base.Base.traverseChildren (/Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/node_modules/coffee-script/lib/coffee-script/nodes.js:208:19)
  at Metadata.module.exports.Metadata.generate (/Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/node_modules/donna/src/metadata.coffee:18:11)
  at generateMetadataSlug (/Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/node_modules/donna/src/donna.coffee:121:14)
  at Object.generateMetadata (/Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/node_modules/donna/src/donna.coffee:75:24)
  at Cli.generateMetadata (/Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/src/cli.coffee:79:23)
  at Cli.run (/Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/src/cli.coffee:30:6)
  at Object.<anonymous> (/Users/cedric/.nvm/v0.10.21/lib/node_modules/endokken/bin/endokken:7:5)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:312:12)
  at Function.Module.runMain (module.js:497:10)
  at startup (node.js:119:16)
  at node.js:901:3

Configuration:

  • OSX 10.10.2
  • Node 0.10.21

Add support for commands

This might be a little harder than the keymaps and menus, since it will require parsing of the source code.

Add support for styles/classes?

Would it be useful to document the "public" stylesheet classes that an Atom package provides? For instance I have a public stylesheet class on my indentation indicator package that allows the user to restyle the indicator. It might be helpful for that kind of thing to show up in the Endokken documentation.

Option for file extension

Currently files are generated with no extension at all. Chrome is able to open them fine, but Safari refuses to completely. There should be an option to generate files with .html extension (or possibly any extension desired?)

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.