Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ RUN pnpm build

FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY --from=build /app/src/docs/skill.md /usr/share/nginx/html/registry/skill.md
COPY nginx.conf.template /etc/nginx/templates/default.conf.template
COPY runtime-config.js.template /usr/share/nginx/html/runtime-config.js.template
COPY docker-entrypoint.d/30-runtime-config.sh /docker-entrypoint.d/30-runtime-config.sh
Expand Down
7 changes: 7 additions & 0 deletions web/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ server {
add_header Cache-Control "public, immutable";
}

location = /registry/skill.md {
default_type text/plain;
add_header Content-Disposition "inline";
add_header X-Content-Type-Options "nosniff";
try_files $uri =404;
}

location = /runtime-config.js {
add_header Cache-Control "no-store";
try_files $uri =404;
Expand Down
8 changes: 0 additions & 8 deletions web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ export function Layout() {
const pathname = useRouterState({ select: (s) => s.location.pathname })
const { user, isLoading } = useAuth()

if (pathname === '/registry/skill') {
return (
<Suspense fallback={null}>
<Outlet />
</Suspense>
)
}

const navItems: Array<{
label: string
to: string
Expand Down
8 changes: 0 additions & 8 deletions web/src/app/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ const SearchPage = createLazyRouteComponent(() => import('@/pages/search'), 'Sea
const TermsOfServicePage = createLazyRouteComponent(() => import('@/pages/terms'), 'TermsOfServicePage')
const NamespacePage = createLazyRouteComponent(() => import('@/pages/namespace'), 'NamespacePage')
const SkillDetailPage = createLazyRouteComponent(() => import('@/pages/skill-detail'), 'SkillDetailPage')
const RegistrySkillPage = createLazyRouteComponent(() => import('@/pages/registry-skill'), 'RegistrySkillPage')
const DashboardPage = createLazyRouteComponent(() => import('@/pages/dashboard'), 'DashboardPage')
const MySkillsPage = createLazyRouteComponent(() => import('@/pages/dashboard/my-skills'), 'MySkillsPage')
const PublishPage = createLazyRouteComponent(() => import('@/pages/dashboard/publish'), 'PublishPage')
Expand Down Expand Up @@ -215,12 +214,6 @@ const skillDetailRoute = createRoute({
component: SkillDetailPage,
})

const registrySkillRoute = createRoute({
getParentRoute: () => rootRoute,
path: '/registry/skill',
component: RegistrySkillPage,
})

const dashboardRoute = createRoute({
getParentRoute: () => rootRoute,
path: 'dashboard',
Expand Down Expand Up @@ -367,7 +360,6 @@ const routeTree = rootRoute.addChildren([
termsRoute,
namespaceRoute,
skillDetailRoute,
registrySkillRoute,
dashboardRoute,
dashboardSkillsRoute,
dashboardPublishRoute,
Expand Down
2 changes: 1 addition & 1 deletion web/src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
},
"agent": {
"description": "Send a prompt to your Agent to set up the SkillHub Registry",
"command": "Read https://www.example.com/registry/skill and follow the instructions to setup SkillHub Skills Registry"
"command": "Read https://www.example.com/registry/skill.md and follow the instructions to setup SkillHub Skills Registry"
},
"human": {
"description": "Use the CLI tool to install Skills",
Expand Down
2 changes: 1 addition & 1 deletion web/src/i18n/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
},
"agent": {
"description": "发送提示词给你的 Agent,以设置SkillHub Registry",
"command": "Read https://www.example.com/registry/skill and follow the instructions to setup SkillHub Skills Registry"
"command": "Read https://www.example.com/registry/skill.md and follow the instructions to setup SkillHub Skills Registry"
},
"human": {
"description": "使用CLI工具安装Skills",
Expand Down
9 changes: 0 additions & 9 deletions web/src/pages/registry-skill.tsx

This file was deleted.

Loading