clean-jsdoc-theme 3.3.4 → 4.0.3

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.
Files changed (86) hide show
  1. package/.eslintignore +4 -4
  2. package/.eslintrc.js +3 -3
  3. package/.github/ISSUE_TEMPLATE/bug_report.md +43 -43
  4. package/.github/ISSUE_TEMPLATE/feature_request.md +27 -27
  5. package/.github/pull_request_template.md +16 -16
  6. package/.github/workflows/{codeql-analysis.yml → codeql.yml} +72 -67
  7. package/.github/workflows/greetings.yml +16 -0
  8. package/.prettierignore +2 -2
  9. package/.prettierrc +5 -5
  10. package/.stylelintignore +3 -3
  11. package/.stylelintrc +23 -23
  12. package/.travis.yml +30 -30
  13. package/CHANGELOG.md +232 -216
  14. package/CODE_OF_CONDUCT.md +76 -76
  15. package/CODE_OF_CONDUCT_HINDI.md +46 -46
  16. package/CONTRIBUTING.md +24 -24
  17. package/LICENSE +21 -21
  18. package/README.md +441 -546
  19. package/SECURITY.md +21 -21
  20. package/helpers/down-arrow.js +9 -9
  21. package/jsdoc-config.json +62 -60
  22. package/minify.js +52 -0
  23. package/package.json +50 -46
  24. package/publish.js +1131 -1197
  25. package/static/fonts/Inconsolata-Regular.ttf +0 -0
  26. package/static/fonts/OpenSans-Regular.ttf +0 -0
  27. package/static/fonts/WorkSans-Bold.ttf +0 -0
  28. package/static/scripts/core.js +576 -0
  29. package/static/scripts/core.min.js +23 -0
  30. package/static/scripts/resize.js +90 -85
  31. package/static/scripts/search.js +244 -77
  32. package/static/scripts/search.min.js +11 -0
  33. package/static/scripts/third-party/Apache-License-2.0.txt +202 -202
  34. package/static/scripts/third-party/fuse.js +8 -8
  35. package/static/scripts/third-party/hljs-line-num.js +1 -0
  36. package/static/scripts/third-party/hljs-original.js +5162 -0
  37. package/static/scripts/third-party/hljs.js +1 -0
  38. package/static/scripts/third-party/popper.js +6 -0
  39. package/static/scripts/third-party/tippy.js +2 -0
  40. package/static/scripts/third-party/tocbot.js +1 -0
  41. package/static/styles/clean-jsdoc-theme-base.css +959 -393
  42. package/static/styles/clean-jsdoc-theme-dark.css +407 -324
  43. package/static/styles/clean-jsdoc-theme-light.css +388 -319
  44. package/static/styles/clean-jsdoc-theme.min.css +1 -0
  45. package/tmpl/augments.tmpl +10 -10
  46. package/tmpl/container.tmpl +190 -189
  47. package/tmpl/details.tmpl +208 -208
  48. package/tmpl/example.tmpl +3 -3
  49. package/tmpl/examples.tmpl +40 -38
  50. package/tmpl/exceptions.tmpl +32 -32
  51. package/tmpl/icons.tmpl +72 -34
  52. package/tmpl/layout.tmpl +146 -165
  53. package/tmpl/mainpage.tmpl +10 -10
  54. package/tmpl/members.tmpl +42 -43
  55. package/tmpl/method.tmpl +139 -140
  56. package/tmpl/mobile-sidebar.tmpl +21 -0
  57. package/tmpl/navbar-actions.tmpl +19 -0
  58. package/tmpl/navbar-menu.tmpl +25 -0
  59. package/tmpl/navbar.tmpl +14 -0
  60. package/tmpl/params.tmpl +124 -124
  61. package/tmpl/properties.tmpl +109 -109
  62. package/tmpl/returns.tmpl +18 -18
  63. package/tmpl/search.tmpl +17 -0
  64. package/tmpl/sidebar-items.tmpl +24 -0
  65. package/tmpl/sidebar-title.tmpl +10 -0
  66. package/tmpl/sidebar.tmpl +9 -0
  67. package/tmpl/source.tmpl +12 -7
  68. package/tmpl/toc.tmpl +4 -0
  69. package/tmpl/tutorial.tmpl +19 -19
  70. package/tmpl/type.tmpl +6 -6
  71. package/helpers/navbarBuilder.js +0 -0
  72. package/static/fonts/MavenPro-Regular.ttf +0 -0
  73. package/static/fonts/Montserrat-Regular.ttf +0 -0
  74. package/static/fonts/Muli-Black.ttf +0 -0
  75. package/static/fonts/OFL-hind.txt +0 -93
  76. package/static/fonts/OFL-montserrat.txt +0 -93
  77. package/static/scripts/fix-code-block.js +0 -53
  78. package/static/scripts/fix-navbar.js +0 -25
  79. package/static/scripts/linenumber.js +0 -25
  80. package/static/scripts/misc.js +0 -217
  81. package/static/scripts/third-party/lang-css.js +0 -2
  82. package/static/scripts/third-party/prettify.js +0 -28
  83. package/static/styles/reset.css +0 -351
  84. package/static/styles/third-party/ionicons.min.css +0 -11
  85. package/static/styles/third-party/prettify-jsdoc.css +0 -111
  86. package/static/styles/third-party/prettify-tomorrow.css +0 -5
