Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

refactor: move www.bytebase.com/docs to docs.bytebase.com (#16490)

Tianzhoua16999891da6
diff --git a/LICENSE.enterprise b/LICENSE.enterprise
index 964f483b60..6d87d28bb5 100644
--- a/LICENSE.enterprise
+++ b/LICENSE.enterprise
@@ -15,7 +15,7 @@ With regard to the Bytebase Software:
This software and associated documentation files (the "Software") may only be
used in production, if you (and any entity that you represent) have agreed to,
and are in compliance with, the Bytebase Terms of Service, available
-at https://bytebase.com/terms (the “Enterprise Terms”), or other
+at https://www.bytebase.com/terms (the “Enterprise Terms”), or other
agreement governing the use of the Software, as agreed by you and Bytebase,
and otherwise have a valid Bytebase Enterprise subscription for the
correct number of instance and paid plan. Subject to the foregoing sentence, you
diff --git a/README.md b/README.md
index ec8e6f2b2b..1cf6f50b7e 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
<h1 align="center">
<a
target="_blank"
- href="https://bytebase.com?source=github"
+ href="https://www.bytebase.com?source=github"
>
<img
align="center"
@@ -13,8 +13,8 @@
</h1>
<p align="center">
- <a href="https://bytebase.com/docs/get-started/self-host" target="_blank"><b>⚙️ Install</b></a> •
- <a href="https://bytebase.com/docs/introduction/what-is-bytebase"><b>📚 Docs</b></a> •
+ <a href="https://docs.bytebase.com/get-started/self-host" target="_blank"><b>⚙️ Install</b></a> •
+ <a href="https://docs.bytebase.com/introduction/what-is-bytebase"><b>📚 Docs</b></a> •
<a href="https://discord.gg/huyw7gRsyA"><b>💬 Discord</b></a> •
<a href="https://www.bytebase.com/request-demo/"><b>🙋‍♀️ Book Demo</b></a>
</p>
@@ -76,9 +76,9 @@
Want to formalize the database change process but don't know how?
</p>
-| | |
-| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
-| <b>Standard Operating Procedure (SOP) </b><br />Standardize the database schema and data change process across different database systems, small or [large tables](https://www.bytebase.com/docs/change-database/online-schema-migration-for-mysql) and [different tenants](https://www.bytebase.com/docs/change-database/batch-change/#change-databases-from-multiple-tenants).<br /><br/><b>SQL Review</b><br />[100+ lint rules](https://www.bytebase.com/docs/sql-review/review-rules) to detect SQL anti-patterns and enforce consistent SQL style in the organization.<br /><br /><b>GitOps</b><br />[Point-and-click GitHub and GitLab integration](https://www.bytebase.com/docs/vcs-integration/overview) to enable GitOps workflow for changing database. | <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/issue-detail.webp" /> |
+| | |
+| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
+| <b>Standard Operating Procedure (SOP) </b><br />Standardize the database schema and data change process across different database systems, small or [large tables](https://docs.bytebase.com/change-database/online-schema-migration-for-mysql) and [different tenants](https://docs.bytebase.com/change-database/batch-change/#change-databases-from-multiple-tenants).<br /><br/><b>SQL Review</b><br />[100+ lint rules](https://docs.bytebase.com/sql-review/review-rules) to detect SQL anti-patterns and enforce consistent SQL style in the organization.<br /><br /><b>GitOps</b><br />[Point-and-click GitHub and GitLab integration](https://docs.bytebase.com/vcs-integration/overview) to enable GitOps workflow for changing database. | <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/issue-detail.webp" /> |
<br />
@@ -88,9 +88,9 @@
Want to control the data access but don't know how?
</p>
-| | |
-| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
-| <b>All-in-one SQL Editor</b><br />Web-based IDE specifically for performing SQL specific tasks.<br /><br/><b>Data Masking</b><br />State-of-the-art [column level masking](https://www.bytebase.com/docs/sql-editor/mask-data) engine to cover complex situations like subquery, CTE.<br /><br /><b>Data Access Control</b><br />Organization level policy to centralize the [database permission](https://www.bytebase.com/docs/security/database-permission/overview). | <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/sql-editor.webp" /> |
+| | |
+| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
+| <b>All-in-one SQL Editor</b><br />Web-based IDE specifically for performing SQL specific tasks.<br /><br/><b>Data Masking</b><br />State-of-the-art [column level masking](https://docs.bytebase.com/sql-editor/mask-data) engine to cover complex situations like subquery, CTE.<br /><br /><b>Data Access Control</b><br />Organization level policy to centralize the [database permission](https://docs.bytebase.com/security/database-permission/overview). | <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/sql-editor.webp" /> |
<br />
@@ -100,9 +100,9 @@
Want to avoid data leakage, change outage and detect malicious behavior but don't know how?
</p>
-| | |
-| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
-| <b>Centralize Change, Query and Admin Tasks</b><br />A single place to perform different tasks on different databases, thus enforce policy and monitor activity accordingly. <br /><br /><b>RBAC</b><br />[Two-level RBAC model](https://www.bytebase.com/docs/concepts/roles-and-permissions) mapping to the organization wide privileges and application team privileges respectively.<br /><br /><b>Drift detection and Audit Logging</b><br /> Capture all database schema drifts, user actions and system events and present them in a holistic view. | <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/grant-access.webp" /> |
+| | |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------- |
+| <b>Centralize Change, Query and Admin Tasks</b><br />A single place to perform different tasks on different databases, thus enforce policy and monitor activity accordingly. <br /><br /><b>RBAC</b><br />[Two-level RBAC model](https://docs.bytebase.com/concepts/roles-and-permissions) mapping to the organization wide privileges and application team privileges respectively.<br /><br /><b>Drift detection and Audit Logging</b><br /> Capture all database schema drifts, user actions and system events and present them in a holistic view. | <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/grant-access.webp" /> |
<br />
@@ -112,9 +112,9 @@
Want to enforce organization policy but don't know how?
</p>
-| | |
-| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
-| <b>Manage Database Resources</b><br /> A single place to manage environments, database instances, database users for application development, with optional [Terraform integration](https://registry.terraform.io/providers/bytebase/bytebase/latest/docs). <br /><br /><b>Policy Enforcement</b><br />Enforce organization wide SQL Review policy, backup policy and data access policy.<br /><br/><b>SQL Editor Admin mode</b><br />[CLI like experience](https://www.bytebase.com/docs/sql-editor/admin-mode) without setting up bastion. | <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/sql-review-policy.webp" /> |
+| | |
+| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
+| <b>Manage Database Resources</b><br /> A single place to manage environments, database instances, database users for application development, with optional [Terraform integration](https://registry.terraform.io/providers/bytebase/bytebase/latest/docs). <br /><br /><b>Policy Enforcement</b><br />Enforce organization wide SQL Review policy, backup policy and data access policy.<br /><br/><b>SQL Editor Admin mode</b><br />[CLI like experience](https://docs.bytebase.com/sql-editor/admin-mode) without setting up bastion. | <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/sql-review-policy.webp" /> |
<br />
@@ -124,8 +124,8 @@
Bytebase is a Database CI/CD solution for the Developers and DBAs. It's the **only database CI/CD project** included by the [CNCF Landscape](https://landscape.cncf.io/?selected=bytebase) and [Platform Engineering](https://platformengineering.org/tools/bytebase). The Bytebase family consists of these tools:
-- [Bytebase Console](https://bytebase.com/?source=github): A web-based GUI for developers and DBAs to manage the database development lifecycle.
-- [Bytebase API](https://www.bytebase.com/docs/api/overview): Provide both gRPC and RESTful API to manipulate every aspect of Bytebase.
+- [Bytebase Console](https://www.bytebase.com/?source=github): A web-based GUI for developers and DBAs to manage the database development lifecycle.
+- [Bytebase API](https://docs.bytebase.com/api/overview): Provide both gRPC and RESTful API to manipulate every aspect of Bytebase.
- [SQL Review GitHub Action](https://github.com/bytebase/sql-review-action): The GitHub Action to detect SQL anti-patterns and enforce a consistent SQL style guide during Pull Request.
- [Terraform Bytebase Provider](https://registry.terraform.io/providers/bytebase/bytebase/latest/docs): The Terraform
provider enables team to manage Bytebase resources via Terraform. A typical setup involves teams using
@@ -147,9 +147,9 @@ Bytebase is a Database CI/CD solution for the Developers and DBAs. It's the **on
# 🔧 Installation
-- [Docker](https://www.bytebase.com/docs/get-started/self-host/)
-- [Kubernetes](https://www.bytebase.com/docs/get-started/install/deploy-to-kubernetes)
-- [Build from source](https://www.bytebase.com/docs/get-started/install/build-from-source-code)
+- [Docker](https://docs.bytebase.com/get-started/self-host/)
+- [Kubernetes](https://docs.bytebase.com/get-started/install/deploy-to-kubernetes)
+- [Build from source](https://docs.bytebase.com/get-started/install/build-from-source-code)
<br />
@@ -164,31 +164,31 @@ our product experts.
# 👩‍🏫 Tutorials
-Product tutorials are available at https://www.bytebase.com/tutorial.
+Product tutorials are available at https://docs.bytebase.com/tutorials.
## Integrations
-- [Manage Supabase PostgreSQL](https://www.bytebase.com/docs/how-to/integrations/supabase)
-- [Manage render PostgreSQL](https://www.bytebase.com/docs/how-to/integrations/render)
-- [Manage Neon database](https://www.bytebase.com/docs/how-to/integrations/neon)
-- [Deploy to sealos](https://www.bytebase.com/docs/get-started/install/deploy-to-sealos)
-- [Deploy to Rainbond](https://www.bytebase.com/docs/get-started/install/deploy-to-rainbond)
+- [Manage Supabase PostgreSQL](https://docs.bytebase.com/integrations/supabase)
+- [Manage render PostgreSQL](https://docs.bytebase.com/integrations/render)
+- [Manage Neon database](https://docs.bytebase.com/integrations/neon)
+- [Deploy to sealos](https://docs.bytebase.com/get-started/install/deploy-to-sealos)
+- [Deploy to Rainbond](https://docs.bytebase.com/get-started/install/deploy-to-rainbond)
<br />
# 💎 Design Principles
-| | | |
-| --- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| 🪶 | Dependency Free | Start with a single command `./bytebase` without any external dependency. External PostgreSQL data store and others are optional. |
-| 🔗 | Integration First | Solely focus on database management and leave the rest to others. We have native VCS integration with [GitHub/GitLab](https://www.bytebase.com/docs/vcs-integration/overview), [Terraform Provider](https://registry.terraform.io/providers/bytebase/bytebase/latest/docs), [webhook](https://www.bytebase.com/docs/change-database/webhook), and etc. |
-| 💂‍♀️ | Engineering Disciplined | Disciplined [bi-weekly release](https://www.bytebase.com/changelog) and [engineering practice](https://github.com/bytebase/bytebase/blob/main/docs/life-of-a-feature.md). |
+| | | |
+| --- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| 🪶 | Dependency Free | Start with a single command `./bytebase` without any external dependency. External PostgreSQL data store and others are optional. |
+| 🔗 | Integration First | Solely focus on database management and leave the rest to others. We have native VCS integration with [GitHub/GitLab](https://docs.bytebase.com/vcs-integration/overview), [Terraform Provider](https://registry.terraform.io/providers/bytebase/bytebase/latest/docs), [webhook](https://docs.bytebase.com/change-database/webhook), and etc. |
+| 💂‍♀️ | Engineering Disciplined | Disciplined [bi-weekly release](https://docs.bytebase.com/changelog) and [engineering practice](https://github.com/bytebase/bytebase/blob/main/docs/life-of-a-feature.md). |
<br />
# 🧩 Data Model
-More details in [Data Model Doc](https://www.bytebase.com/docs/concepts/data-model).
+More details in [Data Model Doc](https://docs.bytebase.com/concepts/data-model).
<p align="center">
<img
@@ -203,7 +203,7 @@ More details in [Data Model Doc](https://www.bytebase.com/docs/concepts/data-mod
# 🎭 Roles
-More details in [Roles and Permissions Doc](https://www.bytebase.com/docs/concepts/roles-and-permissions).
+More details in [Roles and Permissions Doc](https://docs.bytebase.com/concepts/roles-and-permissions).
Bytebase employs RBAC (role based access control) and provides two role sets at the workspace and project level:
@@ -316,7 +316,7 @@ Bytebase has the similar `Project` concept seen in GitLab/GitHub and provides na
with GitLab/GitHub.
Another key difference is Yearning, Archery are open source projects maintained by the individuals part-time. While Bytebase is open-sourced, it adopts an open-core model and is a commercialized product, supported
-by a [fully staffed team](https://www.bytebase.com/about#team) [releasing new version every 2 weeks](https://www.bytebase.com/changelog).
+by a [fully staffed team](https://www.bytebase.com/about#team) [releasing new version every 2 weeks](https://docs.bytebase.com/changelog).
[![Star History Chart](https://api.star-history.com/svg?repos=bytebase/bytebase,cookieY/Yearning,hhyo/Archery&type=Date)](https://star-history.com/#bytebase/bytebase&cookieY/Yearning&hhyo/Archery&Date)
@@ -361,11 +361,11 @@ Jira is a general-purpose issue ticketing system. Bytebase is a database domain-
# 🤔 Frequently Asked Questions (FAQs)
-Check out our [FAQ](https://www.bytebase.com/docs/faq).
+Check out our [FAQ](https://docs.bytebase.com/faq).
<br />
# 🙋 Contact Us
-- Interested in joining us? Check out our [jobs page](https://bytebase.com/jobs?source=github) for openings.
+- Interested in joining us? Check out our [jobs page](https://www.bytebase.com/jobs?source=github) for openings.
- Want to solve your schema change and database management headache? Book a [30min demo](https://cal.com/bytebase/product-walkthrough) with one of our product experts.
diff --git a/action/github/github.go b/action/github/github.go
index 321e002b40..c90f0c0297 100644
--- a/action/github/github.go
+++ b/action/github/github.go
@@ -174,7 +174,7 @@ func buildCommentMessage(resp *v1pb.CheckReleaseResponse) string {
func writeAnnotations(resp *v1pb.CheckReleaseResponse) error {
// annotation template
- // `::${advice.status} file=${file},line=${advice.line},col=${advice.column},title=${advice.title} (${advice.code})::${advice.content}. Targets: ${targets.join(', ')} https://www.bytebase.com/docs/reference/error-code/advisor#${advice.code}`
+ // `::${advice.status} file=${file},line=${advice.line},col=${advice.column},title=${advice.title} (${advice.code})::${advice.content}. Targets: ${targets.join(', ')} https://docs.bytebase.com/reference/error-code/advisor#${advice.code}`
for _, result := range resp.Results {
for _, advice := range result.Advices {
var sb strings.Builder
@@ -201,7 +201,7 @@ func writeAnnotations(resp *v1pb.CheckReleaseResponse) error {
_, _ = sb.WriteString(". Targets: ")
_, _ = sb.WriteString(result.Target)
_, _ = sb.WriteString(" ")
- _, _ = sb.WriteString(" https://www.bytebase.com/docs/reference/error-code/advisor#")
+ _, _ = sb.WriteString(" https://docs.bytebase.com/reference/error-code/advisor#")
_, _ = sb.WriteString(strconv.Itoa(int(advice.Code)))
fmt.Println(sb.String())
}
diff --git a/backend/api/v1/common.go b/backend/api/v1/common.go
index cf3045f9c2..5ca9f3e1e0 100644
--- a/backend/api/v1/common.go
+++ b/backend/api/v1/common.go
@@ -21,7 +21,7 @@ import (
type OperatorType string
const (
- setupExternalURLError = "external URL isn't setup yet, see https://www.bytebase.com/docs/get-started/install/external-url"
+ setupExternalURLError = "external URL isn't setup yet, see https://docs.bytebase.com/get-started/install/external-url"
ComparatorTypeEqual OperatorType = "="
ComparatorTypeLess OperatorType = "<"
diff --git a/backend/common/util.go b/backend/common/util.go
index bba13101f3..431ebbc250 100644
--- a/backend/common/util.go
+++ b/backend/common/util.go
@@ -32,7 +32,7 @@ const (
MinimumCompletedPlanCheckRun = 5
// ExternalURLPlaceholder is the docs link to configure --external-url.
- ExternalURLPlaceholder = "https://www.bytebase.com/docs/get-started/install/external-url"
+ ExternalURLPlaceholder = "https://docs.bytebase.com/get-started/install/external-url"
)
var letters = []rune("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
diff --git a/docs/index.yaml b/docs/index.yaml
index db96c6a0bd..34081f1df2 100644
--- a/docs/index.yaml
+++ b/docs/index.yaml
@@ -1,20 +1,20 @@
apiVersion: v1
entries:
bytebase:
- - apiVersion: v2
- created: "2025-02-12T23:13:26.004054-08:00"
- description: Safe database schema change and version control for DevOps teams.
- digest: d8eb0bec5131bf3595a907137dd8a0b63df1d0a0f8c16d039487e5092a6e1d16
- home: https://bytebase.com/
- icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/public/images/logo.svg
- maintainers:
- name: Bytebase
- name: bytebase
- sources:
- - https://github.com/bytebase/bytebase
- type: application
- urls:
- - bytebase-1.1.1.tgz
- version: 1.1.1
+ - apiVersion: v2
+ created: "2025-02-12T23:13:26.004054-08:00"
+ description: Safe database schema change and version control for DevOps teams.
+ digest: d8eb0bec5131bf3595a907137dd8a0b63df1d0a0f8c16d039487e5092a6e1d16
+ home: https://www.bytebase.com/
+ icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/public/images/logo.svg
+ maintainers:
+ name: Bytebase
+ name: bytebase
+ sources:
+ - https://github.com/bytebase/bytebase
+ type: application
+ urls:
+ - bytebase-1.1.1.tgz
+ version: 1.1.1
generated: "2025-02-12T23:13:26.003636-08:00"
diff --git a/frontend/public/help/en/help.database.md b/frontend/public/help/en/help.database.md
index 9c543aa955..00c475f132 100644
--- a/frontend/public/help/en/help.database.md
+++ b/frontend/public/help/en/help.database.md
@@ -8,4 +8,4 @@ title: What is 'Database' ?
#### Learn more
-- [Create a Project](https://www.bytebase.com/docs/get-started/step-by-step/create-a-project)
+- [Create a Project](https://docs.bytebase.com/get-started/step-by-step/create-a-project)
diff --git a/frontend/public/help/en/help.environment.md b/frontend/public/help/en/help.environment.md
index db77f081dc..0fa289de42 100644
--- a/frontend/public/help/en/help.environment.md
+++ b/frontend/public/help/en/help.environment.md
@@ -10,4 +10,4 @@ title: What is 'Environment' ?
#### Learn more
-- [Set up Environments](https://www.bytebase.com/docs/get-started/step-by-step/set-up-environments)
\ No newline at end of file
+- [Set up Environments](https://docs.bytebase.com/get-started/step-by-step/set-up-environments)
diff --git a/frontend/public/help/en/help.instance.md b/frontend/public/help/en/help.instance.md
index 567754721e..8f23259669 100644
--- a/frontend/public/help/en/help.instance.md
+++ b/frontend/public/help/en/help.instance.md
@@ -8,4 +8,4 @@ title: What is 'Instance' ?
#### Learn more
-- [Add an Instance](https://www.bytebase.com/docs/get-started/step-by-step/add-an-instance)
\ No newline at end of file
+- [Add an Instance](https://docs.bytebase.com/get-started/step-by-step/add-an-instance)
diff --git a/frontend/public/help/en/help.issue.detail.md b/frontend/public/help/en/help.issue.detail.md
index e520afed8d..4cf464cfd0 100644
--- a/frontend/public/help/en/help.issue.detail.md
+++ b/frontend/public/help/en/help.issue.detail.md
@@ -6,5 +6,5 @@ title: What is 'Issue' ?
#### Learn more
-- [Your first database change](https://www.bytebase.com/docs/get-started/step-by-step/change-schema)
-- [Batch change](https://www.bytebase.com/docs/change-database/batch-change/)
+- [Your first database change](https://docs.bytebase.com/get-started/step-by-step/change-schema)
+- [Batch change](https://docs.bytebase.com/change-database/batch-change/)
diff --git a/frontend/public/help/en/help.member.md b/frontend/public/help/en/help.member.md
index 0f56ebc3d2..31508f30a9 100644
--- a/frontend/public/help/en/help.member.md
+++ b/frontend/public/help/en/help.member.md
@@ -7,4 +7,4 @@ title: What is 'Workspace Member' ?
#### Learn more
- [Manage Workspace Members](https://bytebase.cc/docs/get-started/step-by-step/register-accounts/#manage-members-eg-update-password)
-- [Roles and Permissions (RBAC)](https://www.bytebase.com/docs/concepts/roles-and-permissions)
+- [Roles and Permissions (RBAC)](https://docs.bytebase.com/concepts/roles-and-permissions)
diff --git a/frontend/public/help/en/help.project.md b/frontend/public/help/en/help.project.md
index 61b68bc900..8c02c0e18c 100644
--- a/frontend/public/help/en/help.project.md
+++ b/frontend/public/help/en/help.project.md
@@ -8,5 +8,5 @@ title: What is 'project' ?
#### Learn more
-- [Create a Project](https://www.bytebase.com/docs/get-started/step-by-step/create-a-project)
-- [UI Workflow](https://www.bytebase.com/docs/change-database/change-workflow)
+- [Create a Project](https://docs.bytebase.com/get-started/step-by-step/create-a-project)
+- [UI Workflow](https://docs.bytebase.com/change-database/change-workflow)
diff --git a/frontend/public/help/ja/help.database.md b/frontend/public/help/ja/help.database.md
index 90f8e4c803..bb61a85fb9 100644
--- a/frontend/public/help/ja/help.database.md
+++ b/frontend/public/help/ja/help.database.md
@@ -8,4 +8,4 @@ title: 「データベース」とは何ですか?
#### さらに詳しく
-- [プロジェクトの作成](https://www.bytebase.com/docs/get-started/step-by-step/create-a-project)
+- [プロジェクトの作成](https://docs.bytebase.com/get-started/step-by-step/create-a-project)
diff --git a/frontend/public/help/ja/help.environment.md b/frontend/public/help/ja/help.environment.md
index b35a7caf6c..3102ab647a 100644
--- a/frontend/public/help/ja/help.environment.md
+++ b/frontend/public/help/ja/help.environment.md
@@ -10,4 +10,4 @@ title: 「環境」とは何か?
#### Learn more
-- [環境の設定](https://www.bytebase.com/docs/get-started/step-by-step/set-up-environments)
+- [環境の設定](https://docs.bytebase.com/get-started/step-by-step/set-up-environments)
diff --git a/frontend/public/help/ja/help.instance.md b/frontend/public/help/ja/help.instance.md
index d1e4c8421e..ba4cd3a28b 100644
--- a/frontend/public/help/ja/help.instance.md
+++ b/frontend/public/help/ja/help.instance.md
@@ -8,4 +8,4 @@ title: 「インスタンス」とは?
#### Learn more
-- [インスタンスの追加](https://www.bytebase.com/docs/get-started/step-by-step/add-an-instance)
+- [インスタンスの追加](https://docs.bytebase.com/get-started/step-by-step/add-an-instance)
diff --git a/frontend/public/help/ja/help.issue.detail.md b/frontend/public/help/ja/help.issue.detail.md
index 95a8b98f5f..ebe3817e06 100644
--- a/frontend/public/help/ja/help.issue.detail.md
+++ b/frontend/public/help/ja/help.issue.detail.md
@@ -6,5 +6,5 @@ title: イシュー」とは何か?
#### Learn more
-- [初めてのデータベース変更](https://www.bytebase.com/docs/get-started/step-by-step/change-schema)
-- [一括変更](https://www.bytebase.com/docs/change-database/batch-change/)
+- [初めてのデータベース変更](https://docs.bytebase.com/get-started/step-by-step/change-schema)
+- [一括変更](https://docs.bytebase.com/change-database/batch-change/)
diff --git a/frontend/public/help/ja/help.member.md b/frontend/public/help/ja/help.member.md
index 5575a6c509..07d2f42f2b 100644
--- a/frontend/public/help/ja/help.member.md
+++ b/frontend/public/help/ja/help.member.md
@@ -7,4 +7,4 @@ title: ワークスペース・メンバー」とは?
#### Learn more
- [ワークスペース・メンバーの管理](https://bytebase.cc/docs/get-started/step-by-step/register-accounts/#manage-members-eg-update-password)
-- [役割と権限(RBAC)](https://www.bytebase.com/docs/concepts/roles-and-permissions)
+- [役割と権限(RBAC)](https://docs.bytebase.com/concepts/roles-and-permissions)
diff --git a/frontend/public/help/ja/help.project.md b/frontend/public/help/ja/help.project.md
index e824aa07f6..943c50c37c 100644
--- a/frontend/public/help/ja/help.project.md
+++ b/frontend/public/help/ja/help.project.md
@@ -8,5 +8,5 @@ title: 「プロジェクト」とは何か?
#### さらに詳しく
-- [プロジェクトの作成](https://www.bytebase.com/docs/get-started/step-by-step/create-a-project)
-- [UI ワークフロー](https://www.bytebase.com/docs/change-database/change-workflow)
+- [プロジェクトの作成](https://docs.bytebase.com/get-started/step-by-step/create-a-project)
+- [UI ワークフロー](https://docs.bytebase.com/change-database/change-workflow)
diff --git a/frontend/public/help/zh/help.database.md b/frontend/public/help/zh/help.database.md
index 0bc3b4cf99..d4ac738729 100644
--- a/frontend/public/help/zh/help.database.md
+++ b/frontend/public/help/zh/help.database.md
@@ -10,4 +10,4 @@ title: 什么是「数据库」?
#### 了解更多
-- [建立一个项目](https://www.bytebase.com/docs/get-started/step-by-step/create-a-project)
+- [建立一个项目](https://docs.bytebase.com/get-started/step-by-step/create-a-project)
diff --git a/frontend/public/help/zh/help.environment.md b/frontend/public/help/zh/help.environment.md
index e08fb27d0f..20ae33867c 100644
--- a/frontend/public/help/zh/help.environment.md
+++ b/frontend/public/help/zh/help.environment.md
@@ -10,4 +10,4 @@ title: 什么是「环境」?
#### 了解更多
-- [配置一个环境](https://www.bytebase.com/docs/get-started/step-by-step/set-up-environments)
\ No newline at end of file
+- [配置一个环境](https://docs.bytebase.com/get-started/step-by-step/set-up-environments)
diff --git a/frontend/public/help/zh/help.instance.md b/frontend/public/help/zh/help.instance.md
index 4479c1a97f..bc8d40da06 100644
--- a/frontend/public/help/zh/help.instance.md
+++ b/frontend/public/help/zh/help.instance.md
@@ -3,10 +3,10 @@ title: 什么是「实例」?
---
- 每个 Bytebase 实例属于一个环境。一个实例通常映射到您的一个由 host:port 地址所代表的数据库实例。这可能是您在诸如 AWS 上的
-RDS 实例,也可能是您私有化部署的 MySQL 实例。
+ RDS 实例,也可能是您私有化部署的 MySQL 实例。
- Bytebase 要求实例的读写权限(而不是 super 权限)以代表用户执行数据库操作。
#### 了解更多
-- [添加实例](https://www.bytebase.com/docs/get-started/step-by-step/add-an-instance)
+- [添加实例](https://docs.bytebase.com/get-started/step-by-step/add-an-instance)
diff --git a/frontend/public/help/zh/help.issue.detail.md b/frontend/public/help/zh/help.issue.detail.md
index a2fff0d023..8e9363e56d 100644
--- a/frontend/public/help/zh/help.issue.detail.md
+++ b/frontend/public/help/zh/help.issue.detail.md
@@ -6,5 +6,5 @@ title: 什么是「工单」 ?
#### 了解更多
-- [您的一个数据库变更](https://www.bytebase.com/docs/get-started/step-by-step/change-schema)
-- [批量变更](https://www.bytebase.com/docs/change-database/batch-change/)
+- [您的一个数据库变更](https://docs.bytebase.com/get-started/step-by-step/change-schema)
+- [批量变更](https://docs.bytebase.com/change-database/batch-change/)
diff --git a/frontend/public/help/zh/help.member.md b/frontend/public/help/zh/help.member.md
index 5e7217d253..6295fc5134 100644
--- a/frontend/public/help/zh/help.member.md
+++ b/frontend/public/help/zh/help.member.md
@@ -7,4 +7,4 @@ title: 什么是「空间成员」 ?
#### Learn more
- [管理成员](https://bytebase.cc/docs/get-started/step-by-step/register-accounts/#manage-members-eg-update-password)
-- [角色和权限 RBAC](https://www.bytebase.com/docs/concepts/roles-and-permissions)
+- [角色和权限 RBAC](https://docs.bytebase.com/concepts/roles-and-permissions)
diff --git a/frontend/public/help/zh/help.project.md b/frontend/public/help/zh/help.project.md
index 5fe0ec568c..1631c53d7d 100644
--- a/frontend/public/help/zh/help.project.md
+++ b/frontend/public/help/zh/help.project.md
@@ -8,5 +8,5 @@ title: 什么是「项目」 ?
#### 了解更多
-- [建立一个项目](https://www.bytebase.com/docs/get-started/step-by-step/create-a-project)
-- [UI 工作流](https://www.bytebase.com/docs/change-database/change-workflow)
+- [建立一个项目](https://docs.bytebase.com/get-started/step-by-step/create-a-project)
+- [UI 工作流](https://docs.bytebase.com/change-database/change-workflow)
diff --git a/frontend/src/components/CustomApproval/Settings/components/RiskCenter/RiskDialog/RiskForm.vue b/frontend/src/components/CustomApproval/Settings/components/RiskCenter/RiskDialog/RiskForm.vue
index 8b4660b768..208b789c3e 100644
--- a/frontend/src/components/CustomApproval/Settings/components/RiskCenter/RiskDialog/RiskForm.vue
+++ b/frontend/src/components/CustomApproval/Settings/components/RiskCenter/RiskDialog/RiskForm.vue
@@ -46,7 +46,7 @@
<div class="text-sm text-control-light">
{{ $t("cel.condition.description-tips") }}
<LearnMoreLink
- url="https://www.bytebase.com/docs/administration/risk-center/#configuration?source=console"
+ url="https://docs.bytebase.com/administration/risk-center/#configuration?source=console"
class="ml-1"
/>
</div>
diff --git a/frontend/src/components/DatabaseDetail/Settings/components/Secrets.vue b/frontend/src/components/DatabaseDetail/Settings/components/Secrets.vue
index 6b628ba4ca..8e354b3356 100644
--- a/frontend/src/components/DatabaseDetail/Settings/components/Secrets.vue
+++ b/frontend/src/components/DatabaseDetail/Settings/components/Secrets.vue
@@ -16,7 +16,7 @@
<i18n-t keypath="database.secret.description">
<template #guide>
<a
- href="https://www.bytebase.com/docs/change-database/secret?source=console"
+ href="https://docs.bytebase.com/change-database/secret?source=console"
target="_blank"
class="normal-link"
>
diff --git a/frontend/src/components/EnvironmentForm/Form.vue b/frontend/src/components/EnvironmentForm/Form.vue
index 696542d65c..779d31d658 100644
--- a/frontend/src/components/EnvironmentForm/Form.vue
+++ b/frontend/src/components/EnvironmentForm/Form.vue
@@ -44,7 +44,7 @@
</i18n-t>
<a
class="inline-flex items-center text-blue-600 ml-1 hover:underline"
- href="https://www.bytebase.com/docs/administration/environment-policy/overview/?source=console#environment-tier"
+ href="https://docs.bytebase.com/administration/environment-policy/overview/?source=console#environment-tier"
target="_blank"
>{{ $t("common.learn-more")
}}<heroicons-outline:external-link class="w-4 h-4"
@@ -84,7 +84,7 @@
{{ $t("policy.rollout.info", { permission: "bb.taskRuns.create" }) }}
<a
class="inline-flex items-center text-blue-600 ml-1 hover:underline"
- href="https://www.bytebase.com/docs/administration/environment-policy/rollout-policy"
+ href="https://docs.bytebase.com/administration/environment-policy/rollout-policy"
target="_blank"
>
{{ $t("common.learn-more") }}
diff --git a/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue b/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue
index 9c440dcb52..7fbcfaebac 100644
--- a/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue
+++ b/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue
@@ -31,7 +31,7 @@
<div class="mt-1 mb-3 text-sm text-gray-400">
{{ $t("settings.general.workspace.ai-assistant.description") }}
<LearnMoreLink
- url="https://www.bytebase.com/docs/ai-assistant?source=console"
+ url="https://docs.bytebase.com/ai-assistant?source=console"
class="ml-1 text-sm"
/>
</div>
@@ -152,6 +152,10 @@
</template>
<script lang="ts" setup>
+import { NSelect, NTooltip } from "naive-ui";
+import scrollIntoView from "scroll-into-view-if-needed";
+import { computed, onMounted, reactive, ref, watch, watchEffect } from "vue";
+import { useI18n } from "vue-i18n";
import { BBTextField } from "@/bbkit";
import LearnMoreLink from "@/components/LearnMoreLink.vue";
import { Switch } from "@/components/v2";
@@ -161,10 +165,6 @@ import {
AISetting_Provider,
Setting_SettingName,
} from "@/types/proto/v1/setting_service";
-import { NSelect, NTooltip } from "naive-ui";
-import scrollIntoView from "scroll-into-view-if-needed";
-import { computed, onMounted, reactive, ref, watch, watchEffect } from "vue";
-import { useI18n } from "vue-i18n";
interface LocalState {
enabled: boolean;
@@ -192,7 +192,8 @@ const state = reactive<LocalState>({
});
const aiSetting = computed(
- () => settingV1Store.getSettingByName(Setting_SettingName.AI)?.value?.aiSetting
+ () =>
+ settingV1Store.getSettingByName(Setting_SettingName.AI)?.value?.aiSetting
);
const getInitialState = (): LocalState => {
diff --git a/frontend/src/components/GeneralSetting/NetworkSetting.vue b/frontend/src/components/GeneralSetting/NetworkSetting.vue
index b9553f056d..2735ade924 100644
--- a/frontend/src/components/GeneralSetting/NetworkSetting.vue
+++ b/frontend/src/components/GeneralSetting/NetworkSetting.vue
@@ -18,7 +18,7 @@
<div class="mb-3 text-sm text-gray-400">
{{ $t("settings.general.workspace.external-url.description") }}
<LearnMoreLink
- url="https://www.bytebase.com/docs/get-started/install/external-url?source=console"
+ url="https://docs.bytebase.com/get-started/install/external-url?source=console"
/>
</div>
<NTooltip placement="top-start" :disabled="allowEdit">
@@ -83,9 +83,7 @@ const updateNetworkSetting = async () => {
payload: {
externalUrl: state.externalUrl,
},
- updateMask: [
- "value.workspace_profile_setting_value.external_url",
- ],
+ updateMask: ["value.workspace_profile_setting_value.external_url"],
});
state.externalUrl = settingV1Store.workspaceProfileSetting?.externalUrl ?? "";
diff --git a/frontend/src/components/InstanceAssignment.vue b/frontend/src/components/InstanceAssignment.vue
index 0f86edfc29..a5469de352 100644
--- a/frontend/src/components/InstanceAssignment.vue
+++ b/frontend/src/components/InstanceAssignment.vue
@@ -13,7 +13,7 @@
}}
</div>
<LearnMoreLink
- url="https://www.bytebase.com/docs/administration/license?source=console"
+ url="https://docs.bytebase.com/administration/license?source=console"
class="ml-1 text-sm"
/>
</div>
diff --git a/frontend/src/components/InstanceForm/BigQueryHostInput.vue b/frontend/src/components/InstanceForm/BigQueryHostInput.vue
index ca81ac8b77..b0f9d603b0 100644
--- a/frontend/src/components/InstanceForm/BigQueryHostInput.vue
+++ b/frontend/src/components/InstanceForm/BigQueryHostInput.vue
@@ -18,7 +18,7 @@
<p class="col-span-2 textinfolabel">
{{ $t("instance.find-gcp-project-id") }}
<a
- href="https://www.bytebase.com/docs/get-started/instance/#specify-google-cloud-project-id-and-spanner-instance-id?source=console"
+ href="https://docs.bytebase.com/get-started/instance/#specify-google-cloud-project-id-and-spanner-instance-id?source=console"
target="_blank"
class="normal-link inline-flex items-center"
>
diff --git a/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue b/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
index 2b11a17927..9528020b26 100644
--- a/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
+++ b/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
@@ -276,7 +276,9 @@
<NRadio :value="DataSourceExternalSecret_SecretType.VAULT_KV_V2">
<div class="flex items-center gap-x-1">
{{ $t("instance.password-type.external-secret-vault") }}
- <FeatureBadge :feature="PlanFeature.FEATURE_EXTERNAL_SECRET_MANAGER" />
+ <FeatureBadge
+ :feature="PlanFeature.FEATURE_EXTERNAL_SECRET_MANAGER"
+ />
</div>
</NRadio>
<NRadio
@@ -284,7 +286,9 @@
>
<div class="flex items-center gap-x-1">
{{ $t("instance.password-type.external-secret-aws") }}
- <FeatureBadge :feature="PlanFeature.FEATURE_EXTERNAL_SECRET_MANAGER" />
+ <FeatureBadge
+ :feature="PlanFeature.FEATURE_EXTERNAL_SECRET_MANAGER"
+ />
</div>
</NRadio>
<NRadio
@@ -292,12 +296,14 @@
>
<div class="flex items-center gap-x-1">
{{ $t("instance.password-type.external-secret-gcp") }}
- <FeatureBadge :feature="PlanFeature.FEATURE_EXTERNAL_SECRET_MANAGER" />
+ <FeatureBadge
+ :feature="PlanFeature.FEATURE_EXTERNAL_SECRET_MANAGER"
+ />
</div>
</NRadio>
</NRadioGroup>
<LearnMoreLink
- url="http://www.bytebase.com/docs/get-started/instance/#use-external-secret-manager"
+ url="http://docs.bytebase.com/get-started/instance/#use-external-secret-manager"
class="text-sm"
/>
</div>
@@ -315,10 +321,12 @@
{{ $t("instance.password-type.password-tip") }}
</div>
<LearnMoreLink
- url="https://www.bytebase.com/docs/get-started/instance/#use-secret-manager?source=console"
+ url="https://docs.bytebase.com/get-started/instance/#use-secret-manager?source=console"
class="ml-1 text-sm"
/>
- <FeatureBadge :feature="PlanFeature.FEATURE_EXTERNAL_SECRET_MANAGER" />
+ <FeatureBadge
+ :feature="PlanFeature.FEATURE_EXTERNAL_SECRET_MANAGER"
+ />
</div>
<div class="mt-2">
<NCheckbox
@@ -978,6 +986,19 @@ MIIEvQ...
</template>
<script setup lang="ts">
+import {
+ NButton,
+ NCheckbox,
+ NInput,
+ NRadio,
+ NRadioGroup,
+ NSwitch,
+ NUpload,
+ NUploadDragger,
+ type UploadFileInfo,
+} from "naive-ui";
+import { computed, reactive, watch } from "vue";
+import { useI18n } from "vue-i18n";
import { BBTextField } from "@/bbkit";
import { FeatureBadge } from "@/components/FeatureGuard";
import LearnMoreLink from "@/components/LearnMoreLink.vue";
@@ -1000,19 +1021,6 @@ import {
} from "@/types/proto/v1/instance_service";
import { PlanFeature } from "@/types/proto/v1/subscription_service";
import { onlyAllowNumber } from "@/utils";
-import {
- NButton,
- NCheckbox,
- NInput,
- NRadio,
- NRadioGroup,
- NSwitch,
- NUpload,
- NUploadDragger,
- type UploadFileInfo,
-} from "naive-ui";
-import { computed, reactive, watch } from "vue";
-import { useI18n } from "vue-i18n";
import type { EditDataSource } from "../common";
import { useInstanceFormContext } from "../context";
import CreateDataSourceExample from "./CreateDataSourceExample.vue";
@@ -1248,7 +1256,8 @@ const handleHostInput = (value: string) => {
if (ds.host || ds.port) {
ds.host = adminDataSource.value.host;
ds.port = adminDataSource.value.port;
- missingFeature.value = PlanFeature.FEATURE_INSTANCE_READ_ONLY_CONNECTION;
+ missingFeature.value =
+ PlanFeature.FEATURE_INSTANCE_READ_ONLY_CONNECTION;
return;
}
}
@@ -1263,7 +1272,8 @@ const handlePortInput = (value: string) => {
if (ds.host || ds.port) {
ds.host = adminDataSource.value.host;
ds.port = adminDataSource.value.port;
- missingFeature.value = PlanFeature.FEATURE_INSTANCE_READ_ONLY_CONNECTION;
+ missingFeature.value =
+ PlanFeature.FEATURE_INSTANCE_READ_ONLY_CONNECTION;
return;
}
}
diff --git a/frontend/src/components/InstanceForm/DataSourceSection/GcpCredentialInput.vue b/frontend/src/components/InstanceForm/DataSourceSection/GcpCredentialInput.vue
index cd56028d60..e96d338eb0 100644
--- a/frontend/src/components/InstanceForm/DataSourceSection/GcpCredentialInput.vue
+++ b/frontend/src/components/InstanceForm/DataSourceSection/GcpCredentialInput.vue
@@ -7,7 +7,7 @@
<p class="textinfolabel">
<span>{{ $t("instance.create-gcp-credentials") }}</span>
<a
- href="https://www.bytebase.com/docs/get-started/instance/#create-a-google-cloud-service-account-as-the-credential?source=console"
+ href="https://docs.bytebase.com/get-started/instance/#create-a-google-cloud-service-account-as-the-credential?source=console"
target="_blank"
class="normal-link inline-flex items-center ml-1"
>
diff --git a/frontend/src/components/InstanceForm/SpannerHostInput.vue b/frontend/src/components/InstanceForm/SpannerHostInput.vue
index 977d15adfe..6b8cd9ecae 100644
--- a/frontend/src/components/InstanceForm/SpannerHostInput.vue
+++ b/frontend/src/components/InstanceForm/SpannerHostInput.vue
@@ -32,7 +32,7 @@
<p class="col-span-2 textinfolabel">
{{ $t("instance.find-gcp-project-id-and-instance-id") }}
<a
- href="https://www.bytebase.com/docs/get-started/instance/#specify-google-cloud-project-id-and-spanner-instance-id?source=console"
+ href="https://docs.bytebase.com/get-started/instance/#specify-google-cloud-project-id-and-spanner-instance-id?source=console"
target="_blank"
class="normal-link inline-flex items-center"
>
diff --git a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue
index aaf748dce3..362325935e 100644
--- a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue
+++ b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue
@@ -30,6 +30,7 @@ import { NEllipsis } from "naive-ui";
import { computed } from "vue";
import { useI18n } from "vue-i18n";
import { databaseForTask } from "@/components/Rollout/RolloutDetail";
+import { useCurrentProjectV1 } from "@/store";
import { getProjectIdRolloutUidStageUidTaskUid } from "@/store/modules/v1/common";
import {
unknownTask,
@@ -42,7 +43,6 @@ import { TaskRun_Status, Task_Type } from "@/types/proto/v1/rollout_service";
import { databaseV1Url, extractTaskUID, flattenTaskV1List } from "@/utils";
import { extractChangelogUID } from "@/utils/v1/changelog";
import { useIssueContext } from "../../logic";
-import { useCurrentProjectV1 } from "@/store";
import { displayTaskRunLogEntryType } from "./TaskRunLogTable/common";
export type CommentLink = {
@@ -170,12 +170,12 @@ const commentLink = computed((): CommentLink => {
if (comment.value.includes("version")) {
return {
title: t("common.troubleshoot"),
- link: "https://www.bytebase.com/docs/change-database/troubleshoot/?source=console#duplicate-version",
+ link: "https://docs.bytebase.com/change-database/troubleshoot/?source=console#duplicate-version",
};
} else if (isPostgresFamily(db.instanceResource.engine)) {
return {
title: t("common.troubleshoot"),
- link: "https://www.bytebase.com/docs/change-database/troubleshoot/?source=console#postgresql",
+ link: "https://docs.bytebase.com/change-database/troubleshoot/?source=console#postgresql",
};
}
}
diff --git a/frontend/src/components/MonacoEditor/utils.ts b/frontend/src/components/MonacoEditor/utils.ts
index 4029daeb28..781b1031a9 100644
--- a/frontend/src/components/MonacoEditor/utils.ts
+++ b/frontend/src/components/MonacoEditor/utils.ts
@@ -134,7 +134,7 @@ export const errorNotification = (err: unknown) => {
h("p", {}, messages.description()),
message ? h("p", {}, message) : null,
h(LearnMoreLink, {
- url: "https://www.bytebase.com/docs/administration/production-setup/#enable-https-and-websocket",
+ url: "https://docs.bytebase.com/administration/production-setup/#enable-https-and-websocket",
}),
];
},
diff --git a/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue b/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue
index 5c07d3627d..4d8c2a3fc7 100644
--- a/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue
@@ -16,7 +16,7 @@
<template #link>
<!-- TODO: update docs for mariadb -->
<LearnMoreLink
- url="https://www.bytebase.com/docs/change-database/online-schema-migration-for-mysql?source=console"
+ url="https://docs.bytebase.com/change-database/online-schema-migration-for-mysql?source=console"
color="light"
hide-when-embedded
/>
@@ -49,10 +49,10 @@
</template>
<script lang="ts" setup>
-import LearnMoreLink from "@/components/LearnMoreLink.vue";
import { WrenchIcon } from "lucide-vue-next";
import { NButton, NTooltip } from "naive-ui";
import { ref } from "vue";
+import LearnMoreLink from "@/components/LearnMoreLink.vue";
import GhostFlagsPanel from "./GhostFlagsPanel.vue";
import GhostSwitch from "./GhostSwitch.vue";
import { useGhostSettingContext } from "./context";
@@ -60,5 +60,4 @@ import { useGhostSettingContext } from "./context";
const showFlagsPanel = ref(false);
const { allowChange, enabled } = useGhostSettingContext();
-
</script>
diff --git a/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSwitch.vue b/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSwitch.vue
index 1d7a3e335c..2dae5f9e23 100644
--- a/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSwitch.vue
+++ b/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSwitch.vue
@@ -47,7 +47,7 @@ const disallowPreBackupLink = computed(() => {
if (allowChange.value || !hasBackupUnavailable.value) {
return undefined;
}
- return "https://www.bytebase.com/docs/change-database/rollback-data-changes?source=console";
+ return "https://docs.bytebase.com/change-database/rollback-data-changes?source=console";
});
// Compute detailed errors for ErrorList
diff --git a/frontend/src/components/ProfileDropdown.vue b/frontend/src/components/ProfileDropdown.vue
index 52f0d22216..6d6b78d06d 100644
--- a/frontend/src/components/ProfileDropdown.vue
+++ b/frontend/src/components/ProfileDropdown.vue
@@ -303,7 +303,7 @@ const options = computed((): DropdownOption[] => [
{
class: "menu-item",
target: "_blank",
- href: "https://bytebase.com/docs/introduction/what-is-bytebase/?source=console",
+ href: "https://docs.bytebase.com/introduction/what-is-bytebase/?source=console",
},
t("common.help")
);
diff --git a/frontend/src/components/Project/ProjectReleasesPanel.vue b/frontend/src/components/Project/ProjectReleasesPanel.vue
index 8c6e3ea130..58f0faa613 100644
--- a/frontend/src/components/Project/ProjectReleasesPanel.vue
+++ b/frontend/src/components/Project/ProjectReleasesPanel.vue
@@ -3,7 +3,7 @@
<NAlert type="info">
<span>{{ $t("release.usage-description") }}</span>
<LearnMoreLink
- url="https://www.bytebase.com/docs/vcs-integration/release/?source=console"
+ url="https://docs.bytebase.com/vcs-integration/release/?source=console"
class="ml-1"
/>
</NAlert>
diff --git a/frontend/src/components/ProjectMember/ProjectMemberPanel.vue b/frontend/src/components/ProjectMember/ProjectMemberPanel.vue
index 3b907eaa42..1549bb2bf7 100644
--- a/frontend/src/components/ProjectMember/ProjectMemberPanel.vue
+++ b/frontend/src/components/ProjectMember/ProjectMemberPanel.vue
@@ -3,7 +3,7 @@
<div class="textinfolabel">
{{ $t("project.members.description") }}
<a
- href="https://www.bytebase.com/docs/concepts/roles-and-permissions/?source=console#project-roles"
+ href="https://docs.bytebase.com/concepts/roles-and-permissions/?source=console#project-roles"
target="_blank"
class="normal-link inline-flex flex-row items-center"
>
@@ -90,6 +90,11 @@
</template>
<script lang="ts" setup>
+import { computedAsync } from "@vueuse/core";
+import { cloneDeep } from "lodash-es";
+import { NButton, NTabPane, NTabs, useDialog } from "naive-ui";
+import { computed, reactive } from "vue";
+import { useI18n } from "vue-i18n";
import MemberDataTable from "@/components/Member/MemberDataTable/index.vue";
import MemberDataTableByRole from "@/components/Member/MemberDataTableByRole.vue";
import type { MemberBinding } from "@/components/Member/types";
@@ -108,11 +113,6 @@ import {
import type { ComposedProject } from "@/types";
import { PRESET_WORKSPACE_ROLES, groupBindingPrefix } from "@/types";
import { hasProjectPermissionV2 } from "@/utils";
-import { computedAsync } from "@vueuse/core";
-import { cloneDeep } from "lodash-es";
-import { NButton, NTabPane, NTabs, useDialog } from "naive-ui";
-import { computed, reactive } from "vue";
-import { useI18n } from "vue-i18n";
import { SearchBox } from "../v2";
import AddProjectMembersPanel from "./AddProjectMember/AddProjectMembersPanel.vue";
import ProjectMemberRolePanel from "./ProjectMemberRolePanel/index.vue";
diff --git a/frontend/src/components/ReleaseRemindModal.vue b/frontend/src/components/ReleaseRemindModal.vue
index be1f42917d..971219d0dc 100644
--- a/frontend/src/components/ReleaseRemindModal.vue
+++ b/frontend/src/components/ReleaseRemindModal.vue
@@ -41,7 +41,7 @@ const subscriptionStore = useSubscriptionV1Store();
const link = computed(() => {
if (subscriptionStore.isSelfHostLicense) {
- return "https://www.bytebase.com/docs/get-started/self-host";
+ return "https://docs.bytebase.com/get-started/self-host";
}
return subscriptionStore.purchaseLicenseUrl;
});
diff --git a/frontend/src/components/Role/Setting/RoleSetting.vue b/frontend/src/components/Role/Setting/RoleSetting.vue
index d1577e90af..a72aae46a7 100644
--- a/frontend/src/components/Role/Setting/RoleSetting.vue
+++ b/frontend/src/components/Role/Setting/RoleSetting.vue
@@ -3,7 +3,7 @@
<div class="textinfolabel">
{{ $t("role.setting.description") }}
<a
- href="https://www.bytebase.com/docs/administration/custom-roles?source=console"
+ href="https://docs.bytebase.com/administration/custom-roles?source=console"
class="normal-link text-sm inline-flex flex-row items-center"
target="_blank"
>
diff --git a/frontend/src/components/SQLReview/components/SQLRuleEditDialog.vue b/frontend/src/components/SQLReview/components/SQLRuleEditDialog.vue
index 0b9d6937ca..cf3367ba53 100644
--- a/frontend/src/components/SQLReview/components/SQLRuleEditDialog.vue
+++ b/frontend/src/components/SQLReview/components/SQLRuleEditDialog.vue
@@ -20,7 +20,7 @@
<div class="textinfolabel flex items-center gap-x-2">
{{ getRuleLocalization(rule.type, rule.engine).title }}
<a
- :href="`https://www.bytebase.com/docs/sql-review/review-rules#${rule.type}`"
+ :href="`https://docs.bytebase.com/sql-review/review-rules#${rule.type}`"
target="__blank"
class="flex flex-row space-x-2 items-center text-base text-gray-500 hover:text-gray-900"
>
diff --git a/frontend/src/components/SQLReview/components/SQLRuleTable.vue b/frontend/src/components/SQLReview/components/SQLRuleTable.vue
index 5dbce57101..1d9e4e863f 100644
--- a/frontend/src/components/SQLReview/components/SQLRuleTable.vue
+++ b/frontend/src/components/SQLReview/components/SQLRuleTable.vue
@@ -65,7 +65,7 @@
<span>
{{ getRuleLocalization(rule.type, rule.engine).title }}
<a
- :href="`https://www.bytebase.com/docs/sql-review/review-rules#${rule.type}`"
+ :href="`https://docs.bytebase.com/sql-review/review-rules#${rule.type}`"
target="_blank"
class="inline-block"
>
@@ -257,7 +257,7 @@ const columns = computed(() => {
<div class="flex items-center space-x-2">
<span>{getRuleLocalization(rule.type, rule.engine).title}</span>
<a
- href={`https://www.bytebase.com/docs/sql-review/review-rules#${rule.type}`}
+ href={`https://docs.bytebase.com/sql-review/review-rules#${rule.type}`}
target="_blank"
class="flex flex-row space-x-2 items-center text-base text-gray-500 hover:text-gray-900"
>
diff --git a/frontend/src/components/SSO/IdentityProviderCreateForm.vue b/frontend/src/components/SSO/IdentityProviderCreateForm.vue
index 85bc26dea6..a87760ab11 100644
--- a/frontend/src/components/SSO/IdentityProviderCreateForm.vue
+++ b/frontend/src/components/SSO/IdentityProviderCreateForm.vue
@@ -565,7 +565,7 @@
<p class="textinfolabel">
{{ $t("settings.sso.form.user-information-mapping-description") }}
<a
- href="https://www.bytebase.com/docs/administration/sso/oauth2#user-information-field-mapping?source=console"
+ href="https://docs.bytebase.com/administration/sso/oauth2#user-information-field-mapping?source=console"
class="normal-link text-sm inline-flex flex-row items-center"
target="_blank"
>
@@ -838,11 +838,11 @@ const resourceId = computed(() => {
const userDocLink = computed(() => {
if (state.type === IdentityProviderType.OAUTH2) {
- return "https://www.bytebase.com/docs/administration/sso/oauth2?source=console";
+ return "https://docs.bytebase.com/administration/sso/oauth2?source=console";
} else if (state.type === IdentityProviderType.OIDC) {
- return "https://www.bytebase.com/docs/administration/sso/oidc?source=console";
+ return "https://docs.bytebase.com/administration/sso/oidc?source=console";
} else if (state.type === IdentityProviderType.LDAP) {
- return "https://www.bytebase.com/docs/administration/sso/ldap?source=console";
+ return "https://docs.bytebase.com/administration/sso/ldap?source=console";
}
return "";
});
diff --git a/frontend/src/components/SensitiveData/ClassificationView.vue b/frontend/src/components/SensitiveData/ClassificationView.vue
index da7db0016a..8fce373b90 100644
--- a/frontend/src/components/SensitiveData/ClassificationView.vue
+++ b/frontend/src/components/SensitiveData/ClassificationView.vue
@@ -3,7 +3,7 @@
<div class="text-sm text-control-light">
{{ $t("database.classification.description") }}
<LearnMoreLink
- url="https://www.bytebase.com/docs/security/data-masking/data-classification?source=console"
+ url="https://docs.bytebase.com/security/data-masking/data-classification?source=console"
class="ml-1"
/>
</div>
@@ -99,13 +99,13 @@ import { v4 as uuidv4 } from "uuid";
import { computed, reactive, ref } from "vue";
import { useI18n } from "vue-i18n";
import { featureToRef, useSettingV1Store, pushNotification } from "@/store";
-import { PlanFeature } from "@/types/proto/v1/subscription_service";
import {
DataClassificationSetting_DataClassificationConfig_Level as ClassificationLevel,
DataClassificationSetting_DataClassificationConfig_DataClassification as DataClassification,
DataClassificationSetting_DataClassificationConfig,
Setting_SettingName,
} from "@/types/proto/v1/setting_service";
+import { PlanFeature } from "@/types/proto/v1/subscription_service";
import { hasWorkspacePermissionV2 } from "@/utils";
import LearnMoreLink from "../LearnMoreLink.vue";
import ClassificationTree from "../SchemaTemplate/ClassificationTree.vue";
diff --git a/frontend/src/components/SensitiveData/GlobalMaskingRulesView.vue b/frontend/src/components/SensitiveData/GlobalMaskingRulesView.vue
index ff0a189a92..660608db8b 100644
--- a/frontend/src/components/SensitiveData/GlobalMaskingRulesView.vue
+++ b/frontend/src/components/SensitiveData/GlobalMaskingRulesView.vue
@@ -51,7 +51,7 @@
<div class="textinfolabel">
{{ $t("settings.sensitive-data.global-rules.description") }}
<LearnMoreLink
- url="https://www.bytebase.com/docs/security/data-masking/overview/?source=console"
+ url="https://docs.bytebase.com/security/data-masking/overview/?source=console"
/>
</div>
<NEmpty
diff --git a/frontend/src/components/SyncDatabaseSchemaV1/index.vue b/frontend/src/components/SyncDatabaseSchemaV1/index.vue
index 3125f2b447..4c976c365e 100644
--- a/frontend/src/components/SyncDatabaseSchemaV1/index.vue
+++ b/frontend/src/components/SyncDatabaseSchemaV1/index.vue
@@ -3,7 +3,7 @@
<p class="text-sm text-gray-500">
{{ $t("database.sync-schema.description") }}
<LearnMoreLink
- url="https://www.bytebase.com/docs/change-database/synchronize-schema?source=console"
+ url="https://docs.bytebase.com/change-database/synchronize-schema?source=console"
/>
</p>
diff --git a/frontend/src/components/User/Settings/AADSyncDrawer.vue b/frontend/src/components/User/Settings/AADSyncDrawer.vue
index d46d9c50fc..343bf4cf84 100644
--- a/frontend/src/components/User/Settings/AADSyncDrawer.vue
+++ b/frontend/src/components/User/Settings/AADSyncDrawer.vue
@@ -9,7 +9,7 @@
<div class="text-sm text-control-light">
{{ $t(`settings.members.entra-sync.description`) }}
<LearnMoreLink
- url="https://www.bytebase.com/docs/administration/scim/overview?source=console"
+ url="https://docs.bytebase.com/administration/scim/overview?source=console"
class="ml-1"
/>
</div>
@@ -145,7 +145,8 @@ const hasPermission = computed(() =>
const workspaceId = computed(() => {
return (
- settingV1Store.getSettingByName(Setting_SettingName.WORKSPACE_ID)?.value?.stringValue ?? ""
+ settingV1Store.getSettingByName(Setting_SettingName.WORKSPACE_ID)?.value
+ ?.stringValue ?? ""
);
});
@@ -162,8 +163,8 @@ const scimUrl = computed(() => {
const scimToken = computed(() => {
return (
- settingV1Store.getSettingByName(Setting_SettingName.SCIM)?.value?.scimSetting
- ?.token ?? ""
+ settingV1Store.getSettingByName(Setting_SettingName.SCIM)?.value
+ ?.scimSetting?.token ?? ""
);
});
diff --git a/frontend/src/components/User/Settings/CreateUserDrawer.vue b/frontend/src/components/User/Settings/CreateUserDrawer.vue
index 314ea53eb4..c353cdc883 100644
--- a/frontend/src/components/User/Settings/CreateUserDrawer.vue
+++ b/frontend/src/components/User/Settings/CreateUserDrawer.vue
@@ -11,7 +11,7 @@
<div class="text-sm font-medium">{{ $t("common.type") }}</div>
<a
v-if="!hideServiceAccount"
- href="https://www.bytebase.com/docs/get-started/terraform?source=console"
+ href="https://docs.bytebase.com/get-started/terraform?source=console"
target="_blank"
>
<heroicons-outline:question-mark-circle class="w-4 h-4" />
diff --git a/frontend/src/store/modules/v1/actuator.ts b/frontend/src/store/modules/v1/actuator.ts
index ea53d63a63..0ebbc94bd6 100644
--- a/frontend/src/store/modules/v1/actuator.ts
+++ b/frontend/src/store/modules/v1/actuator.ts
@@ -23,7 +23,7 @@ import { UserType } from "@/types/proto/v1/user_service";
import { semverCompare } from "@/utils";
const EXTERNAL_URL_PLACEHOLDER =
- "https://www.bytebase.com/docs/get-started/install/external-url";
+ "https://docs.bytebase.com/get-started/install/external-url";
const GITHUB_API_LIST_BYTEBASE_RELEASE =
"https://api.github.com/repos/bytebase/bytebase/releases";
@@ -68,7 +68,7 @@ export const useActuatorV1Store = defineStore("actuator_v1", {
if (!version) {
return "";
}
- return `https://bytebase.com/changelog/bytebase-${version.split(".").join("-")}/`;
+ return `https://docs.bytebase.com/changelog/bytebase-${version.split(".").join("-")}/`;
},
info: (state) => {
return state.serverInfo;
@@ -84,11 +84,11 @@ export const useActuatorV1Store = defineStore("actuator_v1", {
},
gitCommitBE: (state) => {
const commit = state.serverInfo?.gitCommit ?? "";
- return commit === "" ? "unknown": commit;
+ return commit === "" ? "unknown" : commit;
},
gitCommitFE: () => {
const commit = import.meta.env.GIT_COMMIT ?? "";
- return commit === "" ? "unknown": commit;
+ return commit === "" ? "unknown" : commit;
},
isDemo: (state) => {
return state.serverInfo?.demo;
@@ -231,10 +231,10 @@ export const useActuatorV1Store = defineStore("actuator_v1", {
if (Date.now() - this.serverInfoTs >= 1000 * 60 * 30) {
await this.fetchServerInfo();
}
- if (this.gitCommitBE === 'unknown' || this.gitCommitFE === 'unknown') {
+ if (this.gitCommitBE === "unknown" || this.gitCommitFE === "unknown") {
return false;
}
- return (this.gitCommitBE !== this.gitCommitFE)
+ return this.gitCommitBE !== this.gitCommitFE;
},
async fetchLatestRelease(): Promise<Release | undefined> {
try {
diff --git a/frontend/src/views/BannerDemo.vue b/frontend/src/views/BannerDemo.vue
index f76ad79884..3b8c393eb4 100644
--- a/frontend/src/views/BannerDemo.vue
+++ b/frontend/src/views/BannerDemo.vue
@@ -18,7 +18,7 @@
class="flex flex-row space-x-4 order-3 my-2 flex-shrink-0 w-full sm:order-2 sm:py-1 sm:my-0 sm:w-auto"
>
<a
- href="https://bytebase.com/docs/get-started/self-host/?source=demo"
+ href="https://docs.bytebase.com/get-started/self-host/?source=demo"
target="_blank"
class="flex items-center justify-center pl-4 pr-2 py-1 border border-transparent rounded-sm text-base font-medium text-accent bg-white hover:bg-indigo-50"
>
diff --git a/frontend/src/views/DashboardHeader.vue b/frontend/src/views/DashboardHeader.vue
index a174101d6a..6afc0f8c07 100644
--- a/frontend/src/views/DashboardHeader.vue
+++ b/frontend/src/views/DashboardHeader.vue
@@ -180,7 +180,7 @@ const handleWantHelp = () => {
if (locale.value === "zh-CN") {
state.showQRCodeModal = true;
} else {
- window.open("https://www.bytebase.com/docs/faq#how-to-reach-us", "_blank");
+ window.open("https://docs.bytebase.com/faq#how-to-reach-us", "_blank");
}
};
</script>
diff --git a/frontend/src/views/DatabaseDetail/DatabaseDetail.vue b/frontend/src/views/DatabaseDetail/DatabaseDetail.vue
index 96165efbe8..6de5d1feb2 100644
--- a/frontend/src/views/DatabaseDetail/DatabaseDetail.vue
+++ b/frontend/src/views/DatabaseDetail/DatabaseDetail.vue
@@ -9,7 +9,7 @@
type="warning"
:title="$t('database.drifted.schema-drift-detected.self')"
:description="$t('database.drifted.schema-drift-detected.description')"
- :link="'https://www.bytebase.com/docs/change-database/drift-detection/?source=console'"
+ :link="'https://docs.bytebase.com/change-database/drift-detection/?source=console'"
:action-text="
database.project !== DEFAULT_PROJECT_NAME
? $t('database.drifted.new-baseline.self')
diff --git a/frontend/src/views/ProfileDashboard.vue b/frontend/src/views/ProfileDashboard.vue
index b4a442a4ae..4316253e5c 100644
--- a/frontend/src/views/ProfileDashboard.vue
+++ b/frontend/src/views/ProfileDashboard.vue
@@ -88,10 +88,7 @@
{{ displayRoleTitle(role) }}
</NTag>
</div>
- <router-link
- :to="'/setting/subscription'"
- class="normal-link"
- >
+ <router-link :to="'/setting/subscription'" class="normal-link">
{{ $t("settings.profile.subscription") }}
</router-link>
</dd>
@@ -168,7 +165,7 @@
{{ $t("two-factor.description") }}
<LearnMoreLink
class="ml-1"
- url="https://www.bytebase.com/docs/administration/2fa?source=console"
+ url="https://docs.bytebase.com/administration/2fa?source=console"
/>
</p>
<template v-if="showRegenerateRecoveryCodes">
@@ -220,6 +217,13 @@
</template>
<script lang="ts" setup>
+import { computedAsync, useTitle } from "@vueuse/core";
+import { cloneDeep, head, isEqual } from "lodash-es";
+import type { DropdownOption } from "naive-ui";
+import { NButton, NDropdown, NInput, NTag } from "naive-ui";
+import { computed, nextTick, onMounted, onUnmounted, reactive, ref } from "vue";
+import { useI18n } from "vue-i18n";
+import { useRouter } from "vue-router";
import EmailInput from "@/components/EmailInput.vue";
import { FeatureModal } from "@/components/FeatureGuard";
import FeatureBadge from "@/components/FeatureGuard/FeatureBadge.vue";
@@ -255,13 +259,6 @@ import {
type User,
} from "@/types/proto/v1/user_service";
import { displayRoleTitle, hasWorkspacePermissionV2, sortRoles } from "@/utils";
-import { computedAsync, useTitle } from "@vueuse/core";
-import { cloneDeep, head, isEqual } from "lodash-es";
-import type { DropdownOption } from "naive-ui";
-import { NButton, NDropdown, NInput, NTag } from "naive-ui";
-import { computed, nextTick, onMounted, onUnmounted, reactive, ref } from "vue";
-import { useI18n } from "vue-i18n";
-import { useRouter } from "vue-router";
interface LocalState {
editing: boolean;
diff --git a/frontend/src/views/SettingWorkspaceIM.vue b/frontend/src/views/SettingWorkspaceIM.vue
index 0110df6f97..63642935cf 100644
--- a/frontend/src/views/SettingWorkspaceIM.vue
+++ b/frontend/src/views/SettingWorkspaceIM.vue
@@ -4,7 +4,7 @@
{{ $t("settings.im-integration.description") }}
<a
class="normal-link inline-flex items-center"
- href="https://www.bytebase.com/docs/change-database/webhook?source=console"
+ href="https://docs.bytebase.com/change-database/webhook?source=console"
target="__BLANK"
>
{{ $t("common.learn-more") }}
@@ -88,8 +88,8 @@ const settingStore = useSettingV1Store();
const imSetting = computed(
() =>
- settingStore.getSettingByName(Setting_SettingName.APP_IM)?.value?.appImSettingValue ??
- AppIMSetting.fromPartial({})
+ settingStore.getSettingByName(Setting_SettingName.APP_IM)?.value
+ ?.appImSettingValue ?? AppIMSetting.fromPartial({})
);
watch(
@@ -280,7 +280,7 @@ const imList = computed(() => {
placeholder={t("common.write-only")}
value={state.setting.dingtalk?.clientId ?? ""}
onUpdate:value={(val: string) => {
- state.setting.dingtalk!.clientId= val;
+ state.setting.dingtalk!.clientId = val;
}}
/>
</div>
@@ -309,7 +309,7 @@ const imList = computed(() => {
</div>
);
},
- }
+ },
];
});
diff --git a/frontend/src/views/SettingWorkspaceMailDelivery.vue b/frontend/src/views/SettingWorkspaceMailDelivery.vue
index b5df1da612..247b493fd1 100644
--- a/frontend/src/views/SettingWorkspaceMailDelivery.vue
+++ b/frontend/src/views/SettingWorkspaceMailDelivery.vue
@@ -6,7 +6,7 @@
{{ $t("settings.mail-delivery.description") }}
<a
class="normal-link inline-flex items-center"
- href="https://www.bytebase.com/docs/administration/mail-delivery?source=console"
+ href="https://docs.bytebase.com/administration/mail-delivery?source=console"
target="__BLANK"
>
{{ $t("common.learn-more") }}
diff --git a/frontend/src/views/SettingWorkspaceRiskCenter.vue b/frontend/src/views/SettingWorkspaceRiskCenter.vue
index 8c06f9a797..f7877575c6 100644
--- a/frontend/src/views/SettingWorkspaceRiskCenter.vue
+++ b/frontend/src/views/SettingWorkspaceRiskCenter.vue
@@ -1,11 +1,14 @@
<template>
- <FeatureAttention :feature="PlanFeature.FEATURE_RISK_ASSESSMENT" class="mb-4" />
+ <FeatureAttention
+ :feature="PlanFeature.FEATURE_RISK_ASSESSMENT"
+ class="mb-4"
+ />
<div class="w-full space-y-4 text-sm">
<div class="textinfolabel">
{{ $t("custom-approval.risk.description") }}
<a
- href="https://www.bytebase.com/docs/administration/risk-center"
+ href="https://docs.bytebase.com/administration/risk-center"
target="_blank"
class="normal-link inline-flex flex-row items-center"
>
@@ -29,6 +32,7 @@
</template>
<script lang="ts" setup>
+import { computed, onMounted, reactive, ref, toRef } from "vue";
import { BBSpin } from "@/bbkit";
import {
RiskCenter,
@@ -40,7 +44,6 @@ import { FeatureAttention, FeatureModal } from "@/components/FeatureGuard";
import { featureToRef, useRiskStore } from "@/store";
import { PlanFeature } from "@/types/proto/v1/subscription_service";
import { hasWorkspacePermissionV2 } from "@/utils";
-import { computed, onMounted, reactive, ref, toRef } from "vue";
interface LocalState {
ready: boolean;
@@ -51,7 +54,9 @@ const state = reactive<LocalState>({
ready: false,
showFeatureModal: false,
});
-const hasRiskAssessmentFeature = featureToRef(PlanFeature.FEATURE_RISK_ASSESSMENT);
+const hasRiskAssessmentFeature = featureToRef(
+ PlanFeature.FEATURE_RISK_ASSESSMENT
+);
const allowAdmin = computed(() => {
return hasWorkspacePermissionV2("bb.risks.update");
diff --git a/frontend/src/views/SettingWorkspaceSQLReview.vue b/frontend/src/views/SettingWorkspaceSQLReview.vue
index b6f735c7d7..8dbf48fd0a 100644
--- a/frontend/src/views/SettingWorkspaceSQLReview.vue
+++ b/frontend/src/views/SettingWorkspaceSQLReview.vue
@@ -3,7 +3,7 @@
<div class="textinfolabel">
{{ $t("sql-review.description") }}
<a
- href="https://www.bytebase.com/docs/sql-review/review-rules"
+ href="https://docs.bytebase.com/sql-review/review-rules"
target="_blank"
class="normal-link inline-flex flex-row items-center"
>
diff --git a/frontend/src/views/SettingWorkspaceSSO.vue b/frontend/src/views/SettingWorkspaceSSO.vue
index 5a8cb2d66f..a4d04f2cfb 100644
--- a/frontend/src/views/SettingWorkspaceSSO.vue
+++ b/frontend/src/views/SettingWorkspaceSSO.vue
@@ -3,7 +3,7 @@
<div class="textinfolabel">
{{ $t("settings.sso.description") }}
<a
- href="https://bytebase.com/docs/administration/sso/overview?source=console"
+ href="https://docs.bytebase.com/administration/sso/overview?source=console"
class="normal-link inline-flex flex-row items-center"
target="_blank"
>
@@ -20,7 +20,10 @@
<template #icon>
<PlusIcon class="h-4 w-4" />
</template>
- <FeatureBadge :feature="PlanFeature.FEATURE_ENTERPRISE_SSO" class="mr-1 text-white" />
+ <FeatureBadge
+ :feature="PlanFeature.FEATURE_ENTERPRISE_SSO"
+ class="mr-1 text-white"
+ />
{{ $t("settings.sso.create") }}
</NButton>
</div>
diff --git a/frontend/src/views/SettingWorkspaceSSODetail.vue b/frontend/src/views/SettingWorkspaceSSODetail.vue
index 8be143e7dc..3c886e834a 100644
--- a/frontend/src/views/SettingWorkspaceSSODetail.vue
+++ b/frontend/src/views/SettingWorkspaceSSODetail.vue
@@ -4,7 +4,7 @@
<div class="textinfolabel mr-4">
{{ $t("settings.sso.description") }}
<a
- href="https://bytebase.com/docs/administration/sso/overview?source=console"
+ href="https://docs.bytebase.com/administration/sso/overview?source=console"
class="normal-link inline-flex flex-row items-center"
target="_blank"
>
diff --git a/frontend/src/views/Setup/WorkspaceMode.vue b/frontend/src/views/Setup/WorkspaceMode.vue
index fe38620185..4f62e3317f 100644
--- a/frontend/src/views/Setup/WorkspaceMode.vue
+++ b/frontend/src/views/Setup/WorkspaceMode.vue
@@ -3,7 +3,7 @@
<div class="mb-4 font-medium">
{{ $t("settings.general.workspace.database-change-mode.description") }}
<LearnMoreLink
- url="https://www.bytebase.com/docs/administration/mode?source=console"
+ url="https://docs.bytebase.com/administration/mode?source=console"
class="ml-1 text-sm"
/>
<div class="text-control-placeholder text-sm">
diff --git a/frontend/src/views/TwoFactorSetup.vue b/frontend/src/views/TwoFactorSetup.vue
index d7324515e5..86d3c2b377 100644
--- a/frontend/src/views/TwoFactorSetup.vue
+++ b/frontend/src/views/TwoFactorSetup.vue
@@ -2,7 +2,7 @@
<p class="text-sm text-gray-500 mb-4">
{{ $t("two-factor.description") }}
<LearnMoreLink
- url="https://www.bytebase.com/docs/administration/2fa?source=console"
+ url="https://docs.bytebase.com/administration/2fa?source=console"
/>
</p>
<StepTab
diff --git a/helm-charts/bytebase/Chart.yaml b/helm-charts/bytebase/Chart.yaml
index 625d2661e3..1661856f2a 100644
--- a/helm-charts/bytebase/Chart.yaml
+++ b/helm-charts/bytebase/Chart.yaml
@@ -3,7 +3,7 @@ name: bytebase
version: 1.1.1
description: Safe database schema change and version control for DevOps teams.
type: application
-home: https://bytebase.com/
+home: https://www.bytebase.com/
sources:
- https://github.com/bytebase/bytebase
icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/public/images/logo.svg
diff --git a/helm-charts/bytebase/README.md b/helm-charts/bytebase/README.md
index 65a160d00a..e4c9b7460f 100644
--- a/helm-charts/bytebase/README.md
+++ b/helm-charts/bytebase/README.md
@@ -1,6 +1,6 @@
# Helm Chart for Bytebase
-[Bytebase](https://bytebase.com) is a Database CI/CD tool for DevOps teams, built for Developers and DBAs.
+[Bytebase](https://www.bytebase.com) is a Database CI/CD tool for DevOps teams, built for Developers and DBAs.
## TL;DR
@@ -71,36 +71,36 @@ upgrade bytebase-release bytebase-repo/bytebase
## Parameters
-| Parameter | Description | Default Value |
-| :------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------: |
-| `bytebase.version` | The version of Bytebase to be installed. | "2.11.1" |
-| `bytebase.registryMirrorHost` | The host for the Docker registry mirror. Leave empty for default registry usage. | "" |
-| `bytebase.option.port` | Port where Bytebase server runs. | 8080 |
-| `bytebase.option.data` | Data directory of Bytebase data stored. | /var/opt/bytebase |
-| `bytebase.option.external-url` | The address for users to visit Bytebase, visit [our docs](https://www.bytebase.com/docs/get-started/install/external-url/) to get more details. | "<https://www.bytebase.com/docs/get-started/install/external-url>" |
-| `bytebase.option.disable-sample` | Disable the sample instance. | false |
-| `bytebase.option.externalPg.url` | The PostgreSQL url(DSN) for Bytebase to store the metadata. | "" |
-| `bytebase.option.externalPg.existingPgURLSecret` | The name of Secret stores the PostgreSQL url(DSN) for Bytebase to store the metadata. | "" |
-| `bytebase.option.externalPg.existingPgURLSecretKey` | The key of Secret stores the PostgreSQL url(DSN) for Bytebase to store the metadata. Should be used with `bytebase.option.externalPg.existingPgURLSecret` together. | "" |
-| `bytebase.option.externalPg.pgHost` | The PostgreSQL host for Bytebase metadata storage. | "host" |
-| `bytebase.option.externalPg.pgPort` | The PostgreSQL port for Bytebase metadata storage. | "port" |
-| `bytebase.option.externalPg.pgUsername` | The PostgreSQL username for Bytebase metadata storage. | "username" |
-| `bytebase.option.externalPg.pgPassword` | The PostgreSQL password for Bytebase metadata storage. | "password" |
-| `bytebase.option.externalPg.pgDatabase` | The name of the PostgreSQL database for Bytebase. | "database" |
-| `bytebase.option.externalPg.existingPgPasswordSecret` | The name of Secret that stores the existing PostgreSQL password for Bytebase metadata storage. | "" |
-| `bytebase.option.externalPg.existingPgPasswordSecretKey` | The key of Secret storing the existing PostgreSQL password. Should be used with `bytebase.option.externalPg.existingPgPasswordSecret`. | "" |
-| `bytebase.option.externalPg.escapePassword` | Controls whether to escape the password in the connection string. `bytebase.option.externalPg.existingPgPasswordSecret` or `bytebase.option.externalPg.pgPassword` should be specified with this value together. **Experimental feature.** | false |
-| `bytebase.persistence.enabled` | Enable/disable persistence for Bytebase. | false |
-| `bytebase.persistence.existingClaim` | Name of the existing PersistentVolumeClaim for Bytebase persistence. | "" |
-| `bytebase.persistence.storage` | Size of the persistent volume for Bytebase data. | "2Gi" |
-| `bytebase.persistence.storageClass` | Storage class for the persistent volume used by Bytebase. | "" |
-| `bytebase.extraSecretMounts` | Additional Bytebase secret mounts. Defined as an array of volumeMount objects. | [] |
-| `bytebase.extraVolumes` | Additional Bytebase volumes. Defined as an array of volume objects. | [] |
+| Parameter | Description | Default Value |
+| :------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------: |
+| `bytebase.version` | The version of Bytebase to be installed. | "2.11.1" |
+| `bytebase.registryMirrorHost` | The host for the Docker registry mirror. Leave empty for default registry usage. | "" |
+| `bytebase.option.port` | Port where Bytebase server runs. | 8080 |
+| `bytebase.option.data` | Data directory of Bytebase data stored. | /var/opt/bytebase |
+| `bytebase.option.external-url` | The address for users to visit Bytebase, visit [our docs](https://docs.bytebase.com/get-started/install/external-url/) to get more details. | "<https://docs.bytebase.com/get-started/install/external-url>" |
+| `bytebase.option.disable-sample` | Disable the sample instance. | false |
+| `bytebase.option.externalPg.url` | The PostgreSQL url(DSN) for Bytebase to store the metadata. | "" |
+| `bytebase.option.externalPg.existingPgURLSecret` | The name of Secret stores the PostgreSQL url(DSN) for Bytebase to store the metadata. | "" |
+| `bytebase.option.externalPg.existingPgURLSecretKey` | The key of Secret stores the PostgreSQL url(DSN) for Bytebase to store the metadata. Should be used with `bytebase.option.externalPg.existingPgURLSecret` together. | "" |
+| `bytebase.option.externalPg.pgHost` | The PostgreSQL host for Bytebase metadata storage. | "host" |
+| `bytebase.option.externalPg.pgPort` | The PostgreSQL port for Bytebase metadata storage. | "port" |
+| `bytebase.option.externalPg.pgUsername` | The PostgreSQL username for Bytebase metadata storage. | "username" |
+| `bytebase.option.externalPg.pgPassword` | The PostgreSQL password for Bytebase metadata storage. | "password" |
+| `bytebase.option.externalPg.pgDatabase` | The name of the PostgreSQL database for Bytebase. | "database" |
+| `bytebase.option.externalPg.existingPgPasswordSecret` | The name of Secret that stores the existing PostgreSQL password for Bytebase metadata storage. | "" |
+| `bytebase.option.externalPg.existingPgPasswordSecretKey` | The key of Secret storing the existing PostgreSQL password. Should be used with `bytebase.option.externalPg.existingPgPasswordSecret`. | "" |
+| `bytebase.option.externalPg.escapePassword` | Controls whether to escape the password in the connection string. `bytebase.option.externalPg.existingPgPasswordSecret` or `bytebase.option.externalPg.pgPassword` should be specified with this value together. **Experimental feature.** | false |
+| `bytebase.persistence.enabled` | Enable/disable persistence for Bytebase. | false |
+| `bytebase.persistence.existingClaim` | Name of the existing PersistentVolumeClaim for Bytebase persistence. | "" |
+| `bytebase.persistence.storage` | Size of the persistent volume for Bytebase data. | "2Gi" |
+| `bytebase.persistence.storageClass` | Storage class for the persistent volume used by Bytebase. | "" |
+| `bytebase.extraSecretMounts` | Additional Bytebase secret mounts. Defined as an array of volumeMount objects. | [] |
+| `bytebase.extraVolumes` | Additional Bytebase volumes. Defined as an array of volume objects. | [] |
**If you enable bytebase persistence, you should provide storageClass and storage to bytebase to request a PVC, or provide the already existed PVC by existingClaim.**
## Need Help?
- Contact <[email protected]>
-- [Bytebase Docs](https://bytebase.com/docs)
+- [Bytebase Docs](https://docs.bytebase.com)
- [Bytebase GitHub Issue Page](https://github.com/bytebase/bytebase/issues/new/choose)
diff --git a/helm-charts/bytebase/values.yaml b/helm-charts/bytebase/values.yaml
index 02808a672b..600b9d1667 100644
--- a/helm-charts/bytebase/values.yaml
+++ b/helm-charts/bytebase/values.yaml
@@ -8,7 +8,7 @@ bytebase:
option:
port: 8080
data: "/var/opt/bytebase"
- external-url: "https://www.bytebase.com/docs/get-started/install/external-url"
+ external-url: "https://docs.bytebase.com/get-started/install/external-url"
disable-sample: false
externalPg:
url: ""
@@ -34,12 +34,12 @@ bytebase:
storage: 2Gi
storageClass: ""
resources: {}
-# limits:
-# cpu: 2000m
-# memory: 4Gi
-# requests:
-# cpu: 1000m
-# memory: 1Gi
+ # limits:
+ # cpu: 2000m
+ # memory: 4Gi
+ # requests:
+ # cpu: 1000m
+ # memory: 1Gi
# Additional Bytebase secret mounts
# Defines additional mounts with secret. Secret must be manually created in the namespace.
@@ -65,7 +65,8 @@ bytebase:
# Affinity for pod assignment (evaluated as template)
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
#
- affinity: {}
+ affinity:
+ {}
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
diff --git a/scripts/check_link_test.go b/scripts/check_link_test.go
index ed643b96e9..e46a976d69 100644
--- a/scripts/check_link_test.go
+++ b/scripts/check_link_test.go
@@ -33,7 +33,7 @@ var (
}
ignoreLinks = map[string]bool{
- "https://bytebase.com/changelog/bytebase-": true,
+ "https://docs.bytebase.com/changelog/bytebase-": true,
}
frontendDirectory = "../frontend"