export const CD_PLUGIN_NAME = 'Описание компонентов';

const CD_PLUGIN_DOCS_CTX = 'sdi-web-client-docs';
export const CD_PLUGIN_CODE_EXAMPLES_CTX = CD_PLUGIN_DOCS_CTX + '/code-examples';
export const CD_PLUGIN_DOCUMENTATION_CTX = CD_PLUGIN_DOCS_CTX + '/documentation';
export const CD_PLUGIN_JS_CTX = CD_PLUGIN_DOCS_CTX + '/js';


export const CD_ROUTING = {
    BASE: 'componentDocs',

    TABS: {
        GROUP: 'group', // relevant to the 'group' nodes exclusively!
        DEMO: 'demo',
        CODE: 'codeExample',
        API: 'apiOverview'
    },

    PARAMS: {
        SECTION: 'section'
    },

    QUERY_PARAMS: {

    }
};


export const CD_SECTION_REGEX = new RegExp(`/${CD_ROUTING.BASE}/([\\w-]+)\\b(.*#([\\w-]+)\\b)?`);
export const CD_SECTION_TAB_REGEX = new RegExp(`/${CD_ROUTING.BASE}/[\\w-]+/([\\w-]+)\\b`);
