Skip to content

Commit cc1b5be

Browse files
authored
Merge pull request #27 from Byte-Magazine/workshops/git
Workshops/git
2 parents 1a1cecb + fc7c4ae commit cc1b5be

30 files changed

Lines changed: 3101 additions & 114 deletions

docusaurus.config.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ const config: Config = {
6767
} satisfies Preset.Options,
6868
],
6969
],
70+
71+
markdown: {
72+
mermaid: true,
73+
},
74+
themes: ["@docusaurus/theme-mermaid"],
75+
7076
plugins: [
7177
[
7278
"@docusaurus/plugin-content-docs",
@@ -81,6 +87,20 @@ const config: Config = {
8187
showLastUpdateTime: false,
8288
},
8389
],
90+
[
91+
"@docusaurus/plugin-content-docs",
92+
{
93+
id: "workshops",
94+
path: "workshops",
95+
routeBasePath: "workshops",
96+
sidebarPath: require.resolve("./sidebarsWorkshops.js"),
97+
remarkPlugins: [remarkMath],
98+
rehypePlugins: [rehypeKatex],
99+
showLastUpdateAuthor: false,
100+
showLastUpdateTime: false,
101+
editUrl: "https://github.com/Byte-Magazine/byte-site/tree/main/",
102+
},
103+
],
84104
],
85105
stylesheets: [
86106
{
@@ -106,8 +126,9 @@ const config: Config = {
106126
src: "img/logo.svg",
107127
},
108128
items: [
109-
{ to: "/codenameh", label: "آرشیو کدنامه", position: "left" },
110129
{ to: "/mags/intro", label: "آرشیو نشریه", position: "left" },
130+
{ to: "/codenameh", label: "آرشیو کدنامه", position: "left" },
131+
{ to: "/workshops/git", label: "کارگاه‌ها", position: "left" },
111132
{ to: "/blog", label: "وبلاگ", position: "left" },
112133
{
113134
to: "/staff",

0 commit comments

Comments
 (0)