Gathering detailed insights and metrics for angular-jsdoc-2
Gathering detailed insights and metrics for angular-jsdoc-2
Gathering detailed insights and metrics for angular-jsdoc-2
Gathering detailed insights and metrics for angular-jsdoc-2
npm install angular-jsdoc-2
Typescript
Module System
Node Version
NPM Version
HTML (48.95%)
JavaScript (40.24%)
CSS (10.67%)
Shell (0.14%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
148 Stars
222 Commits
57 Forks
9 Watchers
4 Branches
20 Contributors
Updated on Jul 25, 2023
Latest Version
0.1.4
Package Id
angular-jsdoc-2@0.1.4
Size
167.52 kB
NPM Version
3.7.3
Node Version
6.2.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
5
5
JSDoc 3 Template for AngularJS.
A JSDoc plugin and template for AngularJS, nothing else!
NOTE: the location of configure file and template directory has been moved with the release of 1.0.0 Please make changes accordingly for your gulp file.
node_modules/angular-jsdoc/conf.json
New: node_modules/angular-jsdoc/common/conf.json
node_modules/angular-jsdoc/template
New: node_modules/angular-jsdoc/default
Blog: Sigh, AngularJS Documentation
<img src=http://i.imgur.com/FPo9x25.gif width=50% />
$ npm install jsdoc angular-jsdoc --save-dev
If you intend to use it with Grunt also execute:
$ npm install grunt-jsdoc --save-dev
// or you can run in command line
$ node_modules/jsdoc/jsdoc.js \
--configure node_modules/angular-jsdoc/common/conf.json \
--template node_modules/angular-jsdoc/angular-template \
--destination build/docs \
--readme README.md \
--recurse directives services
--tutorials tutorials
var shell = require('gulp-shell');
gulp.task('docs', shell.task([
'node_modules/jsdoc/jsdoc.js '+
'-c node_modules/angular-jsdoc/common/conf.json '+ // config file
'-t node_modules/angular-jsdoc/angular-template '+ // template file
'-d build/docs '+ // output directory
'./README.md ' + // to include README.md as index contents
'-r directives services' + // source code directory
'-u tutorials' // tutorials directory
]));
grunt.initConfig({
jsdoc: {
dist: {
src: ['directives', 'services'],
options: {
destination: 'build/docs',
configure: 'node_modules/angular-jsdoc/common/conf.json',
template: 'node_modules/angular-jsdoc/angular-template',
tutorial: 'tutorials',
readme: './README.md'
}
}
}
});
@ngdoc
- specifies the type of thing being documented. See below for more detail.@scope
- specifies the type of scope used by documented directive. Options are true
for a new inherited
scope, false
for shared scope, and either {}
or object
for isolate scope. if @scope
is provided without
a value, a new shared scope will be assumed@priority
- specifies the documented directive's priority@animations
- specifies the animations that the documented directive supports@restrict
- specifies how directives should be shown in the usage section. For example, for [E]lement, [A]ttribute, and [C]lass, use @restrict ECA@eventType emit|broadcast
- specifies whether the event is emitted or broadcastCurrently, there are two templates built-in;
To add your own template, please copy the angular-template
directory to your own, then, make your own css, js, and html files.
Then, run the jsdoc.js
command with your template. e.g.,
$ node_modules/jsdoc/jsdoc.js \
--configure node_modules/angular-jsdoc/common/conf.json \
--template node_modules/angular-jsdoc/my-template \
--destination build/docs \
--readme README.md \
--recurse directives services
If you want to share your template with others, please send a pull request after adding your template directory where angular-template
directory is.
The following is the example of directory with explanation:
my-template
├── css
│ └── my.css # css used in layout.html
├── js
│ └── my.js # javascript used in layout.html
├── fonts
│ └── my.woff # font used in layout.html
├── html
│ ├── class.html # template used by layout.html
│ └── layout.html # layout file
└── publish.js # the main file that generate jsdoc
Currently the default angular-template does not come with custom fonts. If you would like to use a template like angular-template but with custom fonts, change the copyStaticFiles
method in your publish.js:
angular-template/publish.js
1// copy the template's static files to outdir
2var copyStaticFiles = function() {
3 ['css', 'js'].forEach(function(dirName) {
4 var fromDir = path.join(templatePath, dirName);
5 var staticFiles = fs.ls(fromDir, 3);
6
7 staticFiles.forEach(function(fileName) {
8 var toDir = fs.toDir( fileName.replace(fromDir, path.join(outdir, dirName)) );
9 fs.mkPath(toDir);
10 fs.copyFileSync(fileName, toDir);
11 });
12 });
13};
to:
my-template/publish.js
1// copy the template's static files to outdir
2var copyStaticFiles = function() {
3 ['css', 'js', 'fonts'].forEach(function(dirName) {
4 var fromDir = path.join(templatePath, dirName);
5 var staticFiles = fs.ls(fromDir, 3);
6
7 staticFiles.forEach(function(fileName) {
8 var toDir = fs.toDir( fileName.replace(fromDir, path.join(outdir, dirName)) );
9 fs.mkPath(toDir);
10 fs.copyFileSync(fileName, toDir);
11 });
12 });
13};
MIT licence
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 10/15 approved changesets -- score normalized to 6
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More