grunt.registerTask('buildDemo', function() {

        var done = this.async();

        attire.buildDemo({
            file: 'README.md',
            dest: 'index.html',
            title: 'Backbone named routes',
            description: 'Backbone router implementation with named routes (aliases) for easy client side links generation',
            canonicalUrl: 'http://dbrekalo.github.io/backbone-named-routes/',
            githubUrl: 'https://github.com/dbrekalo/backbone-named-routes',
            userRepositories: {
                user: '******',
                onlyWithPages: true
            },
            author: {
                caption: 'Damir Brekalo',
                url: 'https://github.com/dbrekalo',
                image: 'https://s.gravatar.com/avatar/32754a476fb3db1c5a1f9ad80c65d89d?s=80',
                email: '*****@*****.**',
                github: 'https://github.com/dbrekalo',
                twitter: 'https://twitter.com/dbrekalo'
            },
            afterParse: function($) {
                $('p').first().remove();
                $('a').first().parent().remove();
            },
            inlineCss: true,
        }).then(function() {
            done();
            grunt.log.ok(['Demo builded']);
        });

    });
Example #2
0
    grunt.registerTask('buildDemo', function() {

        var done = this.async();

        attire.buildDemo({
            file: 'README.md',
            dest: 'index.html',
            title: 'Backbone base view',
            description: 'Baseview is a extended backbone view with convenient methods for manipulating subviews and events.',
            canonicalUrl: 'http://dbrekalo.github.io/backbone-base-view/',
            githubUrl: 'https://github.com/dbrekalo/backbone-base-view',
            userRepositories: {
                user: '******',
                onlyWithPages: true
            },
            author: {
                caption: 'Damir Brekalo',
                url: 'https://github.com/dbrekalo',
                image: 'https://s.gravatar.com/avatar/32754a476fb3db1c5a1f9ad80c65d89d?s=80',
                email: '*****@*****.**',
                github: 'https://github.com/dbrekalo',
                twitter: 'https://twitter.com/dbrekalo'
            },
            afterParse: function($) {
                $('p').first().remove();
                $('a').first().parent().remove();
            },
            inlineCss: true,
        }).then(function() {
            done();
            grunt.log.ok(['Demo builded']);
        });

    });