docs: comply to ASF requirements (#11133)

* docs: comply to ASF requirements

* touch something out of docs/

* Just a few more things...

* messing with .htaccess

* SEO
This commit is contained in:
Maxime Beauchemin 2020-10-01 22:15:36 -07:00 committed by GitHub
parent a4e1dc9c27
commit d578d8133f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 54 additions and 9 deletions

View File

@ -158,6 +158,6 @@ how to set up a development environment.
* [Create Time Series Charts](https://preset.io/blog/2020-06-26-timeseries-chart/)
* [Docker image](https://hub.docker.com/r/preset/superset/)
* [Youtube Channel](https://www.youtube.com/channel/UCMuwrvBsg_jjI2gLcm04R0g)
* [May 15, 2020: Virtual Meetup Recording. Topics: 0.36 Overview, Committers Self-Intro, Roadmap](https://www.youtube.com/watch?v=tXGDmqjmcTs&t=20s)
* [July 16, 2020: Virtual Meetup Recording. Topics: Visualization Plugins, 0.37 Preview, Demo](https://www.youtube.com/watch?v=f6up5x_iRbI)
* [May 2020: Virtual Meetup Recording. Topics: 0.36 Overview, Committers Self-Intro, Roadmap](https://www.youtube.com/watch?v=tXGDmqjmcTs&t=20s)
* [July 2020: Virtual Meetup Recording. Topics: Visualization Plugins, 0.37 Preview, Demo](https://www.youtube.com/watch?v=f6up5x_iRbI)
* [So, You Want to Build a Superset Viz Plugin...](https://preset.io/blog/2020-07-02-hello-world/)

View File

@ -18,3 +18,6 @@
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://superset.apache.org/$1 [R,L]
RewriteCond %{HTTP_HOST} ^superset.incubator.apache.org$ [NC]
RewriteRule ^(.*)$ https://superset.apache.org/$1 [R=301,L]

View File

@ -133,7 +133,7 @@ export default class MainMenu extends React.Component {
const { visible } = this.state;
return (
<Layout.Header css={headerStyle}>
<Link to="/">
<Link to="https://superset.incubator.apache.org">
<img height="50" css={logoStyle} src={logoSvg} alt="logo" />
</Link>
<MenuItems toggleDrawer={this.toggleDrawer} mode="horizontal" />

View File

@ -109,7 +109,7 @@ const LayoutFooter = () => (
</a>
, &nbsp;Licensed under the Apache
<a
href="https://www.apache.org/licenses/"
href="https://apache.org/licenses/LICENSE-2.0"
target="_blank"
rel="noreferrer"
>
@ -126,23 +126,39 @@ const LayoutFooter = () => (
reflection of the completeness or stability of the code, it does
indicate that the project has yet to be fully endorsed by the ASF.
</div>
<div>
Apache Superset, Apache, Superset, the Superset logo, and the Apache
feather logo are either registered trademarks or trademarks of The
Apache Software Foundation. All other products or name brands
are trademarks of their respective holders, including The Apache
Software Foundation.
</div>
</div>
<div css={apacheLinksStyle} className="apacheLinks">
<a
href="https://www.apache.org/"
target="_blank"
rel="noreferrer"
>
Apache Software Foundation
</a>resources
<br/>
<a
href="https://www.apache.org/security/"
target="_blank"
rel="noreferrer"
>
Security &nbsp;|
Security
</a>
{' | '}
<a
href="https://www.apache.org/foundation/sponsorship.html"
target="_blank"
rel="noreferrer"
>
Donate &nbsp;|
Donate
</a>
{' | '}
<a
href="https://www.apache.org/foundation/thanks.html"
target="_blank"
@ -150,6 +166,22 @@ const LayoutFooter = () => (
>
Thanks
</a>
{' | '}
<a
href="https://apache.org/events/current-event"
target="_blank"
rel="noreferrer"
>
Events
</a>
{' | '}
<a
href="https://apache.org/licenses/"
target="_blank"
rel="noreferrer"
>
Licenses
</a>
</div>
</Footer>
);

View File

@ -124,7 +124,7 @@ const contentLayoutDocsStyle = css`
overflow: auto;
}
`;
const footerHeight = 135;
const footerHeight = 185;
const baseLayoutStyle = css`
min-height: 100vh;
position: relative;
@ -133,6 +133,8 @@ const baseLayoutStyle = css`
bottom: 0;
width: 100%;
height: ${footerHeight}px;
overflow: auto; // sorry about this :/
background-color: #323232;
}
.content-wrap {
padding-bottom: ${footerHeight}px;

View File

@ -40,10 +40,18 @@ const learningLinks = [
];
const installationLinks = [
[
'Official Apache releases',
'https://dist.apache.org/repos/dist/release/incubator/superset/',
],
[
'Locally with Docker',
'https://superset.incubator.apache.org/installation.html#start-with-docker',
],
[
'Superset on the Python Package Index (PyPI)',
'https://dist.apache.org/repos/dist/release/incubator/superset/',
],
[
'Install on CentOS',
'https://aichamp.wordpress.com/2019/11/20/installing-apache-superset-into-centos-7-with-python-3-7/',
@ -97,7 +105,7 @@ interface featureProps {
}
const LinkSection = ({ title, links }: featureProps) => (
<div className="link-section">
<h2>{title}</h2>
<h3>{title}</h3>
<List
size="small"
bordered