-
Notifications
You must be signed in to change notification settings - Fork 1
/
docusaurus.config.js
85 lines (82 loc) · 2.33 KB
/
docusaurus.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
require("dotenv").config();
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "معهد التفسير",
tagline: "التسجيلات الصوتية للشيخ علي هاني العقرباوي",
url: "https://tafsir.institute",
baseUrl: "/",
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "ismaelrumzan", // Usually your GitHub org/user name.
projectName: "mahad-al-tafsir", // Usually your repo name.
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
path: "videos",
routeBasePath: "videos",
sidebarPath: require.resolve("./sidebars.js"),
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
gtag: {
trackingID: "G-CRLE7L55TR",
anonymizeIP: true,
},
}),
],
],
i18n: {
defaultLocale: "ar",
locales: ["ar"],
},
customFields: {
// Put your custom environment here
algoliaAppId: process.env.ALGOLIA_APP_ID,
algoliaApiKey: process.env.ALGOLIA_API_KEY,
algoliaIndex: process.env.ALGOLIA_INDEX,
YTKey: process.env.YOUTUBE_API_KEY,
},
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
hideableSidebar: true,
autoCollapseSidebarCategories: true,
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 2,
},
navbar: {
logo: {
alt: "logo",
src: "img/logo-white.png",
srcDark: "img/logo-black.png",
},
items: [
{
type: "doc",
docId: "تدريس اللغة العربية",
position: "left",
label: "التسجيلات الصوتية",
},
],
},
footer: {
style: "dark",
copyright: `حقوق النشر © ${new Date().getFullYear()} معهد تفسير`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;