You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ju...@apache.org on 2022/10/14 08:00:00 UTC
[pulsar-site] branch main updated: correct homepage link and remove dangling bottom block (#251)
This is an automated email from the ASF dual-hosted git repository.
junma 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 d5c02ebca6e correct homepage link and remove dangling bottom block (#251)
d5c02ebca6e is described below
commit d5c02ebca6effc92572e5cd7368b289dcc597e0d
Author: tison <wa...@gmail.com>
AuthorDate: Fri Oct 14 15:59:54 2022 +0800
correct homepage link and remove dangling bottom block (#251)
* correct homepage link and remove dangling bottom block
Signed-off-by: tison <wa...@gmail.com>
* Update site2/website-next/src/pages/index.js
* quickstart use docs' about page
Signed-off-by: tison <wa...@gmail.com>
Signed-off-by: tison <wa...@gmail.com>
---
site2/website-next/docs/about.md | 8 ++++----
site2/website-next/docusaurus.config.js | 3 +--
site2/website-next/src/components/BlockLink.js | 5 ++---
.../website-next/src/components/HomepageFeatures.js | 2 --
site2/website-next/src/components/PillButton.js | 1 -
site2/website-next/src/components/PromoCallout.js | 2 +-
site2/website-next/src/components/SubHeroBlock.js | 7 ++-----
site2/website-next/src/pages/index.js | 21 +++------------------
8 files changed, 13 insertions(+), 36 deletions(-)
diff --git a/site2/website-next/docs/about.md b/site2/website-next/docs/about.md
index f1983734978..69d84c63611 100644
--- a/site2/website-next/docs/about.md
+++ b/site2/website-next/docs/about.md
@@ -13,16 +13,16 @@ import { docUrl } from "@site/src/utils/index";
# Welcome to the Apache Pulsar documentation portal
***
-This portal holds a variety of topics, tutorials, guides, and reference material to help you work with Pulsar.
+This portal holds a variety of topics, tutorials, guides, and reference material to help you work with Pulsar.
## Choose your path....
Select one of the content blocks below to begin your Pulsar journey. If you ...
* Are new to Pulsar, start with **About Pulsar** to learn about features and concepts.
* Want to jump to the quickstart, select **Get Started**.
* Are an operator responsible for architecting and supporting Apache Pulsar, start with **Install, Deploy, Upgrade**.
-* Are a developer who wants to master Apache Pulsar, select **Pulsar for Developers**.
+* Are a developer who wants to master Apache Pulsar, select **Pulsar for Developers**.
* Want to try out Pulsar, select **How To** for access to the "hello world" tutorial.
-* An experienced Pulsar coder looking for API, metrics, or configuration documentation, go to **Reference**.
+* An experienced Pulsar coder looking for API, metrics, or configuration documentation, go to **Reference**.
<BlockLinks>
<BlockLink title="About Pulsar" url="/docs/next/concepts-overview/" />
@@ -51,7 +51,7 @@ As you probably know, we are working on a new user experience for our documentat
## Help Improve These Documents
***
-You’ll notice an Edit button at the bottom and top of each page. Click it to open a landing page with instructions for requesting changes to posted documents. These are your resources. Participation is not only welcomed – it’s essential!
+You’ll notice an Edit button at the bottom and top of each page. Click it to open a landing page with instructions for requesting changes to posted documents. These are your resources. Participation is not only welcomed – it’s essential!
:::tip
diff --git a/site2/website-next/docusaurus.config.js b/site2/website-next/docusaurus.config.js
index 4214fec3f43..2a4b4c2ed47 100644
--- a/site2/website-next/docusaurus.config.js
+++ b/site2/website-next/docusaurus.config.js
@@ -167,9 +167,8 @@ module.exports = {
label: "Pulsar Concepts",
},
{
- type: "doc",
label: "Quickstart",
- docId: "getting-started-standalone",
+ to: "/docs",
},
{
label: "Ecosystem",
diff --git a/site2/website-next/src/components/BlockLink.js b/site2/website-next/src/components/BlockLink.js
index 2418c82c112..2f9f11d16c3 100644
--- a/site2/website-next/src/components/BlockLink.js
+++ b/site2/website-next/src/components/BlockLink.js
@@ -1,6 +1,4 @@
import React from "react";
-import { docUrl } from "../utils/index";
-
const BlockLink = (props) => {
return(
@@ -11,4 +9,5 @@ const BlockLink = (props) => {
</div>
)
}
-export default BlockLink;
\ No newline at end of file
+
+export default BlockLink;
diff --git a/site2/website-next/src/components/HomepageFeatures.js b/site2/website-next/src/components/HomepageFeatures.js
index 1e6da5ff3a5..674693286ce 100644
--- a/site2/website-next/src/components/HomepageFeatures.js
+++ b/site2/website-next/src/components/HomepageFeatures.js
@@ -1,8 +1,6 @@
import React from "react";
-import clsx from "clsx";
import styles from "./HomepageFeatures.module.css";
import ReactMarkdown from "react-markdown";
-import { docUrl } from "../utils/index";
const FeatureList = (language) => [
{
diff --git a/site2/website-next/src/components/PillButton.js b/site2/website-next/src/components/PillButton.js
index 64ba48a8428..16fa0992022 100644
--- a/site2/website-next/src/components/PillButton.js
+++ b/site2/website-next/src/components/PillButton.js
@@ -1,5 +1,4 @@
import React from "react";
-import { docUrl } from "../utils/index";
const PillButton = (props) => {
return (
diff --git a/site2/website-next/src/components/PromoCallout.js b/site2/website-next/src/components/PromoCallout.js
index 3149b94d7fc..25d85496834 100644
--- a/site2/website-next/src/components/PromoCallout.js
+++ b/site2/website-next/src/components/PromoCallout.js
@@ -1,5 +1,4 @@
import React from "react";
-import { docUrl } from "../utils/index";
const PromoCallout = (props) => {
return (
@@ -12,4 +11,5 @@ const PromoCallout = (props) => {
</div>
);
};
+
export default PromoCallout;
diff --git a/site2/website-next/src/components/SubHeroBlock.js b/site2/website-next/src/components/SubHeroBlock.js
index 30908d87447..33d1c8187f0 100644
--- a/site2/website-next/src/components/SubHeroBlock.js
+++ b/site2/website-next/src/components/SubHeroBlock.js
@@ -1,8 +1,4 @@
import React from "react";
-import styles from "./SubHeroBlock.module.css";
-import ReactMarkdown from "react-markdown";
-import { docUrl } from "../utils/index";
-
const SubHeroBlock = (props) => {
return(
@@ -14,4 +10,5 @@ const SubHeroBlock = (props) => {
</section>
)
}
-export default SubHeroBlock;
\ No newline at end of file
+
+export default SubHeroBlock;
diff --git a/site2/website-next/src/pages/index.js b/site2/website-next/src/pages/index.js
index 3edace9bfd5..70fc7620224 100644
--- a/site2/website-next/src/pages/index.js
+++ b/site2/website-next/src/pages/index.js
@@ -6,8 +6,7 @@ import HomeQuotes from "../components/HomeQuotes";
import SubHeroBlock from "../components/SubHeroBlock";
import PromoCallout from "../components/PromoCallout";
import PillButton from "../components/PillButton";
-import GitHubIcon from "@mui/icons-material/GitHub";
-import { docUrl, githubUrl } from "../utils/index";
+
var startWaves = function () {
if (!SineWaves) {
return;
@@ -177,14 +176,10 @@ export default function Home() {
</div>
<div className="home-ctas relative z-5">
<div className="inner">
- <PillButton
- variant=""
- target=""
- href={docUrl("next/concepts-overview")}
- >
+ <PillButton variant="" target="" href={`${siteConfig.baseUrl}docs/concepts-overview`}>
Learn More
</PillButton>
- <PillButton variant="grey" href={docUrl("next/")}>
+ <PillButton variant="grey" href={`${siteConfig.baseUrl}docs`}>
Quickstart
</PillButton>
</div>
@@ -217,16 +212,6 @@ export default function Home() {
</a>
</p>
</div>
- <div className="final-cta relative z-5 py-12">
- <div className="inner inner--narrow text--center">
- <h2 className="">Get real-time with Pulsar</h2>
- <p className="">
- <PillButton variant="" target="" href={docUrl("")}>
- Quickstart Guide
- </PillButton>
- </p>
- </div>
- </div>
</section>
</div>
</Layout>