package/.eslintignore CHANGED
@@ -1,5 +1,5 @@
1
- node_modules
2
- output
3
- demo
4
- static/scripts/third-party
1
+ node_modules
2
+ output
3
+ demo
4
+ static/scripts/third-party
5
5
  static/styles/third-party
package/.eslintrc.js CHANGED
@@ -1,3 +1,3 @@
1
- module.exports = {
2
- extends: '@jsdoc'
3
- };
1
+ module.exports = {
2
+ extends: '@jsdoc'
3
+ };
@@ -1,43 +1,43 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Describe the bug**
11
-
12
- A clear and concise description of what the bug is.
13
-
14
- **To Reproduce**
15
-
16
- Steps to reproduce the behavior:
17
- 1. Go to '...'
18
- 2. Click on '....'
19
- 3. Scroll down to '....'
20
- 4. See error
21
-
22
- **Expected behavior**
23
-
24
- A clear and concise description of what you expected to happen.
25
-
26
- **Screenshots**
27
-
28
- If applicable, add screenshots to help explain your problem.
29
-
30
- **Desktop (please complete the following information):**
31
- - OS: [e.g. Windows]
32
- - Browser [e.g. chrome, safari, firefox]
33
- - Version [e.g. 22]
34
-
35
- **Smartphone (please complete the following information):**
36
- - Device: [e.g. iPhone6]
37
- - OS: [e.g. iOS8.1]
38
- - Browser [e.g. stock browser, safari]
39
- - Version [e.g. 22]
40
-
41
- **Additional context**
42
-
43
- Add any other context about the problem here.
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+
12
+ A clear and concise description of what the bug is.
13
+
14
+ **To Reproduce**
15
+
16
+ Steps to reproduce the behavior:
17
+ 1. Go to '...'
18
+ 2. Click on '....'
19
+ 3. Scroll down to '....'
20
+ 4. See error
21
+
22
+ **Expected behavior**
23
+
24
+ A clear and concise description of what you expected to happen.
25
+
26
+ **Screenshots**
27
+
28
+ If applicable, add screenshots to help explain your problem.
29
+
30
+ **Desktop (please complete the following information):**
31
+ - OS: [e.g. Windows]
32
+ - Browser [e.g. chrome, safari, firefox]
33
+ - Version [e.g. 22]
34
+
35
+ **Smartphone (please complete the following information):**
36
+ - Device: [e.g. iPhone6]
37
+ - OS: [e.g. iOS8.1]
38
+ - Browser [e.g. stock browser, safari]
39
+ - Version [e.g. 22]
40
+
41
+ **Additional context**
42
+
43
+ Add any other context about the problem here.
@@ -1,27 +1,27 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Is your feature request related to a problem? Please describe.**
11
-
12
- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13
-
14
-
15
- **Describe the solution you'd like**
16
-
17
- A clear and concise description of what you want to happen.
18
-
19
-
20
- **Describe alternatives you've considered**
21
-
22
- A clear and concise description of any alternative solutions or features you've considered.
23
-
24
-
25
- **Additional context**
26
-
27
- Add any other context or screenshots about the feature request here.
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+
12
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13
+
14
+
15
+ **Describe the solution you'd like**
16
+
17
+ A clear and concise description of what you want to happen.
18
+
19
+
20
+ **Describe alternatives you've considered**
21
+
22
+ A clear and concise description of any alternative solutions or features you've considered.
23
+
24
+
25
+ **Additional context**
26
+
27
+ Add any other context or screenshots about the feature request here.
@@ -1,16 +1,16 @@
1
- # Pull Request Template
2
-
3
- ## Description
4
-
5
- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
6
-
7
- Fixes # (issue)
8
-
9
- ## Type of change
10
-
11
- Please mark options that is/are relevant.
12
- - [ ] Bug fix (non-breaking change which fixes an issue)
13
- - [ ] New feature (non-breaking change which adds functionality)
14
- - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
15
- - [ ] This change requires a documentation update
16
- - [ ] Other (if so, then explain below briefly)
1
+ # Pull Request Template
2
+
3
+ ## Description
4
+
5
+ Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
6
+
7
+ Fixes # (issue)
8
+
9
+ ## Type of change
10
+
11
+ Please mark options that is/are relevant.
12
+ - [ ] Bug fix (non-breaking change which fixes an issue)
13
+ - [ ] New feature (non-breaking change which adds functionality)
14
+ - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
15
+ - [ ] This change requires a documentation update
16
+ - [ ] Other (if so, then explain below briefly)
@@ -1,67 +1,72 @@
1
- # For most projects, this workflow file will not need changing; you simply need
2
- # to commit it to your repository.
3
- #
4
- # You may wish to alter this file to override the set of languages analyzed,
5
- # or to provide custom queries or build logic.
6
- #
7
- # ******** NOTE ********
8
- # We have attempted to detect the languages in your repository. Please check
9
- # the `language` matrix defined below to confirm you have the correct set of
10
- # supported CodeQL languages.
11
- #
12
- name: "CodeQL"
13
-
14
- on:
15
- push:
16
- branches: [ master ]
17
- pull_request:
18
- # The branches below must be a subset of the branches above
19
- branches: [ master ]
20
- schedule:
21
- - cron: '39 21 * * 4'
22
-
23
- jobs:
24
- analyze:
25
- name: Analyze
26
- runs-on: ubuntu-latest
27
-
28
- strategy:
29
- fail-fast: false
30
- matrix:
31
- language: [ 'javascript' ]
32
- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33
- # Learn more:
34
- # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35
-
36
- steps:
37
- - name: Checkout repository
38
- uses: actions/checkout@v2
39
-
40
- # Initializes the CodeQL tools for scanning.
41
- - name: Initialize CodeQL
42
- uses: github/codeql-action/init@v1
43
- with:
44
- languages: ${{ matrix.language }}
45
- # If you wish to specify custom queries, you can do so here or in a config file.
46
- # By default, queries listed here will override any specified in a config file.
47
- # Prefix the list here with "+" to use these queries and those in the config file.
48
- # queries: ./path/to/local/query, your-org/your-repo/queries@main
49
-
50
- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51
- # If this step fails, then you should remove it and run the build manually (see below)
52
- - name: Autobuild
53
- uses: github/codeql-action/autobuild@v1
54
-
55
- # ℹ️ Command-line programs to run using the OS shell.
56
- # 📚 https://git.io/JvXDl
57
-
58
- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59
- # and modify them (or add more) to build your code if your project
60
- # uses a compiled language
61
-
62
- #- run: |
63
- # make bootstrap
64
- # make release
65
-
66
- - name: Perform CodeQL Analysis
67
- uses: github/codeql-action/analyze@v1
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ "master" ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ "master" ]
20
+ schedule:
21
+ - cron: '23 8 * * 1'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'javascript' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
+ # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@v3
42
+
43
+ # Initializes the CodeQL tools for scanning.
44
+ - name: Initialize CodeQL
45
+ uses: github/codeql-action/init@v2
46
+ with:
47
+ languages: ${{ matrix.language }}
48
+ # If you wish to specify custom queries, you can do so here or in a config file.
49
+ # By default, queries listed here will override any specified in a config file.
50
+ # Prefix the list here with "+" to use these queries and those in the config file.
51
+
52
+ # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53
+ # queries: security-extended,security-and-quality
54
+
55
+
56
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57
+ # If this step fails, then you should remove it and run the build manually (see below)
58
+ - name: Autobuild
59
+ uses: github/codeql-action/autobuild@v2
60
+
61
+ # ℹ️ Command-line programs to run using the OS shell.
62
+ # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63
+
64
+ # If the Autobuild fails above, remove it and uncomment the following three lines.
65
+ # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66
+
67
+ # - run: |
68
+ # echo "Run, Build Application using script"
69
+ # ./location_of_script_within_repo/buildscript.sh
70
+
71
+ - name: Perform CodeQL Analysis
72
+ uses: github/codeql-action/analyze@v2
@@ -0,0 +1,16 @@
1
+ name: Greetings
2
+
3
+ on: [pull_request_target, issues]
4
+
5
+ jobs:
6
+ greeting:
7
+ runs-on: ubuntu-latest
8
+ permissions:
9
+ issues: write
10
+ pull-requests: write
11
+ steps:
12
+ - uses: actions/first-interaction@v1
13
+ with:
14
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
15
+ issue-message: "Wonderful, you have created your first issue for clean-jsdoc-theme."
16
+ pr-message: "That's Amazing! Thanks for creating your first PR for clean-jsdoc-theme."
package/.prettierignore CHANGED
@@ -1,3 +1,3 @@
1
- static/styles/third-party
2
- static/scripts/third-party
1
+ static/styles/third-party
2
+ static/scripts/third-party
3
3
  demo
