Skip to content

Commit 091cbc5

Browse files
committed
Update main tutorial page
1 parent a258779 commit 091cbc5

File tree

7 files changed

+363
-9
lines changed

7 files changed

+363
-9
lines changed

absolute-beginners/index.md

Whitespace-only changes.

docs/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ Select a technology below to dive into our structured tutorials. Each path is de
5858

5959
<DocsCards>
6060

61-
<DocsCard header="HTML" href="/tutorial/category/html/" icon="/icons/html-5.svg">
61+
<DocsCard header="HTML" href="/docs/category/html/" icon="/icons/html-5.svg">
6262
<p>Learn the building blocks of the web — HTML. Understand tags, attributes, forms, and layout fundamentals to create structured webpages.</p>
6363
</DocsCard>
6464

65-
<DocsCard header="CSS" href="/tutorial/css/introduction" icon="/icons/css.svg">
65+
<DocsCard header="CSS" href="/docs/css/introduction" icon="/icons/css.svg">
6666
<p>Master styling with CSS. Learn Flexbox, Grid, animations, and responsive design techniques for beautiful interfaces.</p>
6767
</DocsCard>
6868

69-
<DocsCard header="JavaScript" href="/tutorial/javascript/introduction-to-javascript/what-is-js" icon="/icons/js.svg">
69+
<DocsCard header="JavaScript" href="/docs/javascript/introduction-to-javascript/what-is-js" icon="/icons/js.svg">
7070
<p>From basics to advanced — learn JavaScript programming, DOM manipulation, and ES6+ features to bring interactivity to your projects.</p>
7171
</DocsCard>
7272

@@ -102,7 +102,7 @@ Select a technology below to dive into our structured tutorials. Each path is de
102102
<p>Learn NoSQL database concepts with MongoDB. Store, query, and manage data efficiently for modern applications.</p>
103103
</DocsCard>
104104

105-
<DocsCard header="AI & Machine Learning" href="/tutorial/machine-learning" icon="/icons/ai-chat.svg">
105+
<DocsCard header="AI & Machine Learning" href="/docs/machine-learning" icon="/icons/ai-chat.svg">
106106
<p>Explore artificial intelligence, machine learning, and neural networks with beginner-friendly examples.</p>
107107
</DocsCard>
108108

docusaurus.config.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const config = {
3636
({
3737
// debug: true,
3838
docs: {
39-
routeBasePath: "/",
39+
routeBasePath: "docs",
4040
sidebarPath: "./sidebars.ts",
4141
editUrl: "https://github.com/codeharborhub/tutorial/edit/main/",
4242
remarkPlugins: [remarkMath],
@@ -468,6 +468,22 @@ const config = {
468468
},
469469
],
470470

471+
[
472+
"@docusaurus/plugin-content-docs",
473+
/** @type {import('@docusaurus/plugin-content-docs').Options} */
474+
{
475+
id: "absolute-beginners",
476+
path: "absolute-beginners",
477+
routeBasePath: "absolute-beginners",
478+
// breadcrumbs: true,
479+
// editUrl: "#",
480+
sidebarPath: require.resolve("./sidebars.js"),
481+
remarkPlugins: [remarkMath, rehypeKatex],
482+
showLastUpdateAuthor: true,
483+
showLastUpdateTime: true,
484+
},
485+
],
486+
471487
[
472488
path.join(__dirname, "/plugins/my-plugin"),
473489
{

src/css/custom.css

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
--ifm-task-complete-color: #2e9e32e1;
1616
--ifm-task-incomplete-color: #3d78cbe1;
1717
--ifm-bg-color: #f8f9fa;
18-
--image-filter:invert(0);
18+
--image-filter: invert(0);
1919
--site-color-svg-icon-favorite: #ff1100cb;
2020
--ifm-text-color: #000;
2121

@@ -59,9 +59,22 @@
5959
--ifm-task-complete-color: #25c2a0;
6060
--ifm-task-incomplete-color: #3d78cbe1;
6161
--ifm-bg-color: #1a202c;
62-
--image-filter:invert(1);
62+
--image-filter: invert(1);
6363
--site-color-svg-icon-favorite: #ff9100e5;
6464
--ifm-text-color: #fff;
65+
--token-secondary-bg-c: var(--c-gray-90);
66+
}
67+
68+
.bg-grid-slate-200\/50 {
69+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(226 232 240 / 0.3)'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e");
70+
}
71+
72+
.bg-grid-slate-800\/50 {
73+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(30 41 59 / 0.5)'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e");
74+
}
75+
76+
.text-balance {
77+
text-wrap: balance;
6578
}
6679

6780
.header-github-link::before {
@@ -278,7 +291,6 @@ mark {
278291
border-radius: 50% 40%;
279292
}
280293

281-
282294
.nav__icons img {
283295
width: 35px;
284296
height: 35px;
@@ -292,7 +304,7 @@ mark {
292304
/* [data-theme='dark'] #__docusaurus_skipToContent_fallback {
293305
background: linear-gradient(rgba(15, 23, 42, 0.796), rgba(15, 23, 42, 0.23));
294306
} */
295-
[data-theme='dark'] .navbar {
307+
[data-theme="dark"] .navbar {
296308
background: rgba(15, 23, 42, 0.862);
297309
border-bottom: 1px solid #4e8da0db;
298310
}

0 commit comments

Comments
 (0)