This is an automated email from the ASF dual-hosted git repository. juzhiyuan pushed a commit to branch feat-docusaurus in repository https://gitbox.apache.org/repos/asf/apisix-website.git
commit 06612d18cb9f434ba46cbeb1aaf60821de9fd702 Author: juzhiyuan <[email protected]> AuthorDate: Sat Aug 22 11:22:29 2020 +0800 feat: update Footer --- website/core/Footer.js | 37 ++----------------------------------- website/siteConfig.js | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 37 deletions(-) diff --git a/website/core/Footer.js b/website/core/Footer.js index b1c3058..956c961 100644 --- a/website/core/Footer.js +++ b/website/core/Footer.js @@ -42,10 +42,10 @@ class Footer extends React.Component { <h5>Community</h5> <a href={`${this.props.config.baseUrl}users`}>User Showcase</a> <a - href="https://github.com/apache/apisix/issues" + href="https://github.com/apache/apisix" target="_blank" rel="noreferrer noopener"> - Issues + GitHub </a> <a href="https://twitter.com/ApacheAPISIX" @@ -57,39 +57,6 @@ class Footer extends React.Component { <div> <h5>More</h5> <a href={`${this.props.config.baseUrl}blog`}>Blog</a> - <a href="https://github.com/">GitHub</a> - <a - className="github-button" - href={this.props.config.repoUrl} - data-icon="octicon-star" - data-count-href="/facebook/docusaurus/stargazers" - data-show-count="true" - data-count-aria-label="# stargazers on GitHub" - aria-label="Star this project on GitHub"> - Star - </a> - {this.props.config.twitterUsername && ( - <div className="social"> - <a - href={`https://twitter.com/${this.props.config.twitterUsername}`} - className="twitter-follow-button"> - Follow @{this.props.config.twitterUsername} - </a> - </div> - )} - {this.props.config.facebookAppId && ( - <div className="social"> - <div - className="fb-like" - data-href={this.props.config.url} - data-colorscheme="dark" - data-layout="standard" - data-share="true" - data-width="225" - data-show-faces="false" - /> - </div> - )} </div> </section> diff --git a/website/siteConfig.js b/website/siteConfig.js index 9bc8aef..8bd1efe 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -36,6 +36,8 @@ const siteConfig = { { page: "help", label: "Team" }, { doc: "doc4", label: "Links" }, { page: "help", label: "Help" }, + { search: true }, + { languages: true }, ], // If you have users set above, you add it here: @@ -67,7 +69,8 @@ const siteConfig = { */ // This copyright info is used in /core/Footer.js and blog RSS/Atom feeds. - copyright: 'Copyright © 2019-2020 The Apache Software Foundation. Apache APISIX, and its feather logo are trademarks of The Apache Software Foundation.', + copyright: + "Copyright © 2019-2020 The Apache Software Foundation. Apache APISIX, and its feather logo are trademarks of The Apache Software Foundation.", highlight: { // Highlight.js theme to use for syntax highlighting in code blocks. @@ -98,7 +101,14 @@ const siteConfig = { // You may provide arbitrary config keys to be used as needed by your // template. For example, if you need your repo's URL... - repoUrl: 'https://github.com/apache/apisix', + repoUrl: "https://github.com/apache/apisix", + algolia: { + apiKey: '', + appId: '' + }, + gaTrackingId: '', + twitterUsername: 'ApacheAPISIX', + scrollToTop: true, }; module.exports = siteConfig;