package/.prettierrc CHANGED
@@ -1,5 +1,5 @@
1
- {
2
- "tabWidth": 4,
3
- "singleQuote": true,
4
- "endOfLine": "crlf"
5
- }
1
+ {
2
+ "tabWidth": 4,
3
+ "singleQuote": true,
4
+ "endOfLine": "crlf"
5
+ }
package/.stylelintignore CHANGED
@@ -1,4 +1,4 @@
1
- output
2
- node_modules
3
- static/styles/third-party
1
+ output
2
+ node_modules
3
+ static/styles/third-party
4
4
  demo
package/.stylelintrc CHANGED
@@ -1,23 +1,23 @@
1
- {
2
- "extends": "stylelint-config-sass-guidelines",
3
- "plugins": [
4
- "stylelint-order",
5
- "stylelint-scss"
6
- ],
7
- "rules": {
8
- "indentation": 4,
9
- "order/order": [
10
- "custom-properties",
11
- "declarations"
12
- ],
13
- "order/properties-alphabetical-order": true,
14
- "block-opening-brace-space-before": "always",
15
- "block-closing-brace-newline-after": [
16
- "always", {
17
- "ignoreAtRules": [ "if", "else" ]
18
- }
19
- ],
20
- "at-rule-name-space-after": "always",
21
- "rule-empty-line-before": "always",
22
- }
23
- }
1
+ {
2
+ "extends": "stylelint-config-sass-guidelines",
3
+ "plugins": [
4
+ "stylelint-order",
5
+ "stylelint-scss"
6
+ ],
7
+ "rules": {
8
+ "indentation": 4,
9
+ "order/order": [
10
+ "custom-properties",
11
+ "declarations"
12
+ ],
13
+ "order/properties-alphabetical-order": true,
14
+ "block-opening-brace-space-before": "always",
15
+ "block-closing-brace-newline-after": [
16
+ "always", {
17
+ "ignoreAtRules": [ "if", "else" ]
18
+ }
19
+ ],
20
+ "at-rule-name-space-after": "always",
21
+ "rule-empty-line-before": "always",
22
+ }
23
+ }
package/.travis.yml CHANGED
@@ -1,30 +1,30 @@
1
- stages:
2
- - name: test
3
- - name: deploy
4
- if: branch == production
5
-
6
- cache:
7
- directories:
8
- - node_modules
9
-
10
- jobs:
11
- include:
12
- - stage: test
13
- language: node_js
14
- node_js:
15
- - "12"
16
- install: "npm install && npm install jsdoc"
17
- script:
18
- - npm run test
19
-
20
- - stage: deploy
21
- language: node_js
22
- node_js: "12"
23
- script: echo "Deploying to npm ..."
24
- deploy:
25
- provider: npm
26
- email: $NPM_EMAIL
27
- api_token: $NPM_API_TOKEN
28
- cleanup: false
29
- on:
30
- tags: true
1
+ stages:
2
+ - name: test
3
+ - name: deploy
4
+ if: branch == production
5
+
6
+ cache:
7
+ directories:
8
+ - node_modules
9
+
10
+ jobs:
11
+ include:
12
+ - stage: test
13
+ language: node_js
14
+ node_js:
15
+ - "12"
16
+ install: "npm install && npm install jsdoc"
17
+ script:
18
+ - npm run test
19
+
20
+ - stage: deploy
21
+ language: node_js
22
+ node_js: "12"
23
+ script: echo "Deploying to npm ..."
24
+ deploy:
25
+ provider: npm
26
+ email: $NPM_EMAIL
27
+ api_token: $NPM_API_TOKEN
28
+ cleanup: false
29
+ on:
30
+ tags: true