1.3.3 • Published 2 years ago

@alexispuga/jsdoc-template v1.3.3

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
2 years ago

JSDoc Template CI

A decent template for JSDoc, redesigned from the default template.

Check out the demo.

Use it

Installing it via npm

NPM

npm i @alexispuga/jsdoc-template
jsdoc your/files -t ./node_modules/@alexispuga/jsdoc-template

Previews

Customize it

Make this template yours too:

  • Create a jsdoc.config.js file.
  • Modify it (see all supported properties).
  • Load it from jsdoc: jsdoc your/files -t this/template -c your/jsdoc.config.js.

Examples

Changing the default font (the simplest way)

// jsdoc.config.js

module.exports = {
    templates: {
        // Options for this template.
        custom: {
            tags: {
                head: [
                    `<style>body, html { font-family: serif; }</style>`
                ]
            }
        }
    }
}

Changing the theme for the prettified code and replacing it with my own (this time by using a JSON)

{
    "templates": {
        "default": {
            "staticFiles": {
                "include": [
                    "./path/to/your/theme.css"
                ]
            }
        },
        "custom": {
            "themes": {
                "prettify": "theme.css"
            }
        }
    }
}

Changing the site name and adding a favicon

// jsdoc.config.js

module.exports = {
    templates: {
        default: {
            staticFiles: {
                include: [
                    'path/to/your/favicon-32x32.png'
                ]
            }
        },
        custom: {
            siteName: 'My site',
            tags: {
                head: [
                    `<link href="favicon-32x32.png" rel="icon" sizes="32x32" type="image/png"/>`
                ]
            }
        }
    } 
};

Contribute

Your contributions are welcome (and needed). Please check the CONTRIBUTING file for details.

Versioning

This project uses SemVer for versioning. See the available versions here.

License

Any modification made to the default template is licensed under the Apache License, Version 2.0 - See the LICENSE file for details.

For more information, check the main project.

Acknowledgments

Thanks to all people who contributed to this project, and people who participated in the original one.

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.0-rc.15

4 years ago

1.1.0-rc.14

4 years ago

1.1.0-rc.13

4 years ago

1.1.0-rc.12

4 years ago

1.1.0-rc.10

4 years ago

1.1.0-rc.9

4 years ago

1.1.0-rc.2

4 years ago

1.1.0-rc.1

5 years ago

1.0.3

5 years ago

1.0.3-rc.1

5 years ago

1.0.2

5 years ago

1.0.2-rc.1

5 years ago

1.0.1

5 years ago

1.0.1-rc.16

5 years ago

1.0.1-rc.15

5 years ago

1.0.0

5 years ago

1.0.0-rc.1

5 years ago