Skip to content

Commit

Permalink
docs: comply to ASF requirements (apache#11133)
Browse files Browse the repository at this point in the history
* docs: comply to ASF requirements

* touch something out of docs/

* Just a few more things...

* messing with .htaccess

* SEO
  • Loading branch information
mistercrunch authored Oct 2, 2020
1 parent a4e1dc9 commit d578d81
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
3 changes: 3 additions & 0 deletions docs/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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]
2 changes: 1 addition & 1 deletion docs/src/components/MainMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
40 changes: 36 additions & 4 deletions docs/src/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand All @@ -126,30 +126,62 @@ 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"
rel="noreferrer"
>
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>
);
Expand Down
4 changes: 3 additions & 1 deletion docs/src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const contentLayoutDocsStyle = css`
overflow: auto;
}
`;
const footerHeight = 135;
const footerHeight = 185;
const baseLayoutStyle = css`
min-height: 100vh;
position: relative;
Expand All @@ -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;
Expand Down
10 changes: 9 additions & 1 deletion docs/src/pages/resources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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/',
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d578d81

Please sign in to comment.