Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
docs: cleanup (#3581)
Tianzhou (天舟)c046439f109a
diff --git a/README.md b/README.mdindex 08d37f90d4..17011c9f0f 100644--- a/README.md+++ b/README.md@@ -145,16 +145,13 @@ working on the code:- [Go](https://golang.org/doc/install) (1.19 or later)- [pnpm](https://pnpm.io/installation)-- [Air](https://github.com/cosmtrek/air#installation) (**must use forked repo 87187cc**). This is for backend live reload.+- [Air](https://github.com/bytebase/air) (**our forked repo @87187cc with the proper signal handling**). This is for backend live reload.+ ```bash+ go install github.com/bytebase/air@87187cc+ ```### Steps-1. Install forked Air 87187cc. Use 87187cc because it has the cherrypicked fix.-- ```bash- go install github.com/bytebase/air@87187cc- ```-1. Pull source.```bashdiff --git a/docs/bytebase-1.0.0.tgz b/docs/bytebase-1.0.0.tgzdeleted file mode 100644index 56ee55c611..0000000000Binary files a/docs/bytebase-1.0.0.tgz and /dev/null differdiff --git a/docs/dev-guide.md b/docs/dev-guide.mdindex 477f671674..300c017eb7 100644--- a/docs/dev-guide.md+++ b/docs/dev-guide.md@@ -2,7 +2,6 @@This guide describes some development conventions we adopt at Bytebase.-## Branch ManagementThis section describes how to manage git branches.@@ -52,8 +51,6 @@ git push --set-upstream origin feat/xxxThe recommended branch naming convention is using `/` as a namespace separator, e.g., feat/xxx, chore/xxx, docs/xxx, which works nicely with 3rd party git tools such as GitLens.--## Commit Messages GuideThis section describes how we add human and machine-readable commit messages.@@ -62,9 +59,9 @@ Refer to [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.### Benefits-* Automatically generating CHANGELOGs and release notes.-* Communicating the nature of changes to teammates, the public, and other stakeholders.-* Making it easier for people to contribute to your projects, by allowing them to explore a more structured commit history.+- Automatically generating CHANGELOGs and release notes.+- Communicating the nature of changes to teammates, the public, and other stakeholders.+- Making it easier for people to contribute to your projects, by allowing them to explore a more structured commit history.### Summary@@ -92,11 +89,12 @@ The header is a `mandatory` line that simply describes the purpose of the changeIt consists of three parts in itself:-* `Type` - a short prefix that represents the kind of the change-* `Scope` - optional information that represents the context of the change-* `Subject` - represents a concise description of actual change+- `Type` - a short prefix that represents the kind of the change+- `Scope` - optional information that represents the context of the change+- `Subject` - represents a concise description of actual change-> 💡 Notice that there also has a colon and space(`:<space>`), which separated the type and description+> **Note**+> There also has a colon and space(`:<space>`), which separated the type and description#### Body@@ -214,7 +212,7 @@ Checkout [more examples](https://www.conventionalcommits.org/en/v1.0.0/#examples### Tools-* [commitizen](https://github.com/commitizen/cz-cli) - The commitizen command line utility.-* [cz-conventional-changelog](https://github.com/commitizen/cz-conventional-changelog) - A commitizen adapter for the angular preset of [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog)-* [husky](https://github.com/typicode/husky) - Git hooks made easy 🐶 woof!-* [conventional-changelog-cli](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli) - Generate changelogs and release notes from a project's commit messages and metadata.+- [commitizen](https://github.com/commitizen/cz-cli) - The commitizen command line utility.+- [cz-conventional-changelog](https://github.com/commitizen/cz-conventional-changelog) - A commitizen adapter for the angular preset of [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog)+- [husky](https://github.com/typicode/husky) - Git hooks made easy 🐶 woof!+- [conventional-changelog-cli](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli) - Generate changelogs and release notes from a project's commit messages and metadata.diff --git a/docs/index.yaml b/docs/index.yamldeleted file mode 100644index 85180a0372..0000000000--- a/docs/index.yaml+++ /dev/null@@ -1,36 +0,0 @@-apiVersion: v1-entries:- bytebase:- - apiVersion: v2- created: "2022-11-04T10:24:46.708563+08:00"- description: Safe database schema change and version control for DevOps teams.- digest: 9b514e826fb25120f5d5fe4cb49e54323150f4f1d4ffe55fea34f9e2ed0115dc- home: https://bytebase.com/- icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/assets/logo-full.svg- maintainers:- - email: [email protected]- name: Bytebase- name: bytebase- sources:- - https://github.com/bytebase/bytebase- type: application- urls:- - bytebase-1.0.0.tgz- version: 1.0.0- - apiVersion: v2- created: "2022-11-04T10:24:46.708273+08:00"- description: Safe database schema change and version control for DevOps teams.- digest: e625364c490607affda669a8145393429335ce18f0250c4c2fffe22d8997f703- home: https://bytebase.com/- icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/assets/logo-full.svg- maintainers:- - email: [email protected]- name: Bytebase- name: bytebase- sources:- - https://github.com/bytebase/bytebase- type: application- urls:- - bytebase-0.0.1.tgz- version: 0.0.1-generated: "2022-11-04T10:24:46.70735+08:00"diff --git a/docs/openapi.md b/docs/openapi.mdindex 6320d484d3..89bb82e364 100644--- a/docs/openapi.md+++ b/docs/openapi.md@@ -6,17 +6,18 @@ Bytebase OpenAPI implements the OpenAPI specification with Swagger.### Required tools-* [`swag`](https://github.com/swaggo/swag) for the Swagger command line.-* [`echo-swagger`](https://github.com/swaggo/echo-swagger) Swagger middleware for echo.+- [`swag`](https://github.com/swaggo/swag) for the Swagger command line.+- [`echo-swagger`](https://github.com/swaggo/echo-swagger) Swagger middleware for echo.### Comment for OpenAPIs1. Add general API annotations in `./server/server.go`.2. Add API operation annotations in your controller code.-> Note: you need to comment for a specific controller function, otherwise the swagger cannot extract the comment as docs. For example:+> **Note**+> You need to comment for a specific controller function, otherwise the swagger cannot extract the comment as docs. For example:-* ❌ Incorrect+❌ Incorrect```go// Swagger doc (cannot work)@@ -29,7 +30,7 @@ e.GET("/healthz", func(c echo.Context) error {})```-* ✅ Correct+✅ Correct```go// Swagger doc (this can work)diff --git a/docs/testing.md b/docs/testing.mdindex 6845042cfc..e3b8067e81 100644--- a/docs/testing.md+++ b/docs/testing.md@@ -15,4 +15,4 @@ t ./...t TestName```-For every PR, there is GitHub action to run all integration test. If there is any failure, you can use keyword "FAIL:" to find the failed test and run the test on local workstation to troubleshoot issues.\ No newline at end of file+For every PR, there is GitHub action to run all integration test. If there is any failure, you can use keyword `FAIL:` to find the failed test and run the test on local workstation to troubleshoot issues.