Code Monkey home page Code Monkey logo

jsdoc-spotlight's Introduction

Spotlight

This is a template for JSDoc 3.

Image of Spotlight template

Getting Started

You'll need to run the following command the first time to install dependencies.

npm install

Configure options for documentation generation in your conf.json file :

{
  "name": "<Project name>",
  "plugins": ["templates/spotlight/plugins/categories"],
  "categoryfile" : "path/to/categories.json"
}

As this template uses the @category tag, you'll need to create a categories.json file :

{
  "category_1" : {"displayName" : "<Category 1>"},
  "category_2" : {"displayName" : "<Category 2>"},
  "category_3" : {"displayName" : "<Category 3>"},
}

Note that you don't have to use them, but ensure that categories.json still exists.

Then generate your documentation with the usual command (change path if needed) :

jsdoc src.js -a all -c conf.json -t spotlight -R readme.md

Rebuild project and expanding the library

To rebuild project, just run the following command :

npm run build

This will minify both src/static/js/scripts.js and src/static/css/styles.less. demo/docs will be also be updated so you can have a preview of your changes.

  • Less processing is performed with Less.
  • File minification is performed with Babel minify.
  • Documentation is generated with JSDoc 3.
  • Syntaxic coloration for JavaScript, JSON and HTML is rendered with Highlight.js

The template is designed to support mobile devices, but is optimized for desktop.

License

This project is licensed under the MIT License.

See LICENSE.md file for details.

jsdoc-spotlight's People

Contributors

lowlighter avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

hercules261188

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.