Skip to content

Commit a66895e

Browse files
committed
fix(config): error
1 parent c0429a5 commit a66895e

File tree

2 files changed

+16
-20
lines changed

2 files changed

+16
-20
lines changed

docusaurus.config.js

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const config = {
1313
favicon: "img/favicon_io/favicon.ico",
1414
url: "https://codeharborhub.github.io",
1515
// baseUrl: "/tutorial/",
16-
baseUrl: "/",
16+
baseUrl: "/tutorial/",
1717
customFields: {
1818
admin: "Ajay Dhangar",
1919
superman: "Shivay",
@@ -22,20 +22,14 @@ const config = {
2222
organizationName: "codeharborhub",
2323
projectName: "tutorial",
2424
trailingSlash: false,
25-
onBrokenLinks: "throw",
25+
// onBrokenLinks: "throw",
2626

2727
// ==== // ❌ Deprecated usage ==============
2828

2929
// onBrokenMarkdownLinks: "warn",
3030

3131
// ===========================================
3232

33-
markdown: {
34-
hooks: {
35-
onBrokenMarkdownLinks: "warn", // ✅ New location
36-
},
37-
},
38-
3933
presets: [
4034
[
4135
"@docusaurus/preset-classic",
@@ -83,12 +77,12 @@ const config = {
8377
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
8478
({
8579
image: "img/codeharborhub-social-card.jpg",
86-
announcementBar: {
87-
id: "announcementBar",
88-
content: "Comming Soon!",
89-
isCloseable: true,
90-
backgroundColor: "#4d5061",
91-
},
80+
// announcementBar: {
81+
// id: "announcementBar",
82+
// content: "Comming Soon!",
83+
// isCloseable: true,
84+
// backgroundColor: "#4d5061",
85+
// },
9286

9387
metadata: [
9488
{
@@ -131,11 +125,11 @@ const config = {
131125
target: "_self",
132126
},
133127
items: [
134-
{
135-
to: "/",
136-
position: "right",
137-
label: "📚 Tutorial",
138-
},
128+
// {
129+
// to: "/",
130+
// position: "right",
131+
// label: "Tutorial",
132+
// },
139133
{
140134
href: "https://github.com/codeharborhub",
141135
position: "right",
@@ -295,6 +289,9 @@ const config = {
295289

296290
markdown: {
297291
mermaid: true,
292+
hooks: {
293+
onBrokenMarkdownLinks: "warn",
294+
},
298295
},
299296
themes: ["@docusaurus/theme-mermaid", "@docusaurus/theme-live-codeblock"],
300297

src/theme/MDXComponents.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export default {
1717
Tabs,
1818
TabItem,
1919
BrowserWindow,
20-
Highlight,
2120
GiscusComponent,
2221
DocCardList,
2322
FaReact,

0 commit comments

Comments
 (0)