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/) * [Create Time Series Charts](https://preset.io/blog/2020-06-26-timeseries-chart/)
* [Docker image](https://hub.docker.com/r/preset/superset/) * [Docker image](https://hub.docker.com/r/preset/superset/)
* [Youtube Channel](https://www.youtube.com/channel/UCMuwrvBsg_jjI2gLcm04R0g) * [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) * [May 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) * [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/) * [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 RewriteEngine On
RewriteCond %{SERVER_PORT} 80 RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://superset.apache.org/$1 [R,L] 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; const { visible } = this.state;
return ( return (
<Layout.Header css={headerStyle}> <Layout.Header css={headerStyle}>
<Link to="/"> <Link to="https://superset.incubator.apache.org">
<img height="50" css={logoStyle} src={logoSvg} alt="logo" /> <img height="50" css={logoStyle} src={logoSvg} alt="logo" />
</Link> </Link>
<MenuItems toggleDrawer={this.toggleDrawer} mode="horizontal" /> <MenuItems toggleDrawer={this.toggleDrawer} mode="horizontal" />

View File

@ -109,7 +109,7 @@ const LayoutFooter = () => (
</a> </a>
, &nbsp;Licensed under the Apache , &nbsp;Licensed under the Apache
<a <a
href="https://www.apache.org/licenses/" href="https://apache.org/licenses/LICENSE-2.0"
target="_blank" target="_blank"
rel="noreferrer" rel="noreferrer"
> >
@ -126,23 +126,39 @@ const LayoutFooter = () => (
reflection of the completeness or stability of the code, it does reflection of the completeness or stability of the code, it does
indicate that the project has yet to be fully endorsed by the ASF. indicate that the project has yet to be fully endorsed by the ASF.
</div> </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>
<div css={apacheLinksStyle} className="apacheLinks"> <div css={apacheLinksStyle} className="apacheLinks">
<a
href="https://www.apache.org/"
target="_blank"
rel="noreferrer"
>
Apache Software Foundation
</a>resources
<br/>
<a <a
href="https://www.apache.org/security/" href="https://www.apache.org/security/"
target="_blank" target="_blank"
rel="noreferrer" rel="noreferrer"
> >
Security &nbsp;| Security
</a> </a>
{' | '}
<a <a
href="https://www.apache.org/foundation/sponsorship.html" href="https://www.apache.org/foundation/sponsorship.html"
target="_blank" target="_blank"
rel="noreferrer" rel="noreferrer"
> >
Donate &nbsp;| Donate
</a> </a>
{' | '}
<a <a
href="https://www.apache.org/foundation/thanks.html" href="https://www.apache.org/foundation/thanks.html"
target="_blank" target="_blank"
@ -150,6 +166,22 @@ const LayoutFooter = () => (
> >
Thanks Thanks
</a> </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> </div>
</Footer> </Footer>
); );

View File

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

View File

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