text: const { readdirSync } = require("fs");
  const path = require("path");
  
  function filesOf(dir) {
    return readdirSync(path.join("content", dir)).map((file) =>
      path.join(dir, file.split(".").shift())
    );
  }
  
  module.exports = {
    plugins: [
      {
        resolve: "gatsby-theme-apollo-docs",
        options: {
          root: __dirname,
          algoliaApiKey: "Hmmmm",
          algoliaIndexName: "ibl-docs",
          siteName: "Infinity Staff Docs",
          headerButtonText: "Main Site",
          headerButtonLink: "https://infinitybotlist.com/",
          discordUrl: "https://infinitybotlist.com/discord",
          twitterHandle: "InfinityBotList",
          description: "Official Documentation for the Infinity Bot List Staff Team.",
          githubRepo: "TheRealToxicDev/IBL-Staff-Docs",
          baseUrl: "https://staff-docs.botlist.site",
          sidebarCategories: {
            // null: ["getting-started"],
            info: filesOf("information"),
            new: filesOf("new-staff"),
            tasks: filesOf("tasks"),
          },
        },
      },
      "gatsby-plugin-styled-components",
    ],
  };
  