Skip to content

Commit a8c582e

Browse files
ofriwclaude
andcommitted
Add prompts documentation plugin with dedicated sidebar
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4c77cf8 commit a8c582e

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

website/docusaurus.config.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,18 @@ const config: Config = {
8989
themes: ['@docusaurus/theme-live-codeblock', '@docusaurus/theme-mermaid'],
9090

9191
plugins: [
92+
[
93+
'@docusaurus/plugin-content-docs',
94+
{
95+
id: 'prompts',
96+
path: 'prompts',
97+
routeBasePath: 'prompts',
98+
sidebarPath: './sidebarsPrompts.ts',
99+
editUrl: 'https://github.com/ofriw/AI-Coding-Course/tree/main/website/',
100+
showLastUpdateTime: false,
101+
showLastUpdateAuthor: false,
102+
},
103+
],
92104
[
93105
require.resolve('@easyops-cn/docusaurus-search-local'),
94106
{
@@ -129,6 +141,13 @@ const config: Config = {
129141
position: 'left',
130142
label: 'Course',
131143
},
144+
{
145+
type: 'doc',
146+
docId: 'index',
147+
position: 'left',
148+
label: 'Prompts',
149+
docsPluginId: 'prompts',
150+
},
132151
{
133152
type: 'docsVersionDropdown',
134153
position: 'right',

website/sidebarsPrompts.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
2+
3+
/**
4+
* Sidebar configuration for the Prompts Library
5+
*
6+
* This sidebar organizes reusable prompt templates by SDLC category.
7+
* Prompts are stored in website/shared-prompts/ as MDX partials (prefixed with _)
8+
* and imported by both lesson files and individual prompt collection pages.
9+
*/
10+
const sidebars: SidebarsConfig = {
11+
promptsSidebar: [
12+
{
13+
type: 'doc',
14+
id: 'index',
15+
label: 'Overview',
16+
},
17+
{
18+
type: 'category',
19+
label: 'Testing',
20+
items: ['testing/test-failure-diagnosis', 'testing/edge-case-discovery'],
21+
},
22+
{
23+
type: 'category',
24+
label: 'Code Review',
25+
items: ['code-review/comprehensive-review'],
26+
},
27+
{
28+
type: 'category',
29+
label: 'Pull Requests',
30+
items: [
31+
'pull-requests/dual-optimized-pr',
32+
'pull-requests/ai-assisted-review',
33+
],
34+
},
35+
{
36+
type: 'category',
37+
label: 'Debugging',
38+
items: ['debugging/evidence-based-debug'],
39+
},
40+
{
41+
type: 'category',
42+
label: 'Onboarding',
43+
items: ['onboarding/generate-agents-md'],
44+
},
45+
],
46+
};
47+
48+
export default sidebars;

0 commit comments

Comments
 (0)