diff --git a/.rat-excludes b/.rat-excludes index 3a80406d80dc2..f50d6a3862082 100644 --- a/.rat-excludes +++ b/.rat-excludes @@ -35,14 +35,9 @@ apache_superset.egg-info .*csv # Generated doc files env/* -docs/README.md docs/.htaccess* -docs-v2/README.md docs-v2/.htaccess* -docs-v2/static/img/logo.svg -docs-v2/static/img/undraw_docusaurus_mountain.svg -docs-v2/static/img/undraw_docusaurus_react.svg -docs-v2/static/img/undraw_docusaurus_tree.svg +.nojekyll _build/* _static/* .buildinfo diff --git a/docs-v2/README.md b/docs-v2/README.md index 55d0c3ef41c97..f918240c452fe 100644 --- a/docs-v2/README.md +++ b/docs-v2/README.md @@ -1,3 +1,22 @@ + + # Website This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator. diff --git a/docs-v2/babel.config.js b/docs-v2/babel.config.js index 4e3eda501a39a..9fd37c37c38a4 100644 --- a/docs-v2/babel.config.js +++ b/docs-v2/babel.config.js @@ -16,6 +16,7 @@ * specific language governing permissions and limitations * under the License. */ + module.exports = { presets: [require.resolve('@docusaurus/core/lib/babel/preset')], }; diff --git a/docs-v2/docusaurus.config.js b/docs-v2/docusaurus.config.js index fea26e1d331c5..e830a48832750 100644 --- a/docs-v2/docusaurus.config.js +++ b/docs-v2/docusaurus.config.js @@ -16,6 +16,7 @@ * specific language governing permissions and limitations * under the License. */ + // @ts-check // Note: type annotations allow type checking and IDEs autocompletion diff --git a/docs-v2/src/components/HomepageFeatures.module.css b/docs-v2/src/components/HomepageFeatures.module.css index b248eb2e5dee2..50ed64128f5ef 100644 --- a/docs-v2/src/components/HomepageFeatures.module.css +++ b/docs-v2/src/components/HomepageFeatures.module.css @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + .features { display: flex; align-items: center; diff --git a/docs-v2/src/components/HomepageFeatures.tsx b/docs-v2/src/components/HomepageFeatures.tsx index cc2c3f5a0d836..c824a4e6484f9 100644 --- a/docs-v2/src/components/HomepageFeatures.tsx +++ b/docs-v2/src/components/HomepageFeatures.tsx @@ -16,6 +16,7 @@ * specific language governing permissions and limitations * under the License. */ + import React from 'react'; import clsx from 'clsx'; import styles from './HomepageFeatures.module.css'; diff --git a/docs-v2/src/css/custom.css b/docs-v2/src/css/custom.css index f1aa5c575d66b..73e9306e93483 100644 --- a/docs-v2/src/css/custom.css +++ b/docs-v2/src/css/custom.css @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Any CSS included here will be global. The classic template * bundles Infima by default. Infima is a CSS framework designed to diff --git a/docs-v2/src/pages/index.module.css b/docs-v2/src/pages/index.module.css index 666feb6a172a5..07287ba4b4621 100644 --- a/docs-v2/src/pages/index.module.css +++ b/docs-v2/src/pages/index.module.css @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * CSS files with the .module.css suffix will be treated as CSS modules * and scoped locally. diff --git a/docs-v2/src/pages/markdown-page.md b/docs-v2/src/pages/markdown-page.md index 9756c5b6685a7..54e57d4c3edf6 100644 --- a/docs-v2/src/pages/markdown-page.md +++ b/docs-v2/src/pages/markdown-page.md @@ -1,3 +1,22 @@ + + --- title: Markdown page example --- diff --git a/docs-v2/static/img/logo.svg b/docs-v2/static/img/logo.svg index ad9d11a4a17b7..bd65d0d9d00ee 100644 --- a/docs-v2/static/img/logo.svg +++ b/docs-v2/static/img/logo.svg @@ -1 +1,19 @@ + diff --git a/docs-v2/static/img/superset-logo-horiz-dark.svg b/docs-v2/static/img/superset-logo-horiz-dark.svg index 53d5b2e65b1df..3fb7cdc0c19bf 100644 --- a/docs-v2/static/img/superset-logo-horiz-dark.svg +++ b/docs-v2/static/img/superset-logo-horiz-dark.svg @@ -1,4 +1,3 @@ - - diff --git a/docs-v2/static/img/superset-logo-horiz.svg b/docs-v2/static/img/superset-logo-horiz.svg index de597e79a64ed..fb2a4c35fe7c4 100644 --- a/docs-v2/static/img/superset-logo-horiz.svg +++ b/docs-v2/static/img/superset-logo-horiz.svg @@ -1,4 +1,3 @@ - - diff --git a/docs-v2/static/img/undraw_docusaurus_mountain.svg b/docs-v2/static/img/undraw_docusaurus_mountain.svg index 431cef2f7fece..4a5913f8640f4 100644 --- a/docs-v2/static/img/undraw_docusaurus_mountain.svg +++ b/docs-v2/static/img/undraw_docusaurus_mountain.svg @@ -1,3 +1,21 @@ + diff --git a/docs-v2/static/img/undraw_docusaurus_react.svg b/docs-v2/static/img/undraw_docusaurus_react.svg index e417050433381..b0c24d2431d1f 100644 --- a/docs-v2/static/img/undraw_docusaurus_react.svg +++ b/docs-v2/static/img/undraw_docusaurus_react.svg @@ -1,3 +1,21 @@ + diff --git a/docs-v2/static/img/undraw_docusaurus_tree.svg b/docs-v2/static/img/undraw_docusaurus_tree.svg index 4bbfbf1931e08..fe0fe3a454146 100644 --- a/docs-v2/static/img/undraw_docusaurus_tree.svg +++ b/docs-v2/static/img/undraw_docusaurus_tree.svg @@ -1 +1,19 @@ + docu_tree