carbonldp-ts-docs-engine
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Carbon LDP TS Docs Engine

npm version CircleCI

Official Typescript Docs Engine for Carbon LDP Projects. Automatically generates documentation from source code's comments.

Installation

npm install carbonldp-ts-docs-engine

Usage

import DocsEngine from "carbonldp-ts-docs-engine";

const options:DocsEngine.Options = {
	src: "src/",                                // Directory from where the documentation is generated
	out: "docs/",                               // Directory where the documentation is stored
	mode: "development",                        // Optional, mode in which the documentation is built
	logLevel: "info",                           // Optional, filter logs by different levels 
	descriptionTemplate: "path/to/template",    // Optional, must be a nunjucks file
	npmName: "carbonldp-ts-docs-engine",        // Optional, name of the npm package
	name: "CarbonLDP TS Docs Engine",           // Optional, name of the project
	mainClass: "DocsEngine",                    // Optional, name of the main class of the project
};

DocsEngine.generate(options)
	.then( () => {
		console.log("Docs generated");	
	} )
	.catch( (error) => {
		console.log("Error generating documentation");
	} )

License

Copyright (c) 2015-present, Base22 Technology Group, LLC
All rights reserved.

This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.

/carbonldp-ts-docs-engine/

    Package Sidebar

    Install

    npm i carbonldp-ts-docs-engine

    Weekly Downloads

    0

    Version

    1.1.0

    License

    BSD-3-Clause

    Unpacked Size

    5.89 MB

    Total Files

    186

    Last publish

    Collaborators

    • carbondeployer