@braintree/jsdoc-template 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/LICENSE +27 -0
- package/README.md +89 -0
- package/package.json +51 -0
- package/publish.js +676 -0
- package/static/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/static/fonts/OpenSans-Bold-webfont.svg +1830 -0
- package/static/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/static/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- package/static/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
- package/static/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- package/static/fonts/OpenSans-Italic-webfont.eot +0 -0
- package/static/fonts/OpenSans-Italic-webfont.svg +1830 -0
- package/static/fonts/OpenSans-Italic-webfont.woff +0 -0
- package/static/fonts/OpenSans-Light-webfont.eot +0 -0
- package/static/fonts/OpenSans-Light-webfont.svg +1831 -0
- package/static/fonts/OpenSans-Light-webfont.woff +0 -0
- package/static/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- package/static/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
- package/static/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- package/static/fonts/OpenSans-Regular-webfont.eot +0 -0
- package/static/fonts/OpenSans-Regular-webfont.svg +1831 -0
- package/static/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/static/fonts/OpenSans-Semibold-webfont.eot +0 -0
- package/static/fonts/OpenSans-Semibold-webfont.svg +1830 -0
- package/static/fonts/OpenSans-Semibold-webfont.ttf +0 -0
- package/static/fonts/OpenSans-Semibold-webfont.woff +0 -0
- package/static/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
- package/static/fonts/OpenSans-SemiboldItalic-webfont.svg +1830 -0
- package/static/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- package/static/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
- package/static/icons/home.svg +4 -0
- package/static/icons/search.svg +4 -0
- package/static/scripts/linenumber.js +23 -0
- package/static/scripts/pagelocation.js +89 -0
- package/static/styles/collapse.css +27 -0
- package/static/styles/jsdoc-default.css +953 -0
- package/static/styles/prettify-jsdoc.css +111 -0
- package/static/styles/prettify-tomorrow.css +138 -0
- package/tmpl/augments.tmpl +10 -0
- package/tmpl/container.tmpl +213 -0
- package/tmpl/details.tmpl +223 -0
- package/tmpl/example.tmpl +2 -0
- package/tmpl/examples.tmpl +14 -0
- package/tmpl/exceptions.tmpl +28 -0
- package/tmpl/layout.tmpl +150 -0
- package/tmpl/mainpage.tmpl +9 -0
- package/tmpl/members.tmpl +38 -0
- package/tmpl/method.tmpl +128 -0
- package/tmpl/params.tmpl +125 -0
- package/tmpl/properties.tmpl +111 -0
- package/tmpl/returns.tmpl +17 -0
- package/tmpl/source.tmpl +9 -0
- package/tmpl/tutorial.tmpl +23 -0
- package/tmpl/type.tmpl +11 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# CHANGELOG
|
|
2
|
+
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
- feat(deps): Add conventional commits
|
|
6
|
+
- build(other): Upgrade to Node 18
|
|
7
|
+
- feat(deps): Remove `taffydb`
|
|
8
|
+
|
|
9
|
+
## v3.4.0 (2020-10-15)
|
|
10
|
+
|
|
11
|
+
* Added a postprocess function option to template config options
|
|
12
|
+
|
|
13
|
+
## 3.3.0
|
|
14
|
+
|
|
15
|
+
* Added support for templates.collapse option. When set to true only the active component\'s members are expanded.
|
|
16
|
+
* Added templates.resources option that takes an object where the keys are the labels and the values are links to external resources.
|
|
17
|
+
* Minor css bugfixes
|
|
18
|
+
|
|
19
|
+
## 3.2.0
|
|
20
|
+
|
|
21
|
+
* Fix issue where all elements would be hidden if no excludePattern is included ([#16] thanks [@mercmobily])
|
|
22
|
+
* Display bullet points in documentation ([#17]) thanks [@mercmobily])
|
|
23
|
+
* Allow `disableSort` to be included in template to prevent automatic sorting of classes and methods ([#15] thanks [@mercmobily])
|
|
24
|
+
|
|
25
|
+
## 3.1.1
|
|
26
|
+
|
|
27
|
+
* Hide hidden modules from members section
|
|
28
|
+
|
|
29
|
+
## 3.1.0
|
|
30
|
+
|
|
31
|
+
* Add anchor tags to examples
|
|
32
|
+
* Increase max-width of sections
|
|
33
|
+
|
|
34
|
+
[@mercmobily]: /mercmobily/
|
|
35
|
+
[#15]: /braintree/jsdoc-template/pull/15
|
|
36
|
+
[#16]: /braintree/jsdoc-template/pull/16
|
|
37
|
+
[#17]: /braintree/jsdoc-template/pull/17
|
package/LICENSE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
## JSDoc 3
|
|
2
|
+
|
|
3
|
+
JSDoc 3 is free software, licensed under the Apache License, Version 2.0 (the
|
|
4
|
+
"License"). Commercial and non-commercial use are permitted in compliance with
|
|
5
|
+
the License.
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2011-2015 Michael Mathews <micmath@gmail.com> and the
|
|
8
|
+
[contributors to JSDoc](https://github.com/jsdoc3/jsdoc/graphs/contributors).
|
|
9
|
+
All rights reserved.
|
|
10
|
+
|
|
11
|
+
You may obtain a copy of the License at:
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
|
|
14
|
+
In addition, a copy of the License is included with this distribution.
|
|
15
|
+
|
|
16
|
+
As stated in Section 7, "Disclaimer of Warranty," of the License:
|
|
17
|
+
|
|
18
|
+
> Licensor provides the Work (and each Contributor provides its Contributions)
|
|
19
|
+
> on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
20
|
+
> express or implied, including, without limitation, any warranties or
|
|
21
|
+
> conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
22
|
+
> PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
23
|
+
> appropriateness of using or redistributing the Work and assume any risks
|
|
24
|
+
> associated with Your exercise of permissions under this License.
|
|
25
|
+
|
|
26
|
+
The source code for JSDoc 3 is available at:
|
|
27
|
+
https://github.com/jsdoc3/jsdoc
|
package/README.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Braintree JSDoc Template
|
|
2
|
+
|
|
3
|
+
A clean, responsive documentation template with search and navigation highlighting for JSDoc 3. Forked from [github.com/nijikokun/minami](https://github.com/nijikokun/minami).
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## Responsive
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
## Uses
|
|
12
|
+
|
|
13
|
+
- [JSdoc salty](https://github.com/jsdoc/jsdoc/tree/main/packages/jsdoc-salty)
|
|
14
|
+
- [Underscore Template library](http://documentcloud.github.com/underscore/#template)
|
|
15
|
+
- [Algolia DocSearch](https://community.algolia.com/docsearch/)
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Clone repository to your designated `jsdoc` template directory, then:
|
|
20
|
+
|
|
21
|
+
### Node.js Dependency
|
|
22
|
+
|
|
23
|
+
In your projects `package.json` file add a generate script:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
"script": {
|
|
27
|
+
"generate-docs": "node_modules/.bin/jsdoc --configure .jsdoc.json --verbose"
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
In your `.jsdoc.json` file, add a template option.
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
"opts": {
|
|
35
|
+
"template": "node_modules/jsdoc-template"
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Example JSDoc Config
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"tags": {
|
|
44
|
+
"allowUnknownTags": true,
|
|
45
|
+
"dictionaries": ["jsdoc"]
|
|
46
|
+
},
|
|
47
|
+
"source": {
|
|
48
|
+
"include": ["lib", "package.json", "README.md"],
|
|
49
|
+
"includePattern": ".js$",
|
|
50
|
+
"excludePattern": "(node_modules/|docs)"
|
|
51
|
+
},
|
|
52
|
+
"plugins": [
|
|
53
|
+
"plugins/markdown"
|
|
54
|
+
],
|
|
55
|
+
"templates": {
|
|
56
|
+
"referenceTitle": "My SDK Name",
|
|
57
|
+
"disableSort": false,
|
|
58
|
+
"collapse": true,
|
|
59
|
+
"resources": {
|
|
60
|
+
"google": "https://www.google.com/"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"opts": {
|
|
64
|
+
"destination": "./docs/",
|
|
65
|
+
"encoding": "utf8",
|
|
66
|
+
"private": true,
|
|
67
|
+
"recurse": true,
|
|
68
|
+
"template": "./node_modules/jsdoc-template"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Note: `referenceTitle` and `disableSort` will affect the output of this theme.
|
|
74
|
+
|
|
75
|
+
If you would like to enable [Algolia DocSearch](https://community.algolia.com/docsearch/), you can pass a `search` object into the `templates` object.
|
|
76
|
+
|
|
77
|
+
```json
|
|
78
|
+
"templates": {
|
|
79
|
+
"search": {
|
|
80
|
+
"apiKey": "your-api-key",
|
|
81
|
+
"indexName": "Your index name. Defaults to braintree.",
|
|
82
|
+
"hitsPerPage": "Number of Results to show. Defaults to 7.",
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## License
|
|
88
|
+
|
|
89
|
+
Licensed under the Apache2 license.
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@braintree/jsdoc-template",
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"description": "Braintree JSDoc 3 Template",
|
|
5
|
+
"main": "publish.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"static",
|
|
8
|
+
"tmpl",
|
|
9
|
+
"publish.js",
|
|
10
|
+
"CHANGELOG.md",
|
|
11
|
+
"LICENSE",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"lint": "eslint .",
|
|
16
|
+
"test": "npm run lint",
|
|
17
|
+
"preversion": "./scripts/preversion",
|
|
18
|
+
"prepare": "husky",
|
|
19
|
+
"commit": "cz"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/braintree/jsdoc-template"
|
|
24
|
+
},
|
|
25
|
+
"author": "Braintreeps <code@getbraintree.com>",
|
|
26
|
+
"licenses": [
|
|
27
|
+
{
|
|
28
|
+
"type": "Apache-2.0",
|
|
29
|
+
"url": "http://www.apache.org/licenses/LICENSE-2.0"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/braintree/jsdoc-template"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/braintree/jsdoc-template",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@commitlint/cli": "^20.5.0",
|
|
38
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
39
|
+
"@jsdoc/salty": "^0.2.12",
|
|
40
|
+
"commitizen": "^4.3.1",
|
|
41
|
+
"cz-customizable": "^7.5.4",
|
|
42
|
+
"eslint": "^8.13.0",
|
|
43
|
+
"eslint-config-braintree": "^5.0.1",
|
|
44
|
+
"husky": "^9.1.7"
|
|
45
|
+
},
|
|
46
|
+
"config": {
|
|
47
|
+
"commitizen": {
|
|
48
|
+
"path": "./node_modules/cz-customizable"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|