Skip to content

Commit 972cfbf

Browse files
authored
Merge pull request #34 from universal-tool-calling-protocol/dev
Home paged removed
2 parents 61c48d4 + 8e9df39 commit 972cfbf

File tree

6 files changed

+30
-51
lines changed

6 files changed

+30
-51
lines changed

docusaurus.config.ts

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const config: Config = {
4444
docs: {
4545
id: 'default',
4646
path: 'docs',
47-
routeBasePath: 'docs',
47+
routeBasePath: '/',
4848
sidebarPath: './sidebars.ts',
4949
editUrl: 'https://github.com/universal-tool-calling-protocol/utcp-specification/tree/main/',
5050
showLastUpdateTime: true,
@@ -82,6 +82,10 @@ const config: Config = {
8282
'@docusaurus/plugin-client-redirects',
8383
{
8484
redirects: [
85+
{
86+
to: '/',
87+
from: '/docs',
88+
},
8589
{
8690
to: '/about/RFC',
8791
from: '/RFC',
@@ -111,7 +115,6 @@ const config: Config = {
111115
// Replace with your project's social card
112116
image: 'img/black-logo-square.png',
113117
navbar: {
114-
title: 'UTCP',
115118
logo: {
116119
alt: 'UTCP Logo',
117120
src: 'img/black-logo-square.svg',
@@ -130,27 +133,23 @@ const config: Config = {
130133
label: 'Tool Registry',
131134
},
132135
{
133-
type: 'dropdown',
134-
label: 'more',
136+
type: 'doc',
137+
docId: 'RFC',
138+
label: 'RFC',
139+
position: 'left',
140+
docsPluginId: 'about',
141+
},
142+
{
143+
type: 'doc',
144+
docId: 'about-us',
145+
label: 'About Us',
146+
position: 'left',
147+
docsPluginId: 'about',
148+
},
149+
{
150+
label: 'Blog',
151+
to: '/blog',
135152
position: 'left',
136-
items: [
137-
{
138-
type: 'doc',
139-
docId: 'RFC',
140-
label: 'RFC',
141-
docsPluginId: 'about',
142-
},
143-
{
144-
type: 'doc',
145-
docId: 'about-us',
146-
label: 'About Us',
147-
docsPluginId: 'about',
148-
},
149-
{
150-
label: 'Blog',
151-
to: '/blog',
152-
},
153-
],
154153
},
155154
{
156155
type: 'docsVersionDropdown',
@@ -177,19 +176,19 @@ const config: Config = {
177176
items: [
178177
{
179178
label: 'Overview',
180-
to: '/docs',
179+
to: '/',
181180
},
182181
{
183182
label: 'Provider Types',
184-
to: '/docs/providers/http',
183+
to: '/providers/http',
185184
},
186185
{
187186
label: 'Implementation Guide',
188-
to: '/docs/implementation',
187+
to: '/implementation',
189188
},
190189
{
191190
label: 'UTCP vs MCP',
192-
to: '/docs/utcp-vs-mcp',
191+
to: '/utcp-vs-mcp',
193192
},
194193
],
195194
},
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import clsx from 'clsx';
44
import Link from '@docusaurus/Link';
55
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
66
import Layout from '@theme/Layout';
7-
import HomepageFeatures from '@site/src/components/HomepageFeatures';
7+
import HomepageFeatures from '@site/src/components/HomepageFeatures.backup';
88
import Heading from '@theme/Heading';
99

10-
import styles from './index.module.css';
10+
import styles from './index.module.css.backup';
1111

1212
function GitHubFollowersButton() {
1313
const [followerCount, setFollowerCount] = useState<number>(450); // Default fallback based on current count
Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import { useLocation } from '@docusaurus/router';
32
import GitHubButton from '../../components/GitHubButton';
43

54
interface CustomGithubNavbarItemProps {
@@ -22,10 +21,7 @@ const GitHubIcon: React.FC<{ className?: string }> = ({ className = "" }) => (
2221
);
2322

2423
const CustomGithubNavbarItem: React.FC<CustomGithubNavbarItemProps> = ({ mobile, ...props }) => {
25-
const location = useLocation();
26-
const isBlogPage = location.pathname.startsWith('/blog');
27-
28-
// For mobile view, always show simple version with icon
24+
// For mobile view, show simple version with icon
2925
if (mobile) {
3026
return (
3127
<a
@@ -41,24 +37,8 @@ const CustomGithubNavbarItem: React.FC<CustomGithubNavbarItemProps> = ({ mobile,
4137
);
4238
}
4339

44-
// Show fancy button only on blog pages, normal link elsewhere
45-
if (isBlogPage) {
46-
return <GitHubButton />;
47-
}
48-
49-
// Normal GitHub link for non-blog pages with icon
50-
return (
51-
<a
52-
href="https://github.com/universal-tool-calling-protocol"
53-
target="_blank"
54-
rel="noopener noreferrer"
55-
className="navbar__item navbar__link"
56-
title="GitHub"
57-
{...props}
58-
>
59-
<GitHubIcon />
60-
</a>
61-
);
40+
// Always show the fancy GitHub button for desktop
41+
return <GitHubButton />;
6242
};
6343

6444
export default CustomGithubNavbarItem;

0 commit comments

Comments
 (0)