// @ts-check

// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)

/**
 * Creating a sidebar enables you to:
 - create an ordered group of docs
 - render a sidebar for each doc of that group
 - provide next/previous navigation

 The sidebars can be generated from the filesystem, or explicitly defined here.

 Create as many sidebars as you want.

 @type {import('@docusaurus/plugin-content-docs').SidebarsConfig}
 */
const sidebars = {
  // By default, Docusaurus generates a sidebar from the docs folder structure
  //tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],

  /* userGuideSidebar: [
    {
      type: 'autogenerated',
      dirName: 'user-guide', // '.' means the current docs folder
      //description: 'This section is to acquiant NPIS users with the step by step guides on how to execute their system tasks.'
    },
  ], */

  userGuideSidebar: [
    {
      type: 'category',
      label: 'User Guides',
      link: {
        type: 'generated-index',
        title: 'NPIS User Guides',
        description: 
          'This section is to acquiant NPIS users with the step by step guides on how to execute their system tasks. This is as par the user reqiurements detailed in the introdution sections of the documentation portal.',
        slug: '/category/user-guide',
        keywords: ['guides'],
        image: '/img/shortcut.png',
      },
      items: [
        'user-guide/intro',
        {
          'admin':
            [
              'user-guide/admin/goals-and-objectives',
              'user-guide/admin/core-concepts-and-terms',
                {
                'admin console':
                  [
                  'user-guide/admin/admin-console/admin-console-login',
                  'user-guide/admin/admin-console/create-realm',
                  'user-guide/admin/admin-console/ssl-mode',
                  'user-guide/admin/admin-console/email-settings',
                  ]
                }

            ],
            'form designer':
            [
              'user-guide/form-designer/goals-and-objectives',
            ],
              'workflow modeller':
            [
              'user-guide/workflow-modeller/goals-and-objectives',
            ],
            'npis-client':
            [
              'user-guide/client/goals-and-objectives',
            ],
            'npis-reviewer':
            [
              'user-guide/reviewer/goals-and-objectives',
            ],
            'npis-evaluator':
            [
              'user-guide/evaluater/goals-and-objectives',
            ],
            'npis-approver':
            [
              'user-guide/approver/goals-and-objectives',
            ],
          }],
    },
  ],

/*   userGuideSidebar: [
    'user-guide/intro',
    {
      type: 'category', 
      label: 'User Guides',
      //items: ['user-guide/admin/congratulations'],
      items: [
        {
          'admin':
            [
              'user-guide/admin/course',
              'user-guide/admin/core-concepts-and-terms',
              'user-guide/admin/congratulations',
              'user-guide/admin/create-a-blog-post',
              'user-guide/admin/create-a-document',
              'user-guide/admin/create-a-page',

                {
                'user account management':
                  [
                  'user-guide/admin/user-account-management/admin-login',
                  'user-guide/admin/create-a-page',
                  ]
                }

            ],
            'form designer':
            [
              'user-guide/form-designer/congratulations',
              'user-guide/form-designer/create-a-blog-post',
              'user-guide/form-designer/create-a-document',
              'user-guide/form-designer/create-a-page',
            ],
              'workflow modeller':
            [
              'user-guide/workflow-modeller/congratulations',
              'user-guide/workflow-modeller/create-a-blog-post',
              'user-guide/workflow-modeller/create-a-document',
              'user-guide/workflow-modeller/create-a-page',
            ],
  },]
    }
  ], */

  // But you can create a sidebar manually
  /*
  tutorialSidebar: [
    'intro',
    'hello',
    {
      type: 'category',
      label: 'Tutorial',
      items: ['tutorial-basics/create-a-document'],
    },
  ],
   */

    introSidebar: [
    //'intro',
    //'hello',
    {
      type: 'category',
      label: 'Requirements',
      link: {
        type: 'generated-index',
        title: 'Project Requirements',
        description: 
          'This section is to acquiant NPIS users with the step by step guides on how to execute their system tasks. This section is to acquiant NPIS users with the step by step guides on how to execute their system tasks. This section is to acquiant NPIS users with the step by step guides on how to execute their system tasks.  This section is to acquiant NPIS users with the step by step guides on how to execute their system tasks.',
        slug: '/category/project-requirements',
        keywords: ['requirements'],
        image: '/img/shortcut.png',
      },
      items: ['project-requirements/ToR', 'project-requirements/SRS'],
    },
  ],
};

export default sidebars;
