📝 Docs: 升级新版 NonePress 主题 (#2375)

This commit is contained in:
Ju4tCode
2023-09-27 16:00:26 +08:00
committed by GitHub
parent 7754f6da1d
commit 842c6ff4c6
234 changed files with 8759 additions and 5887 deletions

View File

@ -0,0 +1,45 @@
import React from "react";
import Link from "@docusaurus/Link";
import Translate, { translate } from "@docusaurus/Translate";
import type { Props } from "@theme/Footer/Copyright";
import IconCloudflare from "@theme/Icon/Cloudflare";
import IconNetlify from "@theme/Icon/Netlify";
import OriginCopyright from "@theme-original/Footer/Copyright";
export default function FooterCopyright(props: Props) {
return (
<>
<OriginCopyright {...props} />
<div className="footer-support">
<Translate
id="theme.FooterCopyright.deployBy"
description="The deploy by message."
>
Deployed by
</Translate>
<Link
to="https://www.netlify.com/"
title={translate({
id: "theme.FooterCopyright.netlifyLinkTitle",
message: "Go to the Netlify website",
description: "The title attribute for the Netlify logo link",
})}
>
<IconNetlify className="footer-support-icon" />
</Link>
<Link
to="https://www.cloudflare.com/"
title={translate({
id: "theme.FooterCopyright.cloudflareLinkTitle",
message: "Go to the Cloudflare website",
description: "The title attribute for the Cloudflare logo link",
})}
>
<IconCloudflare className="footer-support-icon" />
</Link>
</div>
</>
);
}