4

I'm trying to install and configure doculare package on node.js platform. I have started from the official documentation website grunt-docular.com.

After hundreds of tries, there was a problem in running grunt docular-server. I think the problem in the compatibility between docular package and its grunt plugin grunt-docular.

When I tried to use [email protected] and [email protected] it worked. But the target is to use the latest versions of npm packages to get the newest version of angular docs.

The error was :

Warning: Task "docular-server" not found. Use --force to continue.

Aborted due to warnings.

Here is what I did:

npm install grunt-docular 

and this is my grunt config file:

module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), docular: { groups: [], showDocularDocs: true, showAngularDocs: true } }); // Load the plugin that provides the "docular" tasks. grunt.loadNpmTasks('grunt-docular'); // Default task(s). grunt.registerTask('default', ['docular']); }; 
1
  • 1
    I have same problem plz help us :( Commented Sep 20, 2014 at 8:23

1 Answer 1

4

I ran into the same issue. It seems that for the latest version of grunt-docular to run the server you must run:

grunt docularserver 

If doing that you run into an error of the type "path.join expects strings", you must add the following to your grunt config file:

docularserver: { targetDir: "//path to where the docs are generated" } 
1
  • yes, that worked for me. Commented Oct 23, 2014 at 19:57

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.