This is an automated email from the ASF dual-hosted git repository.
jimin pushed a commit to branch docusaurus
in repository https://gitbox.apache.org/repos/asf/incubator-seata-website.git
The following commit(s) were added to refs/heads/docusaurus by this push:
new 8e4c84c105 optimize: add unified footers (#752)
8e4c84c105 is described below
commit 8e4c84c105b3a2bf4d575f7417bb86c7c82c191d
Author: liuqiufeng <[email protected]>
AuthorDate: Fri Jan 5 15:44:21 2024 +0800
optimize: add unified footers (#752)
---
docusaurus.config.js | 21 +++++++++++++++++++++
i18n/en/docusaurus-theme-classic/footer.json | 4 ----
i18n/zh-cn/docusaurus-theme-classic/footer.json | 4 ----
src/css/custom.scss | 6 ++++++
src/pages/index.tsx | 2 +-
5 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index db8b64286a..ddfb48f08d 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -212,6 +212,27 @@ const config = {
autoCollapseCategories: true,
},
},
+ footer:{
+ logo:{
+ alt: 'Apache Incubator Logo',
+ src: 'img/apache/incubator.svg',
+ href:'https://incubator.apache.org/',
+ target: '_blank'
+ },
+ copyright: `
+ <div class="fs-12">
+ <div class="center-div">
+ <span>Apache Seata is an effort undergoing incubation at
The Apache Software Foundation (ASF), sponsored by the Apache Incubator.
Incubation is required of all newly accepted projects until a further review
indicates that the infrastructure, communications, and decision making process
have stabilized in a manner consistent with other successful ASF projects.
While incubation status is not necessarily a reflection of the completeness or
stability of the code, it does [...]
+ </div>
+ <br/>
+ <div class="center-div">
+ <span>Copyright © 2023-2024, The Apache Software
Foundation Apache Seata, Seata, Apache, Apache Incubator, the Apache feather,
the Apache Incubator logo and the Apache Seata project logo are either
registered trademarks or trademarks of the Apache Software Foundation.</span>
+ <br />
+ </div>
+ <br/>
+ </div>
+ `
+ },
prism: {
theme: lightCodeTheme,
},
diff --git a/i18n/en/docusaurus-theme-classic/footer.json
b/i18n/en/docusaurus-theme-classic/footer.json
index 4e6c371499..4b902be7b7 100644
--- a/i18n/en/docusaurus-theme-classic/footer.json
+++ b/i18n/en/docusaurus-theme-classic/footer.json
@@ -35,10 +35,6 @@
"message": "Blog",
"description": "The label of footer link with label=Blog linking to /blog"
},
- "copyright": {
- "message": "Copyright © 2023 Seata",
- "description": "The footer copyright"
- },
"link.item.label.Community": {
"message": "Community",
"description": "The label of footer link with label=Community linking to
/community"
diff --git a/i18n/zh-cn/docusaurus-theme-classic/footer.json
b/i18n/zh-cn/docusaurus-theme-classic/footer.json
index fabd56fec3..2b8d1b5ad0 100644
--- a/i18n/zh-cn/docusaurus-theme-classic/footer.json
+++ b/i18n/zh-cn/docusaurus-theme-classic/footer.json
@@ -38,9 +38,5 @@
"link.item.label.Community": {
"message": "社区",
"description": "The label of footer link with label=Community linking to
/community"
- },
- "copyright": {
- "message": "Copyright © 2023 Seata",
- "description": "The footer copyright"
}
}
diff --git a/src/css/custom.scss b/src/css/custom.scss
index ae0163549e..404476e60c 100644
--- a/src/css/custom.scss
+++ b/src/css/custom.scss
@@ -343,4 +343,10 @@ button[class*="tocCollapsibleButton"] {
margin-left: auto;
margin-right: auto;
text-align: center;
+}
+
+.footer {
+
.footerLogoLink_node_modules-\@docusaurus-theme-classic-lib-theme-Footer-Logo-styles-module
{
+ opacity: 1;
+ }
}
\ No newline at end of file
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 7b6eb7bf0a..fbc97e0e12 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -53,7 +53,7 @@ export default function Home(): React.Element {
<Feature />
<User />
{/* <Community /> */}
- <Footer/>
+ {/* <Footer/> */}
</div>
</Layout>
);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]