Skip to content

Commit 85505e4

Browse files
refactor(docs): Rename top-level 'GitHub' category to 'Version Control'
1 parent c8ebf6b commit 85505e4

File tree

2 files changed

+57
-42
lines changed

2 files changed

+57
-42
lines changed

docs/GitHub/_category_.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"label": "GitHub",
2+
"label": "Version Control",
33
"position": 3,
44
"link": {
55
"type": "generated-index",
66
"description": "Nextjs is a web-based platform used for version control and collaboration. It allows developers to work together on projects from anywhere in the world. GitHub is built on top of Git, a distributed version control system created by Linus Torvalds in 2005."
77
}
8-
}
8+
}

sidebars.ts

Lines changed: 55 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -29,54 +29,70 @@ const sidebars: SidebarsConfig = {
2929
},
3030
{
3131
type: "category",
32-
label: "🐙 GitHub",
33-
className: "custom-sidebar-github",
32+
label: "🐙 Version Control", // ✅ NEW TOP-LEVEL LABEL
33+
className: "custom-sidebar-version-control", // Recommended new class name
3434
items: [
35-
"GitHub/intro-github",
36-
"GitHub/intro-gitlab",
3735
{
36+
// New nested category wrapping all GitHub content
3837
type: "category",
39-
label: "⚙️ Setup Environment",
40-
className: "custom-sidebar-setup",
38+
label: "🐙 GitHub",
39+
className: "custom-sidebar-github", // Reusing the old class for minimal CSS breakage
4140
items: [
42-
"GitHub/setup-environment/setup-environment",
43-
"GitHub/setup-environment/setup-git-on-windows",
44-
"GitHub/setup-environment/setup-git-on-mac",
45-
"GitHub/setup-environment/git-commands",
41+
"GitHub/intro-github",
42+
{
43+
type: "category",
44+
label: "⚙️ Setup Environment",
45+
className: "custom-sidebar-setup",
46+
items: [
47+
"GitHub/setup-environment/setup-environment",
48+
"GitHub/setup-environment/setup-git-on-windows",
49+
"GitHub/setup-environment/setup-git-on-mac",
50+
"GitHub/setup-environment/git-commands",
51+
],
52+
},
53+
{
54+
type: "category",
55+
label: "📚 GitHub Basics",
56+
className: "custom-sidebar-basics",
57+
items: [
58+
"GitHub/GitHub-basics/create-github-repo",
59+
"GitHub/GitHub-basics/github-repo-command-line",
60+
"GitHub/GitHub-basics/how-to-clone-repository",
61+
"GitHub/GitHub-basics/how-to-fork",
62+
"GitHub/GitHub-basics/first-opensource-code",
63+
],
64+
},
65+
{
66+
type: "category",
67+
label: "👨‍💼 Maintainer Guide",
68+
className: "custom-sidebar-maintainer",
69+
items: [
70+
"GitHub/Maintainer-guide/github-labels",
71+
"GitHub/Maintainer-guide/milestone",
72+
"GitHub/Maintainer-guide/github-project",
73+
"GitHub/Maintainer-guide/enable-dicussion",
74+
],
75+
},
76+
{
77+
type: "category",
78+
label: "Fun Proflie Customizations",
79+
className: "custom-sidebar-fun",
80+
items: [
81+
"GitHub/Fun-Profile-Customizations/Why-Customize",
82+
"GitHub/Fun-Profile-Customizations/Anurag-Hazra's-GitHub-Readme-Cards",
83+
"GitHub/Fun-Profile-Customizations/Trophy-Case-Streaks",
84+
"GitHub/Fun-Profile-Customizations/Snake-Contribution-Animation",
85+
],
86+
},
4687
],
4788
},
4889
{
90+
// New category for GitLab content
4991
type: "category",
50-
label: "📚 GitHub Basics",
51-
className: "custom-sidebar-basics",
92+
label: "GitLab",
93+
className: "custom-sidebar-gitlab",
5294
items: [
53-
"GitHub/GitHub-basics/create-github-repo",
54-
"GitHub/GitHub-basics/github-repo-command-line",
55-
"GitHub/GitHub-basics/how-to-clone-repository",
56-
"GitHub/GitHub-basics/how-to-fork",
57-
"GitHub/GitHub-basics/first-opensource-code",
58-
],
59-
},
60-
{
61-
type: "category",
62-
label: "👨‍💼 Maintainer Guide",
63-
className: "custom-sidebar-maintainer",
64-
items: [
65-
"GitHub/Maintainer-guide/github-labels",
66-
"GitHub/Maintainer-guide/milestone",
67-
"GitHub/Maintainer-guide/github-project",
68-
"GitHub/Maintainer-guide/enable-dicussion",
69-
],
70-
},
71-
{
72-
type: "category",
73-
label: "Fun Proflie Customizations",
74-
className: "custom-sidebar-fun",
75-
items: [
76-
"GitHub/Fun-Profile-Customizations/Why-Customize",
77-
"GitHub/Fun-Profile-Customizations/Anurag-Hazra's-GitHub-Readme-Cards",
78-
"GitHub/Fun-Profile-Customizations/Trophy-Case-Streaks",
79-
"GitHub/Fun-Profile-Customizations/Snake-Contribution-Animation",
95+
"GitHub/intro-gitlab", // Moved here from the old top level
8096
],
8197
},
8298
],
@@ -167,7 +183,6 @@ const sidebars: SidebarsConfig = {
167183
"sql/SQL-Advance/sql-indexes",
168184
"sql/SQL-Advance/sql-advanced-analytics",
169185
"sql/SQL-Advance/sql-procedures-functions-triggers",
170-
"sql/SQL-Advance/dimensional-modelling",
171186
],
172187
},
173188
],

0 commit comments

Comments
 (0)