From 77982cbb01b82c12562a328cbf6574e9873eb64a Mon Sep 17 00:00:00 2001 From: Dylan Wang <44744910+51wangping@users.noreply.github.com> Date: Thu, 16 May 2024 17:45:12 +0800 Subject: [PATCH] docs: change link (#212) --- .changeset/real-suits-live.md | 5 +++++ docs/lib/components/MetadataCard/index.tsx | 2 +- docs/lib/layouts/TopBar/index.tsx | 5 ++++- docs/pages/index.tsx | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .changeset/real-suits-live.md diff --git a/.changeset/real-suits-live.md b/.changeset/real-suits-live.md new file mode 100644 index 00000000..ef00fd4c --- /dev/null +++ b/.changeset/real-suits-live.md @@ -0,0 +1,5 @@ +--- +'kubed-documents': patch +--- + +docs: change link diff --git a/docs/lib/components/MetadataCard/index.tsx b/docs/lib/components/MetadataCard/index.tsx index 36753d4b..5c0dc4c4 100644 --- a/docs/lib/components/MetadataCard/index.tsx +++ b/docs/lib/components/MetadataCard/index.tsx @@ -63,7 +63,7 @@ const getLinks = (title, group, locale) => { const isHooks = title.startsWith('use'); const sourceName = isHooks ? toCamelCase(title) : toPascalCase(title); - const sourceLink = `${SOURCE_BASE}/${group}/src/${sourceName}/${sourceName}.${ + const sourceLink = `${SOURCE_BASE}/${group}/src/${sourceName}/${isHooks ? 'index' : sourceName}.${ isHooks ? 'ts' : 'tsx' }`; const docLink = `${DOCS_BASE}/${locale}/${group}/${sourceName}.mdx`; diff --git a/docs/lib/layouts/TopBar/index.tsx b/docs/lib/layouts/TopBar/index.tsx index 5b4051de..40299377 100644 --- a/docs/lib/layouts/TopBar/index.tsx +++ b/docs/lib/layouts/TopBar/index.tsx @@ -36,6 +36,7 @@ const NavWrapper = styled('nav')` .nav-icon { padding: 0 8px; + &:hover { color: #fff; background-color: transparent; @@ -69,6 +70,7 @@ const TopMenu = styled.div` .topmenu-item { color: #eff4f9; + &:hover { color: #fff; } @@ -77,6 +79,7 @@ const TopMenu = styled.div` const TopMenuItem = styled.a` color: #eff4f9; + &:hover { color: #fff; } @@ -127,7 +130,7 @@ const TopBar = ({ isHome = true, isScroll = false }: TopBarProps) => { color="white" className="nav-icon" as="a" - href="https://github.com/chenz24/kube-design" + href="https://github.com/kubesphere/kube-design/tree/next" target="_blank" > diff --git a/docs/pages/index.tsx b/docs/pages/index.tsx index d00879bf..b5b2ba01 100644 --- a/docs/pages/index.tsx +++ b/docs/pages/index.tsx @@ -126,7 +126,7 @@ export default function Home() { className="hero-button github-link" rightIcon={} as="a" - href="https://github.com/chenz24/kube-design" + href="https://github.com/kubesphere/kube-design/tree/next" target="_blank" > GitHub