superset/docs
Srini Kadamati 4a4fdb1e02
docs: set up client-side redirects from previous era docs urls (#10921)
* one simple redirect, as a test

* adding license to header

* painstakingly added SEO redirects!

* addressed feedback and ran lint-fix!

* lets try newline again!

* Revert "lets try newline again!"

This reverts commit 20f89bd23c.

* Revert "Revert "lets try newline again!""

This reverts commit e441edc54a.

* wait... there were TWO newlines?

Co-authored-by: Evan Rusackas <evan@preset.io>
2020-09-18 13:31:22 -07:00
..
src docs: set up client-side redirects from previous era docs urls (#10921) 2020-09-18 13:31:22 -07:00
static/images docs(new docs site): removes old sphinx doc site with gatsby (#10784) 2020-09-11 22:59:12 -07:00
.eslintrc.js docs(style): make more responsive for mobile (#10853) 2020-09-14 11:58:45 -07:00
.gitignore docs(new docs site): removes old sphinx doc site with gatsby (#10784) 2020-09-11 22:59:12 -07:00
.htaccess docs: redirect http -> https (#10900) 2020-09-16 08:24:08 -07:00
.prettierrc docs(new docs site): removes old sphinx doc site with gatsby (#10784) 2020-09-11 22:59:12 -07:00
doczrc.js docs(new docs site): removes old sphinx doc site with gatsby (#10784) 2020-09-11 22:59:12 -07:00
gatsby-config.js docs: Client side redirects (one POC) (#10898) 2020-09-16 13:24:26 -07:00
gatsby-node.js docs: set up client-side redirects from previous era docs urls (#10921) 2020-09-18 13:31:22 -07:00
installation.rst docs: fix ubuntu 20.04 installation instructions (#10888) 2020-09-15 21:16:57 +03:00
package-lock.json docs: Client side redirects (one POC) (#10898) 2020-09-16 13:24:26 -07:00
package.json docs: Client side redirects (one POC) (#10898) 2020-09-16 13:24:26 -07:00
prettier.config.js docs(new docs site): removes old sphinx doc site with gatsby (#10784) 2020-09-11 22:59:12 -07:00
README.md docs: set up client-side redirects from previous era docs urls (#10921) 2020-09-18 13:31:22 -07:00
requirements.txt docs(new docs site): removes old sphinx doc site with gatsby (#10784) 2020-09-11 22:59:12 -07:00
sqllab.rst security: disallow uuid package on jinja2 (#10794) 2020-09-04 16:37:14 +01:00

Here's the source to the documentation hosted at superset.apache.org

The site runs on the Gatsby framework and uses docz for it's Documentation subsection.

Getting Started

cd docs/
npm install
npm run start
# navigate to localhost:8000`

To Publish

To publish, the static site that Gatsby generates needs to be pushed to the asf-site branch on the apache/incubator-superset-site repository. No need to PR here, simply git push.

# Get in the docs/ folder in the main repo
cd ~/repos/incubator-superset/docs
# have Gatsby build the static website, this puts in under `docs/public`
npm run build

# go to the docs repo
cd ~/repos/incubator-superset-site
# checkout the proper branch
git checkout asf-site

# BE CAREFUL WITH THIS COMMAND
# wipe the content of the repo
rm -rf *

# copy the static site here
cp -r ~/repos/incubator-superset/docs/public/ ./

# git push
git add .
git commit -m "relevant commit msg"
git push origin asf-site

# SUCCESS - it should take minutes to take effect on superset.apache.org