You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/08/22 03:25:40 UTC
[apisix-website] branch feat-docusaurus updated (063b2c0 -> 852d5cc)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a change to branch feat-docusaurus
in repository https://gitbox.apache.org/repos/asf/apisix-website.git.
from 063b2c0 feat: intial
new 5474ff0 feat: update Footer
new 06612d1 feat: update Footer
new 852d5cc feat: added algolia
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
website/core/Footer.js | 73 ++++++++------------------
website/siteConfig.js | 79 +++++++++++++++--------------
website/static/img/asf_logo_wide_small.png | Bin 0 -> 32278 bytes
website/static/img/logo.png | Bin 0 -> 85376 bytes
4 files changed, 64 insertions(+), 88 deletions(-)
create mode 100644 website/static/img/asf_logo_wide_small.png
create mode 100644 website/static/img/logo.png
[apisix-website] 02/03: feat: update Footer
Posted by ju...@apache.org.
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 <ju...@apache.org>
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;
[apisix-website] 01/03: feat: update Footer
Posted by ju...@apache.org.
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 5474ff0ec5d30c23aa1f59d6fd1b4bb7a3c13335
Author: juzhiyuan <ju...@apache.org>
AuthorDate: Sat Aug 22 11:05:03 2020 +0800
feat: update Footer
---
website/core/Footer.js | 40 +++++++++--------
website/siteConfig.js | 68 +++++++++++++----------------
website/static/img/asf_logo_wide_small.png | Bin 0 -> 32278 bytes
website/static/img/logo.png | Bin 0 -> 85376 bytes
4 files changed, 53 insertions(+), 55 deletions(-)
diff --git a/website/core/Footer.js b/website/core/Footer.js
index 90d0f6e..b1c3058 100644
--- a/website/core/Footer.js
+++ b/website/core/Footer.js
@@ -30,27 +30,25 @@ class Footer extends React.Component {
)}
</a>
<div>
- <h5>Docs</h5>
- <a href={this.docUrl('doc1.html')}>
- Getting Started (or other categories)
- </a>
- <a href={this.docUrl('doc2.html')}>Guides (or other categories)</a>
- <a href={this.docUrl('doc3.html')}>
- API Reference (or other categories)
- </a>
+ <h5>ASF</h5>
+ <a href="https://www.apache.org/security/">Security</a>
+ <a href="https://www.apache.org/">Foundation</a>
+ <a href="https://www.apache.org/licenses/">LICENSES</a>
+ {/* <a href="https://apachecon.com/?ref=apisix.apache.org">ApacheCon</a>
+ <a href="https://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
+ <a href="https://www.apache.org/foundation/thanks.html">Thanks</a> */}
</div>
<div>
<h5>Community</h5>
<a href={`${this.props.config.baseUrl}users`}>User Showcase</a>
<a
- href="https://stackoverflow.com/questions/tagged/"
+ href="https://github.com/apache/apisix/issues"
target="_blank"
rel="noreferrer noopener">
- Stack Overflow
+ Issues
</a>
- <a href="https://discordapp.com/">Project Chat</a>
<a
- href="https://twitter.com/"
+ href="https://twitter.com/ApacheAPISIX"
target="_blank"
rel="noreferrer noopener">
Twitter
@@ -96,15 +94,21 @@ class Footer extends React.Component {
</section>
<a
- href="https://opensource.facebook.com/"
+ href="https://www.apache.org/"
target="_blank"
rel="noreferrer noopener"
- className="fbOpenSource">
+ style={{
+ display: 'block',
+ margin: '1em auto',
+ opacity: 0.8,
+ transition: 'opacity 0.15s ease-in-out',
+ textAlign: 'center'
+ }}
+ >
<img
- src={`${this.props.config.baseUrl}img/oss_logo.png`}
- alt="Facebook Open Source"
- width="170"
- height="45"
+ src={`${this.props.config.baseUrl}img/asf_logo_wide_small.png`}
+ alt="Apache Software Foundation"
+ style={{width: 370, height: 64}}
/>
</a>
<section className="copyright">{this.props.config.copyright}</section>
diff --git a/website/siteConfig.js b/website/siteConfig.js
index b6cdeb4..9bc8aef 100644
--- a/website/siteConfig.js
+++ b/website/siteConfig.js
@@ -11,51 +11,45 @@
// List of projects/orgs using your project for the users page.
const users = [
{
- caption: 'User1',
+ caption: "User1",
// You will need to prepend the image path with your baseUrl
// if it is not '/', like: '/test-site/img/image.jpg'.
- image: '/img/undraw_open_source.svg',
- infoLink: 'https://www.facebook.com',
+ image: "/img/undraw_open_source.svg",
+ infoLink: "https://www.facebook.com",
pinned: true,
},
];
const siteConfig = {
- title: 'Test Site', // Title for your website.
- tagline: 'A website for testing',
- url: 'https://your-docusaurus-test-site.com', // Your website URL
- baseUrl: '/', // Base URL for your project */
- // For github.io type URLs, you would set the url and baseUrl like:
- // url: 'https://facebook.github.io',
- // baseUrl: '/test-site/',
-
- // Used for publishing and more
- projectName: 'test-site',
- organizationName: 'facebook',
- // For top-level user or org sites, the organization is still the same.
- // e.g., for the https://JoelMarcey.github.io site, it would be set like...
- // organizationName: 'JoelMarcey'
-
- // For no header links in the top nav bar -> headerLinks: [],
+ title: "Apache APISIX",
+ tagline: "The Cloud-Native API Gateway",
+ url: "https://apisix.apache.org/",
+ baseUrl: "/",
+ projectName: "apisix-website",
+ organizationName: "Apache",
headerLinks: [
- {doc: 'doc1', label: 'Docs'},
- {doc: 'doc4', label: 'API'},
- {page: 'help', label: 'Help'},
- {blog: true, label: 'Blog'},
+ { doc: "doc1", label: "Docs" },
+ { doc: "doc4", label: "GitHub" },
+ { doc: "doc4", label: "Events" },
+ { blog: true, label: "Blog" },
+ { page: "help", label: "Downloads" },
+ { page: "help", label: "Team" },
+ { doc: "doc4", label: "Links" },
+ { page: "help", label: "Help" },
],
// If you have users set above, you add it here:
users,
/* path to images for header/footer */
- headerIcon: 'img/favicon.ico',
- footerIcon: 'img/favicon.ico',
- favicon: 'img/favicon.ico',
+ headerIcon: "img/logo.png",
+ footerIcon: false,
+ favicon: "img/logo.png",
/* Colors for website */
colors: {
- primaryColor: '#a30328',
- secondaryColor: '#72021c',
+ primaryColor: "#a30328",
+ secondaryColor: "#72021c",
},
/* Custom fonts for website */
@@ -73,38 +67,38 @@ const siteConfig = {
*/
// This copyright info is used in /core/Footer.js and blog RSS/Atom feeds.
- copyright: `Copyright © ${new Date().getFullYear()} Your Name or Your Company Name`,
+ 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.
- theme: 'default',
+ theme: "default",
},
// Add custom scripts here that would be placed in <script> tags.
- scripts: ['https://buttons.github.io/buttons.js'],
+ scripts: ["https://buttons.github.io/buttons.js"],
// On page navigation for the current documentation page.
- onPageNav: 'separate',
+ onPageNav: "separate",
// No .html extensions for paths.
cleanUrl: true,
// Open Graph and Twitter card images.
- ogImage: 'img/undraw_online.svg',
- twitterImage: 'img/undraw_tweetstorm.svg',
+ ogImage: "img/undraw_online.svg",
+ twitterImage: "img/undraw_tweetstorm.svg",
// For sites with a sizable amount of content, set collapsible to true.
// Expand/collapse the links and subcategories under categories.
// docsSideNavCollapsible: true,
// Show documentation's last contributor's name.
- // enableUpdateBy: true,
+ enableUpdateBy: true,
// Show documentation's last update time.
- // enableUpdateTime: true,
+ enableUpdateTime: true,
// 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/facebook/test-site',
+ repoUrl: 'https://github.com/apache/apisix',
};
module.exports = siteConfig;
diff --git a/website/static/img/asf_logo_wide_small.png b/website/static/img/asf_logo_wide_small.png
new file mode 100644
index 0000000..865de17
Binary files /dev/null and b/website/static/img/asf_logo_wide_small.png differ
diff --git a/website/static/img/logo.png b/website/static/img/logo.png
new file mode 100644
index 0000000..381ab08
Binary files /dev/null and b/website/static/img/logo.png differ
[apisix-website] 03/03: feat: added algolia
Posted by ju...@apache.org.
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 852d5cc545330ca7a5e46ae3d41e68bb6d458a59
Author: juzhiyuan <ju...@apache.org>
AuthorDate: Sat Aug 22 11:25:19 2020 +0800
feat: added algolia
---
website/siteConfig.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/website/siteConfig.js b/website/siteConfig.js
index 8bd1efe..e1facd4 100644
--- a/website/siteConfig.js
+++ b/website/siteConfig.js
@@ -103,8 +103,9 @@ const siteConfig = {
// template. For example, if you need your repo's URL...
repoUrl: "https://github.com/apache/apisix",
algolia: {
- apiKey: '',
- appId: ''
+ apiKey: '79e72fedcf3719ba85c552f710ade8a3',
+ appId: 'ZHVP417Y1Y',
+ indexName: 'apache-apisix-website'
},
gaTrackingId: '',
twitterUsername: 'ApacheAPISIX',