Skip to content

Commit f011f49

Browse files
committed
refactor: migrate configuration from JavaScript to TypeScript and update homepage features
1 parent 0122529 commit f011f49

File tree

5 files changed

+46
-168
lines changed

5 files changed

+46
-168
lines changed

docs-site/docusaurus.config.js

Lines changed: 0 additions & 64 deletions
This file was deleted.

docs-site/docusaurus.config.ts

Lines changed: 15 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type * as Preset from '@docusaurus/preset-classic';
55
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
66

77
const config: Config = {
8-
title: 'My Site',
9-
tagline: 'Dinosaurs are cool',
8+
title: 'DBeaver MCP Server',
9+
tagline: 'MCP server for DBeaver',
1010
favicon: 'img/favicon.ico',
1111

1212
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
@@ -15,15 +15,15 @@ const config: Config = {
1515
},
1616

1717
// Set the production url of your site here
18-
url: 'https://your-docusaurus-site.example.com',
18+
url: 'https://srthkdev.github.io',
1919
// Set the /<baseUrl>/ pathname under which your site is served
2020
// For GitHub pages deployment, it is often '/<projectName>/'
21-
baseUrl: '/',
21+
baseUrl: '/dbeaver-mcp-server/',
2222

2323
// GitHub pages deployment config.
2424
// If you aren't using GitHub pages, you don't need these.
25-
organizationName: 'facebook', // Usually your GitHub org/user name.
26-
projectName: 'docusaurus', // Usually your repo name.
25+
organizationName: 'srthkdev', // Usually your GitHub org/user name.
26+
projectName: 'dbeaver-mcp-server', // Usually your repo name.
2727

2828
onBrokenLinks: 'throw',
2929
onBrokenMarkdownLinks: 'warn',
@@ -45,23 +45,9 @@ const config: Config = {
4545
// Please change this to your repo.
4646
// Remove this to remove the "edit this page" links.
4747
editUrl:
48-
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
49-
},
50-
blog: {
51-
showReadingTime: true,
52-
feedOptions: {
53-
type: ['rss', 'atom'],
54-
xslt: true,
55-
},
56-
// Please change this to your repo.
57-
// Remove this to remove the "edit this page" links.
58-
editUrl:
59-
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
60-
// Useful options to enforce blogging best practices
61-
onInlineTags: 'warn',
62-
onInlineAuthors: 'warn',
63-
onUntruncatedBlogPosts: 'warn',
48+
'https://github.com/srthkdev/dbeaver-mcp-server/tree/main/docs-site/',
6449
},
50+
blog: false, // Disable blog
6551
theme: {
6652
customCss: './src/css/custom.css',
6753
},
@@ -73,21 +59,16 @@ const config: Config = {
7359
// Replace with your project's social card
7460
image: 'img/docusaurus-social-card.jpg',
7561
navbar: {
76-
title: 'My Site',
77-
logo: {
78-
alt: 'My Site Logo',
79-
src: 'img/logo.svg',
80-
},
62+
title: 'DBeaver MCP Server',
8163
items: [
8264
{
8365
type: 'docSidebar',
8466
sidebarId: 'tutorialSidebar',
8567
position: 'left',
86-
label: 'Tutorial',
68+
label: 'Docs',
8769
},
88-
{to: '/blog', label: 'Blog', position: 'left'},
8970
{
90-
href: 'https://github.com/facebook/docusaurus',
71+
href: 'https://github.com/srthkdev/dbeaver-mcp-server',
9172
label: 'GitHub',
9273
position: 'right',
9374
},
@@ -100,43 +81,22 @@ const config: Config = {
10081
title: 'Docs',
10182
items: [
10283
{
103-
label: 'Tutorial',
104-
to: '/docs/intro',
84+
label: 'Introduction',
85+
to: '/docs',
10586
},
10687
],
10788
},
10889
{
10990
title: 'Community',
11091
items: [
111-
{
112-
label: 'Stack Overflow',
113-
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
114-
},
115-
{
116-
label: 'Discord',
117-
href: 'https://discordapp.com/invite/docusaurus',
118-
},
119-
{
120-
label: 'X',
121-
href: 'https://x.com/docusaurus',
122-
},
123-
],
124-
},
125-
{
126-
title: 'More',
127-
items: [
128-
{
129-
label: 'Blog',
130-
to: '/blog',
131-
},
13292
{
13393
label: 'GitHub',
134-
href: 'https://github.com/facebook/docusaurus',
94+
href: 'https://github.com/srthkdev/dbeaver-mcp-server',
13595
},
13696
],
13797
},
13898
],
139-
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
99+
copyright: `Copyright © ${new Date().getFullYear()} DBeaver MCP Server. Built with Docusaurus.`,
140100
},
141101
prism: {
142102
theme: prismThemes.github,

docs-site/src/components/HomepageFeatures/index.js

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import styles from './styles.module.css';
55
const FeatureList = [
66
{
77
title: 'Universal Database Support',
8-
// ... image ...
8+
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
99
description: (
1010
<>
1111
Works with all 200+ database types supported by DBeaver, providing unparalleled access to your data.
@@ -14,7 +14,7 @@ const FeatureList = [
1414
},
1515
{
1616
title: 'Production Ready',
17-
// ... image ...
17+
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
1818
description: (
1919
<>
2020
Full error handling, logging, and safety checks to ensure the server is reliable for real-world usage.
@@ -23,7 +23,7 @@ const FeatureList = [
2323
},
2424
{
2525
title: 'Feature Rich',
26-
// ... image ...
26+
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
2727
description: (
2828
<>
2929
Includes resource browsing, business insights, multiple export formats, and full schema management.
@@ -32,4 +32,30 @@ const FeatureList = [
3232
},
3333
];
3434

35-
// ... existing code ...
35+
function Feature({Svg, title, description}) {
36+
return (
37+
<div className={clsx('col col--4')}>
38+
<div className="text--center">
39+
<Svg className={styles.featureSvg} role="img" />
40+
</div>
41+
<div className="text--center padding-horiz--md">
42+
<h3>{title}</h3>
43+
<p>{description}</p>
44+
</div>
45+
</div>
46+
);
47+
}
48+
49+
export default function HomepageFeatures() {
50+
return (
51+
<section className={styles.features}>
52+
<div className="container">
53+
<div className="row">
54+
{FeatureList.map((props, idx) => (
55+
<Feature key={idx} {...props} />
56+
))}
57+
</div>
58+
</div>
59+
</section>
60+
);
61+
}

docs-site/src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function HomepageHeader() {
1919
<div className={styles.buttons}>
2020
<Link
2121
className="button button--secondary button--lg"
22-
to="/docs/index">
22+
to="/docs">
2323
Get Started with DBeaver MCP Server
2424
</Link>
2525
</div>

docs-site/src/pages/index.tsx

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)