🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

typedoc-plugin-tutorials

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typedoc-plugin-tutorials

Integrate tutorials to your documentation

latest
Source
npmnpm
Version
0.0.1-alpha.1
Version published
Maintainers
1
Created
Source

Typedoc-plugin-tutorials

This typedoc plugin allows you to create tutorials for your typedoc documentation. Those tutorial pages will be generated using your theme. The tutorial index is added as a doc page visible in the global menu of your documentation. This page generates a basic index page containing all your tutorials.

Example generated tutorials page: https://gerkindev.github.io/vuejs-datatable/tutorials/index.html

Example typedoc.json file:

{
	"tutorials-map": "./tutorials/tutorials.json",
	"tutorials-directory": "./tutorials"
}

In this examples, tutorials general informations (title, description & children) will be loaded from ./tutorials/tutorials.json. Markdown files (.md) are expected to be found under the ./tutorials directory.

Example tutorials.json file

{
	"my-first-tutorial": {
		"title": "My first tutorial",
		"description": "This tutorial is just an introduction",
		"children": {
			"my-second-tutorial": {
				"title": "My second tutorial",
				"description": "This tutorial is a child of the 1st tutorial"
			}
		}
	},
	"hello-world": {
		"title": "Hello world"
	}
}

This configuration will look for my-first-tutorial.md, my-second-tutorial.md & hello-world.md in the specified tutorials directory and render them as tutorial pages.

Each tutorial key must be unique, even through children.

In your doc comments, linking with tutorials can be done the following ways:

/**
 * This is the description of the doc comment. Here is a link to [[tutorial:my-first-tutorial]].
 *
 * @tutorial my-second-tutorial An optional descriptionto attach to the tutorial
 */
void myFunc(){}

Keywords

typedocplugin

FAQs

Package last updated on 14 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts