-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocusaurus.config.js
101 lines (93 loc) · 3.04 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import { themes as prismThemes } from "prism-react-renderer";
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "برنامهسازی پیشرفته",
tagline: "سایت درس برنامهسازی پیشرفته دانشگاه تهران!",
favicon: "img/favicon.ico",
url: "https://AP-ECE-UT.github.io",
baseUrl: "/",
trailingSlash: false,
organizationName: "AP-ECE-UT",
projectName: "AP-ECE-UT.github.io",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
i18n: {
defaultLocale: "fa",
locales: ["fa"],
localeConfigs: {
fa: {
label: "فارسی",
direction: "rtl",
},
},
},
presets: [
[
"classic",
{
docs: {
sidebarPath: "./sidebars.js",
editUrl: "https://github.com/AP-ECE-UT/AP-ECE-UT.github.io/blob/main/",
},
blog: {
showReadingTime: false,
blogTitle: 'مجله',
blogDescription: 'AP Blog!',
postsPerPage: 'ALL',
blogSidebarTitle: 'جلدهای منتشر شده',
blogSidebarCount: 'ALL',
},
theme: {
customCss: "./src/css/global.css",
},
},
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image: "img/ap-social-card.jpg",
navbar: {
title: "برنامهسازی پیشرفته",
logo: {
alt: "AP Site Logo",
src: "img/duck.svg",
},
items: [
{
type: "docSidebar",
sidebarId: "courseSidebar",
label: "محتوای درس",
position: "left",
},
{
type: "docSidebar",
sidebarId: "tutorialsSidebar",
label: "آموزشها",
position: "left",
},
{
to: "/blog",
label: "مجله",
position: "left",
},
{
to: "/projects",
label: "پروژهها",
position: "right",
},
{
to: "/ta",
label: "دستیاران",
position: "right",
},
],
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ["makefile", "bash", "cmake"],
},
}),
};
export default config;