Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.
/ jsdoc-spotlight Public archive

๐Ÿ“œ A template for JSDoc 3.

License

Notifications You must be signed in to change notification settings

lowlighter/jsdoc-spotlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.