From 31c673db8fc9055b45689296036cb0ddfdf61feb Mon Sep 17 00:00:00 2001 From: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com> Date: Mon, 2 Oct 2023 15:22:19 +0200 Subject: [PATCH] Add some SEO and QA --- openbb_platform/CONTRIBUTING.md | 8 ++++++++ .../contributing/extension-development/custom_data.md | 2 +- .../contributing/extension-development/index.md | 2 +- .../platform/contributing/extension-development/qa.md | 10 +++++++++- .../extension-development/share_extension.md | 3 ++- website/content/platform/contributing/index.md | 2 +- .../contributing/introduction/data_standardization.md | 2 +- .../platform/contributing/introduction/extensions.md | 2 +- .../platform-development/add_data_point.md | 2 +- .../contributing/platform-development/create_pr.md | 2 +- .../platform-development/environments_dependencies.md | 2 +- .../contributing/platform-development/index.md | 2 +- .../platform-development/manage_extensions.md | 3 ++- 13 files changed, 30 insertions(+), 12 deletions(-) diff --git a/openbb_platform/CONTRIBUTING.md b/openbb_platform/CONTRIBUTING.md index 71048235933..697fdda24d4 100644 --- a/openbb_platform/CONTRIBUTING.md +++ b/openbb_platform/CONTRIBUTING.md @@ -280,6 +280,14 @@ uvicorn openbb_platform.platform.core.openbb_core.api.rest_api:app --host 0.0.0. These automated tests are a great way to reduce the amount of code you need to write, but they are not a replacement for manual testing and might require tweaking. That's why we have unit tests that test the generated integration tests to ensure they cover all providers and parameters. +To run the tests we can do: + +```bash +pytest openbb_platform -m "not integration" --> only unit tests +pytest openbb_platform -m "integration" --> only integration tests +pytest openbb_platform --> everything +``` + ### Import time We aim to have a short import time for the package. To measure that we use `tuna`. diff --git a/website/content/platform/contributing/extension-development/custom_data.md b/website/content/platform/contributing/extension-development/custom_data.md index 835a667e274..2ba7d8e29f7 100644 --- a/website/content/platform/contributing/extension-development/custom_data.md +++ b/website/content/platform/contributing/extension-development/custom_data.md @@ -2,7 +2,7 @@ title: Add a custom data source sidebar_position: 2 description: How to add a custom data source to the OpenBB Platform -keywords: [openbb, platform, introduction] +keywords: [openbb, platform, extension, custom, data, source, contributing, documentation] --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; diff --git a/website/content/platform/contributing/extension-development/index.md b/website/content/platform/contributing/extension-development/index.md index ece37f57832..4ad8bd22a30 100644 --- a/website/content/platform/contributing/extension-development/index.md +++ b/website/content/platform/contributing/extension-development/index.md @@ -2,7 +2,7 @@ title: Extension Development sidebar_position: 1 description: Introduction to the Extensions inside OpenBB Platform -keywords: [openbb, platform, introduction] +keywords: [openbb, platform, introduction, extension, contributing, documentation] --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; diff --git a/website/content/platform/contributing/extension-development/qa.md b/website/content/platform/contributing/extension-development/qa.md index 9a73d1a15d4..048c5633cdf 100644 --- a/website/content/platform/contributing/extension-development/qa.md +++ b/website/content/platform/contributing/extension-development/qa.md @@ -2,7 +2,7 @@ title: Extension QA sidebar_position: 3 description: How to QA your extension -keywords: [openbb, platform, introduction] +keywords: [openbb, platform, introduction, qa, contributing, extension, documentation] --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; @@ -55,6 +55,14 @@ uvicorn openbb_platform.platform.core.openbb_core.api.rest_api:app --host 0.0.0. These automated tests are a great way to reduce the amount of code you need to write, but they are not a replacement for manual testing and might require tweaking. That's why we have unit tests that test the generated integration tests to ensure they cover all providers and parameters. +To run the tests we can do: + +```bash +pytest openbb_platform -m "not integration" --> only unit tests +pytest openbb_platform -m "integration" --> only integration tests +pytest openbb_platform --> everything +``` + ## Import time We aim to have a short import time for the package. To measure that we use `tuna`. diff --git a/website/content/platform/contributing/extension-development/share_extension.md b/website/content/platform/contributing/extension-development/share_extension.md index 0addd688e7a..02fe3504933 100644 --- a/website/content/platform/contributing/extension-development/share_extension.md +++ b/website/content/platform/contributing/extension-development/share_extension.md @@ -2,7 +2,8 @@ title: Share your extension sidebar_position: 4 description: How to share your extension with the community -keywords: [openbb, platform, introduction] +keywords: [openbb, platform, introduction, share, extension, contributing, + documentation, pypi] --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; diff --git a/website/content/platform/contributing/index.md b/website/content/platform/contributing/index.md index e74f0abe310..c0af02454ba 100644 --- a/website/content/platform/contributing/index.md +++ b/website/content/platform/contributing/index.md @@ -2,7 +2,7 @@ title: Introduction to the OpenBB Platform sidebar_position: 1 description: Introduction to the OpenBB Platform -keywords: [openbb, platform, introduction] +keywords: [openbb, platform, introduction, contributing, documentation] --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; diff --git a/website/content/platform/contributing/introduction/data_standardization.md b/website/content/platform/contributing/introduction/data_standardization.md index f20fb778d9b..b93dd887363 100644 --- a/website/content/platform/contributing/introduction/data_standardization.md +++ b/website/content/platform/contributing/introduction/data_standardization.md @@ -2,7 +2,7 @@ title: Data Standardization sidebar_position: 1 description: What is data standardization and how does it work inside the OpenBB Platform -keywords: [openbb, platform, introduction] +keywords: [openbb, platform, introduction, data, standardization, contributing, documentation] --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; diff --git a/website/content/platform/contributing/introduction/extensions.md b/website/content/platform/contributing/introduction/extensions.md index 30f32fc815d..bb992fc10bc 100644 --- a/website/content/platform/contributing/introduction/extensions.md +++ b/website/content/platform/contributing/introduction/extensions.md @@ -2,7 +2,7 @@ title: Extensions in the OpenBB Platform sidebar_position: 2 description: Introduction to the Extensions inside OpenBB Platform -keywords: [openbb, platform, introduction] +keywords: [openbb, platform, introduction, extension, contributing, documentation] --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; diff --git a/website/content/platform/contributing/platform-development/add_data_point.md b/website/content/platform/contributing/platform-development/add_data_point.md index 59360d62ffe..19d8553bb1a 100644 --- a/website/content/platform/contributing/platform-development/add_data_point.md +++ b/website/content/platform/contributing/platform-development/add_data_point.md @@ -2,7 +2,7 @@ title: Add a new data point sidebar_position: 3 description: How to add a new data point to the OpenBB Platform -keywords: [openbb, platform, introduction] +keywords: [openbb, platform, introduction, data, contributing, documentation] --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; diff --git a/website/content/platform/contributing/platform-development/create_pr.md b/website/content/platform/contributing/platform-development/create_pr.md index 8ed46f6bf23..6b139339807 100644 --- a/website/content/platform/contributing/platform-development/create_pr.md +++ b/website/content/platform/contributing/platform-development/create_pr.md @@ -2,7 +2,7 @@ title: Create a Pull Request sidebar_position: 5 description: How to create a Pull Request -keywords: [openbb, platform, introduction] +keywords: [openbb, platform, introduction, pull request, contributing, documentation] --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; diff --git a/website/content/platform/contributing/platform-development/environments_dependencies.md b/website/content/platform/contributing/platform-development/environments_dependencies.md index eada1a1740f..197fd4f659c 100644 --- a/website/content/platform/contributing/platform-development/environments_dependencies.md +++ b/website/content/platform/contributing/platform-development/environments_dependencies.md @@ -2,7 +2,7 @@ title: Setup your development environment sidebar_position: 2 description: How to setup your development environment -keywords: [openbb, platform, introduction] +keywords: [openbb, platform, introduction, environment, setup, contributing, documentation] --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; diff --git a/website/content/platform/contributing/platform-development/index.md b/website/content/platform/contributing/platform-development/index.md index 074157d1daa..7ae5d4a4ef9 100644 --- a/website/content/platform/contributing/platform-development/index.md +++ b/website/content/platform/contributing/platform-development/index.md @@ -2,7 +2,7 @@ title: OpenBB Platform Development sidebar_position: 1 description: Introduction to the OpenBB Platform -keywords: [openbb, platform, introduction] +keywords: [openbb, platform, introduction, development, contributing, documentation] --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; diff --git a/website/content/platform/contributing/platform-development/manage_extensions.md b/website/content/platform/contributing/platform-development/manage_extensions.md index d70cfb3326e..3f83666a3a9 100644 --- a/website/content/platform/contributing/platform-development/manage_extensions.md +++ b/website/content/platform/contributing/platform-development/manage_extensions.md @@ -2,7 +2,8 @@ title: Manage Extensions sidebar_position: 4 description: How to manage extensions in the OpenBB Platform -keywords: [openbb, platform, introduction] +keywords: [openbb, platform, introduction, manage, extension, contributing, + documentation, pypi] --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx';