docs/main.js
function addArticleSettings(fields, entry) {
        // add unique id
        // TODO: replace all group-name-version in template with id.
        fields.id = fields.article.group + '-' + fields.article.name + '-' + fields.article.version;
        fields.id = fields.id.replace(/\./g, '_');

        if (entry.header && entry.header.fields)
            fields._hasTypeInHeaderFields = _hasTypeInFields(entry.header.fields);

        if (entry.parameter && entry.parameter.fields)
            fields._hasTypeInParameterFields = _hasTypeInFields(entry.parameter.fields);

        if (entry.error && entry.error.fields)
            fields._hasTypeInErrorFields = _hasTypeInFields(entry.error.fields);

        if (entry.success && entry.success.fields)
            fields._hasTypeInSuccessFields = _hasTypeInFields(entry.success.fields);

        if (entry.info && entry.info.fields)
            fields._hasTypeInInfoFields = _hasTypeInFields(entry.info.fields);

        // add template settings
        fields.template = apiProject.template;
    }
function addArticleSettings(fields, entry) {
        // add unique id
        // TODO: replace all group-name-version in template with id.
        fields.id = fields.article.group + '-' + fields.article.name + '-' + fields.article.version;
        fields.id = fields.id.replace(/\./g, '_');

        if (entry.header && entry.header.fields)
            fields._hasTypeInHeaderFields = _hasTypeInFields(entry.header.fields);

        if (entry.parameter && entry.parameter.fields)
            fields._hasTypeInParameterFields = _hasTypeInFields(entry.parameter.fields);

        if (entry.error && entry.error.fields)
            fields._hasTypeInErrorFields = _hasTypeInFields(entry.error.fields);

        if (entry.success && entry.success.fields)
            fields._hasTypeInSuccessFields = _hasTypeInFields(entry.success.fields);

        if (entry.info && entry.info.fields)
            fields._hasTypeInInfoFields = _hasTypeInFields(entry.info.fields);

        // add template settings
        fields.template = apiProject.template;
    }
Add article settings.