Skip to content

Commit f4e6aae

Browse files
Merge pull request #120 from anveshmuppeda/dev
Dev
2 parents 1964e13 + 7db6dbf commit f4e6aae

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

k8swebsite.config.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ const config: Config = {
5959
onInlineAuthors: 'warn',
6060
onUntruncatedBlogPosts: 'warn',
6161
},
62+
// commands: {
63+
// sidebarPath: './sidebars.ts',
64+
// editUrl:
65+
// '',
66+
// },
6267
theme: {
6368
customCss: './src/css/custom.css',
6469
},
@@ -73,7 +78,7 @@ const config: Config = {
7378
id: 'commands', // Unique ID for the commands plugin
7479
path: 'commands', // Path to the commands directory
7580
routeBasePath: 'commands', // URL path for the commands section
76-
//sidebarPath: require.resolve('./sidebars-commands.js'), // Sidebar configuration for commands
81+
sidebarPath: require.resolve('./sidebars.js'), // Sidebar configuration for commands
7782
editUrl: 'https://github.com/anveshmuppeda/kubernetes/tree/dev/',
7883
},
7984
],
@@ -96,11 +101,11 @@ const config: Config = {
96101
label: 'Tutorial',
97102
},
98103
{
99-
// type: 'docSidebar',
100-
// sidebarId: 'tutorialSidebar', // Sidebar for commands
104+
//type: 'docSidebar',
105+
//sidebarId: 'tutorialSidebar', // Sidebar for commands
101106
position: 'left',
102-
to: '/commands',
103107
label: 'Commands',
108+
to: '/commands/intro', // URL path for the commands section
104109
},
105110
{ to: '/blog', label: 'Blog', position: 'left' },
106111
{

sidebars.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
1+
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
22

33
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
44

@@ -14,8 +14,18 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
1414
*/
1515
const sidebars: SidebarsConfig = {
1616
// By default, Docusaurus generates a sidebar from the docs folder structure
17-
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
18-
//commandsSidebar: [{type: 'autogenerated', dirName: 'commands'}],
17+
tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }],
18+
19+
// Explicitly define the commandsSidebar
20+
// commandsSidebar: [
21+
// {
22+
// type: 'category',
23+
// label: 'Helm Commands',
24+
// items: [
25+
// 'helm', // Adjust this path to match the actual file structure in the commands directory
26+
// ],
27+
// },
28+
// ],
1929

2030
// But you can create a sidebar manually
2131
/*

0 commit comments

Comments
 (0)