Skip to content

Commit

Permalink
docs: change link (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
51wangping authored May 16, 2024
1 parent e947d0c commit 77982cb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-suits-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'kubed-documents': patch
---

docs: change link
2 changes: 1 addition & 1 deletion docs/lib/components/MetadataCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down
5 changes: 4 additions & 1 deletion docs/lib/layouts/TopBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const NavWrapper = styled('nav')<TopBarProps>`
.nav-icon {
padding: 0 8px;
&:hover {
color: #fff;
background-color: transparent;
Expand Down Expand Up @@ -69,6 +70,7 @@ const TopMenu = styled.div`
.topmenu-item {
color: #eff4f9;
&:hover {
color: #fff;
}
Expand All @@ -77,6 +79,7 @@ const TopMenu = styled.div`

const TopMenuItem = styled.a`
color: #eff4f9;
&:hover {
color: #fff;
}
Expand Down Expand Up @@ -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"
>
<Github variant="light" size={22} />
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default function Home() {
className="hero-button github-link"
rightIcon={<ExternalLink size={15} />}
as="a"
href="https://github.com/chenz24/kube-design"
href="https://github.com/kubesphere/kube-design/tree/next"
target="_blank"
>
GitHub
Expand Down

0 comments on commit 77982cb

Please sign in to comment.