Skip to content

Commit

Permalink
feat(docs): uplift Docusaurus to v3 (apache#28345)
Browse files Browse the repository at this point in the history
Signed-off-by: hainenber <[email protected]>
  • Loading branch information
hainenber authored and SRK committed May 10, 2024
1 parent 079838a commit 8d8cba9
Show file tree
Hide file tree
Showing 21 changed files with 2,143 additions and 1,976 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/superset-docs-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
with:
persist-credentials: false
submodules: recursive
- name: Set up Node.js 18
- name: Set up Node.js 20
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
- name: yarn install
run: |
yarn install --check-cache
Expand Down
1 change: 1 addition & 0 deletions docs/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.12.2
3 changes: 1 addition & 2 deletions docs/docs/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ hide_title: true
sidebar_position: 10
---

import { Buffer } from 'buffer';
global.Buffer = Buffer;
import { Buffer } from 'buffer/index.js';
import SwaggerUI from 'swagger-ui-react';
import openapi from '/resources/openapi.json';
import 'swagger-ui-react/swagger-ui.css';
Expand Down
10 changes: 5 additions & 5 deletions docs/docs/configuration/databases.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ in your environment.
You’ll need to install the required packages for the database you want to use as your metadata database
as well as the packages needed to connect to the databases you want to access through Superset.
For information about setting up Superset's metadata database, please refer to
[installation documentation](/docs/installation/)
installation documentations ([Docker Compose](/docs/installation/docker-compose), [Kubernetes](/docs/installation/kubernetes))
:::

This documentation tries to keep pointer to the different drivers for commonly used database
Expand All @@ -26,7 +26,7 @@ Superset requires a Python [DB-API database driver](https://peps.python.org/pep-
and a [SQLAlchemy dialect](https://docs.sqlalchemy.org/en/20/dialects/) to be installed for
each database engine you want to connect to.

You can read more [here](/docs/configuration/databases#docker-add-drivers) about how to
You can read more [here](/docs/configuration/databases#installing-drivers-in-docker-images) about how to
install new database drivers into your Superset configuration.

### Supported Databases and Dependencies
Expand Down Expand Up @@ -62,7 +62,7 @@ are compatible with Superset.
| [Firebolt](/docs/configuration/databases#firebolt) | `pip install firebolt-sqlalchemy` | `firebolt://{client_id}:{client_secret}@{database}/{engine_name}?account_name={name}` |
| [Hologres](/docs/configuration/databases#hologres) | `pip install psycopg2` | `postgresql+psycopg2://<UserName>:<DBPassword>@<Database Host>/<Database Name>` |
| [IBM Db2](/docs/configuration/databases#ibm-db2) | `pip install ibm_db_sa` | `db2+ibm_db://` |
| [IBM Netezza Performance Server](/docs/configuration/databases#netezza) | `pip install nzalchemy` | `netezza+nzpy://<UserName>:<DBPassword>@<Database Host>/<Database Name>` |
| [IBM Netezza Performance Server](/docs/configuration/databases#ibm-netezza-performance-server) | `pip install nzalchemy` | `netezza+nzpy://<UserName>:<DBPassword>@<Database Host>/<Database Name>` |
| [MySQL](/docs/configuration/databases#mysql) | `pip install mysqlclient` | `mysql://<UserName>:<DBPassword>@<Database Host>/<Database Name>` |
| [Oracle](/docs/configuration/databases#oracle) | `pip install cx_Oracle` | `oracle://` |
| [PostgreSQL](/docs/configuration/databases#postgres) | `pip install psycopg2` | `postgresql://<UserName>:<DBPassword>@<Database Host>/<Database Name>` |
Expand Down Expand Up @@ -158,7 +158,7 @@ to your database via the Superset web UI.

As an admin user, go to Settings -> Data: Database Connections and click the +DATABASE button.
From there, follow the steps on the
[Using Database Connection UI page](/docs/configuration/databases#db-connection-ui).
[Using Database Connection UI page](/docs/configuration/databases#connecting-through-the-ui).

Consult the page for your specific database type in the Superset documentation to determine
the connection string and any other parameters you need to input. For instance,
Expand Down Expand Up @@ -754,7 +754,7 @@ The recommended connector library for BigQuery is

##### Install BigQuery Driver

Follow the steps [here](/docs/configuration/databases#docker-add-drivers) about how to
Follow the steps [here](/docs/configuration/databases#installing-drivers-in-docker-images) about how to
install new database drivers when setting up Superset locally via docker compose.

```
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/contributing/contributing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Look through the GitHub issues. Issues tagged with
Superset could always use better documentation,
whether as part of the official Superset docs,
in docstrings, `docs/*.rst` or even on the web as blog posts or
articles. See [Documentation](#documentation) for more details.
articles. See [Documentation](/docs/contributing/howtos#contributing-to-documentation) for more details.

### Add Translations

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/contributing/guidelines.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Finally, never submit a PR that will put master branch in broken state. If the P
in `requirements.txt` pinned to a specific version which ensures that the application
build is deterministic.
- For TypeScript/JavaScript, include new libraries in `package.json`
- **Tests:** The pull request should include tests, either as doctests, unit tests, or both. Make sure to resolve all errors and test failures. See [Testing](#testing) for how to run tests.
- **Tests:** The pull request should include tests, either as doctests, unit tests, or both. Make sure to resolve all errors and test failures. See [Testing](/docs/contributing/howtos#testing) for how to run tests.
- **Documentation:** If the pull request adds functionality, the docs should be updated as part of the same PR.
- **CI:** Reviewers will not review the code until all CI tests are passed. Sometimes there can be flaky tests. You can close and open PR to re-run CI test. Please report if the issue persists. After the CI fix has been deployed to `master`, please rebase your PR.
- **Code coverage:** Please ensure that code coverage does not decrease.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/using-superset/issue-codes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ The database might be under heavy load, running too many queries. Please try aga
One or more parameters specified in the query are malformed.
```

The query contains one or more malformed template parameters. Please check your query and confirm that all template parameters are surround by double braces, for example, "{{ ds }}". Then, try running your query again.
The query contains one or more malformed template parameters. Please check your query and confirm that all template parameters are surround by double braces, for example, "\{\{ ds \}\}". Then, try running your query again.

## Issue 1029

Expand Down

0 comments on commit 8d8cba9

Please sign in to comment.