This is an automated email from the ASF dual-hosted git repository.
liuyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new e5f7b81622b miscellaneous fixes for download page (#218)
e5f7b81622b is described below
commit e5f7b81622b7d0e23cb81c6f48c3cd2e64c7093f
Author: tison <[email protected]>
AuthorDate: Thu Sep 22 10:37:46 2022 +0800
miscellaneous fixes for download page (#218)
---
site2/website-next/src/components/GuideTable.js | 55 -------------------------
site2/website-next/src/pages/download.js | 39 ++++--------------
2 files changed, 9 insertions(+), 85 deletions(-)
diff --git a/site2/website-next/src/components/GuideTable.js
b/site2/website-next/src/components/GuideTable.js
deleted file mode 100644
index a488e726647..00000000000
--- a/site2/website-next/src/components/GuideTable.js
+++ /dev/null
@@ -1,55 +0,0 @@
-import * as React from "react";
-import Table from "@mui/material/Table";
-import TableBody from "@mui/material/TableBody";
-import TableCell from "@mui/material/TableCell";
-import TableRow from "@mui/material/TableRow";
-import Link from "@mui/material/Link";
-// import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
-import Translate, { translate } from "@docusaurus/Translate";
-
-export default function VersionsTable(props) {
- // const { siteConfig } = useDocusaurusContext();
- return (
- <Table size="small">
- <TableBody>
- <TableRow key="header">
- {["Client guide", "API docs"].map((header) => (
- <TableCell
- className="border-gray-300 font-bold"
- sx={{ border: 1, color: "inherit" }}
- align="left"
- key={header}
- >
- <Translate>{header}</Translate>
- </TableCell>
- ))}
- </TableRow>
- {props.data.map((row, index) => (
- <TableRow key={index}>
- <TableCell
- className="border-gray-300"
- sx={{ border: 1, color: "inherit" }}
- align="left"
- >
- <Link
- className="text-primary"
- href={row.link}
- underline="none"
- target="_blank"
- >
- {row.name}
- </Link>
- </TableCell>
- <TableCell
- className="border-gray-300 font-bold"
- sx={{ border: 1, color: "inherit" }}
- align="left"
- >
- {row.description}
- </TableCell>
- </TableRow>
- ))}
- </TableBody>
- </Table>
- );
-}
diff --git a/site2/website-next/src/pages/download.js
b/site2/website-next/src/pages/download.js
index 5a7752d0421..a39637be74c 100644
--- a/site2/website-next/src/pages/download.js
+++ b/site2/website-next/src/pages/download.js
@@ -2,7 +2,6 @@ import * as React from "react";
import Layout from "@theme/Layout";
import ReleaseTable from "../components/ReleaseTable";
import ConnectorTable from "../components/ConnectorTable";
-import GuideTable from "../components/GuideTable";
import OldReleaseTable from "../components/OldReleaseTable";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import Translate, { translate } from "@docusaurus/Translate";
@@ -148,30 +147,6 @@ export default function page(props) {
sha512: `${distOffloadersUrl(latestVersion)}.sha512`,
},
];
- const guides = [
- {
- name: "The Pulsar java client",
- link:
`${siteConfig.baseUrl}docs/${language(props)}client-libraries-java`,
- description: "The Pulsar java client",
- },
- {
- name: "The Pulsar go client",
- link: `${siteConfig.baseUrl}docs/${language(props)}client-libraries-go`,
- description: "The Pulsar go client",
- },
- {
- name: "The Pulsar python client",
- link: `${siteConfig.baseUrl}docs/${language(
- props
- )}client-libraries-python`,
- description: "The Pulsar java client",
- },
- {
- name: "The Pulsar C++ client",
- link: `${siteConfig.baseUrl}docs/${language(props)}client-libraries-cpp`,
- description: "The Pulsar C++ client",
- },
- ];
const oldReleases = releaseInfo
.filter((info) => {
return info.version != latestVersion;
@@ -329,7 +304,7 @@ export default function page(props) {
</Translate>
<a
- href={`${siteConfig.baseUrl}docs/${language(props)}standalone`}
+
href={`${siteConfig.baseUrl}docs/${language(props)}getting-started-standalone`}
>
<Translate>Run Pulsar locally</Translate>
</a>{" "}
@@ -338,12 +313,16 @@ export default function page(props) {
</div>
<p>
<Translate>
- If you need to connect to an existing Pulsar cluster or instance
- using an officially supported client, see the client docs for
- these languages:
+ If you need to connect to an existing Pulsar server or cluster
+ using an officially supported client, read the
</Translate>
+
+ <a
+
href={`${siteConfig.baseUrl}docs/${language(props)}client-libraries`}
+ >
+ <Translate>client libraries docs</Translate>
+ </a>{"."}
</p>
- <GuideTable data={guides}></GuideTable>
<h2 id="archive">
<Translate>Older releases</Translate>
</h2>