How to use the jsdoc/util/templateHelper.tutorialToUrl function in jsdoc

To help you get started, we’ve selected a few jsdoc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jsdoc / jsdoc / test / specs / jsdoc / util / templateHelper.js View on Github external
it("does not apply any of missingOpts if the tutorial was found", () => {
            const link = helper.toTutorial('test', '', {
                tag: 'span',
                classname: 'missing',
                prefix: 'TODO-'
            });

            expect(link).toBe(`<a href="${helper.tutorialToUrl('test')}">Test tutorial</a>`);
        });
    });
github jsdoc / jsdoc / test / specs / jsdoc / util / templateHelper.js View on Github external
it("creates links for tutorials where the name is a reserved JS keyword", () => {
            const url = helper.tutorialToUrl('constructor');

            expect(url).toBe('tutorial-constructor.html');
        });
github WhitestormJS / whs.js / docs / template / publish.js View on Github external
node.children.forEach(function(child) {
      generateTutorial(
        child.title,
        child,
        helper.tutorialToUrl(child.name)
      )
      saveChildren(child)
    })
  }
github pentaho / pentaho-platform-plugin-common-ui / impl / client / src / doc / javascript / template / vizApi / publish.js View on Github external
node.children.forEach(function(child) {
            generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name));
            saveChildren(child);
        });
    }
github hegemonic / jsdoc-baseline / lib / publishjob.js View on Github external
getTutorialChildren(tutorials).forEach(function(child) {
            const title = name.stripNamespace(child.title);
            const tutorialData = {
                pageCategory: CATEGORIES.TUTORIALS,
                pageTitle: title,
                pageTitlePrefix: this.pageTitlePrefix,
                header: title,
                tutorialContent: child.content,
                tutorialChildren: child.children
            };
            const url = helper.tutorialToUrl(child.name);

            this.generate('tutorial', tutorialData, url);
        }, this);
github webdetails / cdf / core-js / src / doc / javascript / template / publish.js View on Github external
node.children.forEach(function(child) {
            generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name));
            saveChildren(child);
        });
    }
github collinhover / impactplusplus / tools / jsdoc3 / templates / impactplusplus / publish.js View on Github external
node.children.forEach(function(child) {
            generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name));
            saveChildren(child);
        });
    }
github panzerdp / voca / jsdoc / template / publish.js View on Github external
node.children.forEach(function (child) {
      generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name));
      saveChildren(child);
    });
  }
github deebloo / generator-angular-blueprint / generators / app / templates / ES6 / doc / template / publish.js View on Github external
node.children.forEach(function(child) {
            generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name));
            saveChildren(child);
        });
    }
github tgideas / motion / component / tool / jsdoc3 / templates / default / publish.js View on Github external
node.children.forEach(function(child) {
            generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name));
            saveChildren(child);
        });
    }