js-pages
Version:
Custom Git script to compile JSDoc / ngdoc and deploy to gh-pages
44 lines (40 loc) • 1.27 kB
JavaScript
;
export function () {
let config = {};
const ngdocs = {
// Destination of the compiles docs
// Also make sure to include this in your .gitignore
dest: './public/docs/',
// Tabs in the docs and the content for each
sections: {
api: {
// Files to include
glob: ['./public/**/*.js'],
// Name of the tab
title: 'Client'
}
},
options: {
// Include your own version of Angular to match your project
scripts: [
'./public/bower_components/angular/angular.min.js',
'./public/bower_components/angular-animate/angular-animate.min.js'
],
// Title of the docs
title: 'Documentation',
// Where the Title should link to
titleLink: 'https://github.com/jfeigel/js-pages',
// Logo image
image: './public/images/logo.png',
// Where the Logo image should link to
imageLink: 'https://github.com/jfeigel/js-pages',
// Which Section and Page should the user be directed to
// '/<section>/<page>'
startPage: '/api/app',
bestMatch: true,
html5Mode: false
}
};
config.ngdocs = ngdocs;
return config;
}