1.1.0 • Published 2 years ago

@kdominic/dkdoc v1.1.0

Weekly downloads
12
License
ISC
Repository
github
Last release
2 years ago

DKDoc

DKDoc is a custom dark theme for JSDoc 3 and uses CodeMirror 5.64.0 to display the source code.

NOTE:
CodeMirror is includes as npm dependency and the files used are minimized and integrated in the documentation.
The DKDoc template uses also SimpleBar for the custom scrollbar (available through UNPKG).

Installation

npm i @kdominic/dkdoc

Feature

Navigation

  • Simple Searchbox for Classes / Members / Methods
  • Collapsible

Configuration

(jsdoc page - configuration)

Template

"opts": {
    "template": "node_modules/@kdominic/dkdoc"
}

Page Title

"templates": {
    "title": "{string} [title=Documentation]"
}

Page Logo

Text

"templates": {
    "logo": "{string|null|Object} [logo=DKDoc]"
}

OR

"templates": {
    "logo": {
        "type": "text",
        "src":  "{string} [src=DKDoc]"
    }
}

Image

"templates": {
    "logo": {
        "type": "img",
        "src":  "{string} <path to image>"
    }
}

Make logo to link

"templates": {
    "logo": {
        "type": "{string|null} [type=text]",
        "src":  "{string} [src=DKDoc]",
        "link": "{string} <page address>",
    }
}

Disable logo

"templates": {
    "logo": null
}

NOTE: You can also set logo to "none" or logo.type to null or "none" to disable the logo.

Collapsible Navigation

"templates": {
    "collapsibleNav": "{boolean} [collapsibleNav=false]"
}

Page Footer

"templates": {
    "footer": "{string} [title=Documentation generated by {@link JSDoc <version>}]"
}
1.1.0

2 years ago

1.0.11

3 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago