clean-jsdoc-theme 3.3.2 → 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 +16 -0
- package/LICENSE +1 -1
- package/README.md +203 -310
- package/jsdoc-config.json +7 -5
- package/minify.js +48 -0
- package/package.json +10 -6
- package/publish.js +805 -870
- package/static/fonts/Inconsolata-Regular.ttf +0 -0
- package/static/fonts/OpenSans-Regular.ttf +0 -0
- package/static/fonts/WorkSans-Bold.ttf +0 -0
- package/static/scripts/core.js +576 -0
- package/static/scripts/core.min.js +23 -0
- package/static/scripts/resize.js +59 -54
- package/static/scripts/search.js +217 -56
- package/static/scripts/search.min.js +11 -0
- package/static/scripts/third-party/hljs-line-num.js +1 -0
- package/static/scripts/third-party/hljs.js +1173 -0
- package/static/scripts/third-party/popper.js +6 -0
- package/static/scripts/third-party/tippy.js +2 -0
- package/static/scripts/third-party/tocbot.js +1 -0
- package/static/styles/clean-jsdoc-theme-base.css +738 -190
- package/static/styles/clean-jsdoc-theme-dark.css +208 -121
- package/static/styles/clean-jsdoc-theme-light.css +241 -168
- package/static/styles/clean-jsdoc-theme.min.css +1 -0
- package/tmpl/container.tmpl +13 -12
- package/tmpl/details.tmpl +16 -16
- package/tmpl/examples.tmpl +3 -1
- package/tmpl/icons.tmpl +43 -5
- package/tmpl/layout.tmpl +60 -79
- package/tmpl/members.tmpl +1 -2
- package/tmpl/method.tmpl +3 -4
- package/tmpl/mobile-sidebar.tmpl +21 -0
- package/tmpl/navbar-actions.tmpl +19 -0
- package/tmpl/navbar-menu.tmpl +21 -0
- package/tmpl/navbar.tmpl +14 -0
- package/tmpl/returns.tmpl +1 -1
- package/tmpl/search.tmpl +17 -0
- package/tmpl/sidebar-items.tmpl +24 -0
- package/tmpl/sidebar-title.tmpl +10 -0
- package/tmpl/sidebar.tmpl +9 -0
- package/tmpl/source.tmpl +7 -2
- package/tmpl/toc.tmpl +4 -0
- package/helpers/navbarBuilder.js +0 -0
- package/static/fonts/MavenPro-Regular.ttf +0 -0
- package/static/fonts/Montserrat-Regular.ttf +0 -0
- package/static/fonts/Muli-Black.ttf +0 -0
- package/static/fonts/OFL-hind.txt +0 -93
- package/static/fonts/OFL-montserrat.txt +0 -93
- package/static/scripts/fix-code-block.js +0 -53
- package/static/scripts/fix-navbar.js +0 -25
- package/static/scripts/linenumber.js +0 -25
- package/static/scripts/misc.js +0 -217
- package/static/scripts/third-party/lang-css.js +0 -2
- package/static/scripts/third-party/prettify.js +0 -28
- package/static/styles/reset.css +0 -351
- package/static/styles/third-party/ionicons.min.css +0 -11
- package/static/styles/third-party/prettify-jsdoc.css +0 -111
- package/static/styles/third-party/prettify-tomorrow.css +0 -5
package/jsdoc-config.json
CHANGED
|
@@ -8,14 +8,16 @@
|
|
|
8
8
|
"plugins": ["plugins/markdown"],
|
|
9
9
|
"opts": {
|
|
10
10
|
"encoding": "utf8",
|
|
11
|
-
"destination": "output/
|
|
11
|
+
"destination": "output/v4",
|
|
12
12
|
"recurse": true,
|
|
13
13
|
"template": "./",
|
|
14
14
|
"tutorials": "./demo/src/tutorials",
|
|
15
15
|
"theme_opts": {
|
|
16
|
-
"
|
|
16
|
+
"search": true,
|
|
17
|
+
"base_url": "https://ankdev.me/clean-jsdoc-theme/v4/",
|
|
18
|
+
"default_theme": "dark",
|
|
17
19
|
"title": "clean-jsdoc-theme",
|
|
18
|
-
"footer": "Fork: <a href='https://github.com/ankitskvmdam/clean-jsdoc-theme'>https://github.com/ankitskvmdam/clean-jsdoc-theme</a>",
|
|
20
|
+
"footer": "<div style='margin-bottom: 0.5rem;'>clean-jsdoc-theme</div> Fork: <a href='https://github.com/ankitskvmdam/clean-jsdoc-theme'>https://github.com/ankitskvmdam/clean-jsdoc-theme</a>",
|
|
19
21
|
"meta": [
|
|
20
22
|
{
|
|
21
23
|
"name": "Author",
|
|
@@ -53,8 +55,8 @@
|
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
},
|
|
56
|
-
"markdown.hardwrap": true,
|
|
57
58
|
"markdown": {
|
|
58
|
-
"hardwrap":
|
|
59
|
+
"hardwrap": false,
|
|
60
|
+
"idInHeadings": true
|
|
59
61
|
}
|
|
60
62
|
}
|
package/minify.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const uglify = require('uglify-js');
|
|
2
|
+
const csso = require('csso');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const fs = require('fs');
|
|
5
|
+
|
|
6
|
+
const pwd = path.join(__dirname);
|
|
7
|
+
const scriptsPath = path.join(pwd, 'static', 'scripts');
|
|
8
|
+
const cssPath = path.join(pwd, 'static', 'styles');
|
|
9
|
+
|
|
10
|
+
const uglifyFiles = [
|
|
11
|
+
{
|
|
12
|
+
src: path.join(scriptsPath, 'core.js'),
|
|
13
|
+
dest: path.join(scriptsPath, 'core.min.js')
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
src: path.join(scriptsPath, 'search.js'),
|
|
17
|
+
dest: path.join(scriptsPath, 'search.min.js')
|
|
18
|
+
}
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
const cssFilePaths = [
|
|
22
|
+
path.join(cssPath, 'clean-jsdoc-theme-base.css'),
|
|
23
|
+
path.join(cssPath, 'clean-jsdoc-theme-dark.css'),
|
|
24
|
+
path.join(cssPath, 'clean-jsdoc-theme-light.css')
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
let css = '';
|
|
28
|
+
|
|
29
|
+
for (const p of cssFilePaths) {
|
|
30
|
+
css += fs.readFileSync(p, 'utf-8');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const minifiedCss = csso.minify(css, { restructure: false });
|
|
34
|
+
|
|
35
|
+
fs.writeFileSync(
|
|
36
|
+
path.join(cssPath, 'clean-jsdoc-theme.min.css'),
|
|
37
|
+
minifiedCss.css
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
for (const f of uglifyFiles) {
|
|
41
|
+
const data = fs.readFileSync(f.src, 'utf-8');
|
|
42
|
+
|
|
43
|
+
const out = uglify.minify(data, {
|
|
44
|
+
compress: true
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
fs.writeFileSync(f.dest, out.code);
|
|
48
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clean-jsdoc-theme",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "A beautifully crafted theme/template for JSDoc 3. This theme/template looks and feels like a premium theme/template. This is a fully mobile responsive theme and also fully customizable theme.",
|
|
5
5
|
"main": "publish.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"
|
|
7
|
+
"build": "node minify.js && node node_modules/jsdoc/jsdoc.js -c jsdoc-config.json",
|
|
8
8
|
"lint:js": "eslint . --ext .js",
|
|
9
9
|
"lint:style": "stylelint static/styles/",
|
|
10
10
|
"lint": "concurrently --prefix '{time}-{pid}' 'npm run lint:types' 'npm run lint:style'"
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"url": "git+https://github.com/ankitskvmdam/clean-jsdoc-theme.git"
|
|
15
15
|
},
|
|
16
16
|
"author": "Ank",
|
|
17
|
-
"license": "
|
|
17
|
+
"license": "MIT",
|
|
18
18
|
"bugs": {
|
|
19
19
|
"url": "https://github.com/ankitskvmdam/clean-jsdoc-theme/issues"
|
|
20
20
|
},
|
|
21
|
-
"homepage": "https://ankdev.me/clean-jsdoc-theme/
|
|
21
|
+
"homepage": "https://ankdev.me/clean-jsdoc-theme/v4/index.html",
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"jsdoc": "3"
|
|
24
24
|
},
|
|
@@ -32,15 +32,19 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@jsdoc/eslint-config": "^1.1.6",
|
|
34
34
|
"concurrently": "^5.3.0",
|
|
35
|
+
"csso": "^5.0.3",
|
|
35
36
|
"eslint": "^7.22.0",
|
|
36
37
|
"prettier": "^2.2.1",
|
|
37
38
|
"stylelint": "^13.12.0",
|
|
38
39
|
"stylelint-config-sass-guidelines": "^7.1.0",
|
|
39
40
|
"stylelint-config-standard": "^20.0.0",
|
|
40
41
|
"stylelint-order": "^4.1.0",
|
|
41
|
-
"stylelint-scss": "^3.19.0"
|
|
42
|
+
"stylelint-scss": "^3.19.0",
|
|
43
|
+
"uglify-js": "^3.16.0"
|
|
42
44
|
},
|
|
43
45
|
"dependencies": {
|
|
44
|
-
"fs-extra": "^
|
|
46
|
+
"fs-extra": "^10.1.0",
|
|
47
|
+
"html-minifier": "^4.0.0",
|
|
48
|
+
"nanoid": "^3.3.4"
|
|
45
49
|
}
|
|
46
50
|
}
|