Skip to content
This repository was archived by the owner on Aug 9, 2021. It is now read-only.
This repository was archived by the owner on Aug 9, 2021. It is now read-only.

JS-Docs for non classes will not be generated #9

Description

@SBajonczak

Hi I have the following example code:

`/**

  • @author Example jon.doe@example.com

  • @copyright 2014 Example Ltd. All rights reserved.
    /
    (function () {
    window.example = window.example || {};
    /
    *

    • Example Namespace
    • @memberof example
    • @namespace example.angular
      */
      window.example.angular = window.example.angular || {};
      var exAngular = window.example.angular;

    /**

    • A Example Angular Bootstrap Module
    • @module exampleAngularBootstrap
      */
      exAngular.bootstrap = angular.module('exampleAngularBootstrap', [
      'ngRoute',
      'ngResource',
      'ngCookies'
      ])
      .run(function ($http, $cookies) {
      $http.defaults.headers.post['X-CSRFToken'] = $cookies.csrftoken;
      $http.defaults.headers.common['X-CSRFToken'] = $cookies.csrftoken;
      });
      })();`

But this does not create a doc for me. But when I use jsDoc directly it will work.
How can I process this file to get a proper documentation with this example?

For sure it will generate a documentation when I create a class and insert them into the file, but there I Cannot do create an module or s.th.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions