5

JSDoc によって文書化されたすべてのメンバー/オブジェクト/などは、独自のクリック可能なリンクにする必要があると思います。たとえば、 がある場合levelOne --> levelTwo --> levelThree --> levelFour、最初のページに levelOne が表示され、クリックして levelFour に進むことができるはずですが、そうではないようです。

これが私のコードです:

/**
    Contains various tools and extensions.
    @namespace App
    */
var app = app || {};


/**
Contains App plugins.
@namespace App.Plugins
*/
app.Plugins = app.Plugins || {};

/**
Contains methods and classes usable within unit-testing.
@memberof App
@type {object}
@namespace App.UnitTesting
*/
app.UnitTesting = app.UnitTesting || {
    /**
    Test methods for the App library.
    @memberof App.UnitTesting
    @type {object}
    @property {object} test1 Property definition.
    */
    PluginTests: {
        /** 
        Test for this or that
        @memberof App.UnitTesting.PluginTests
        @type {object}
        @property {method} innertest1 Property definition for "innertest1"
        */
        test1: {
            /**
            Run another nested test
            @memberof App.UnitTesting.PluginTests.test1
            @method innertest1
            @returns {object}
            */
            innertest1: function () { }
        }
    }
};

「名前空間」オブジェクトは簡単にクリック可能で、ホームページからアクセスできますが、クリックできPluginTests ません (リンクではありません!!) ためtest1innertest1アクセスできません。JSDoc の仕組みをひどく誤解していますか?


PS: 誰かが私のコードを傷つけるコメントで引き裂き始める前に、私が JSDoc の存在を知ったのは約 3 時間前であり、これに非常に慣れていないことに注意してください。

4

1 に答える 1