forked from top-gg/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
36 lines (34 loc) · 956 Bytes
/
gatsby-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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: "9bfd968ece86da2054ca34939340f716",
algoliaIndexName: "top-gg",
siteName: "Top.gg documentation",
description: "Top.gg developer documentation",
githubRepo: "top-gg/docs",
baseUrl: "https://docs.top.gg",
// defaultVersion: "0",
// versions: {
// 1: "version-1",
// },
sidebarCategories: {
// null: ["getting-started"],
resources: filesOf("resources"),
libraries: filesOf("libraries"),
api: filesOf("api"),
},
},
},
"gatsby-plugin-styled-components",
],
};