Skip to content

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

fix: missing assets for api website (#15482)

boojack6c766eeadb01
diff --git a/docs/api/README.md b/docs/api/README.md
new file mode 100644
index 0000000000..2b78a38b64
--- /dev/null
+++ b/docs/api/README.md
@@ -0,0 +1 @@
+The public assets of <https://api.bytebase.com>
diff --git a/docs/api/favicon.png b/docs/api/favicon.png
new file mode 100644
index 0000000000..d7e08acf4b
Binary files /dev/null and b/docs/api/favicon.png differ
diff --git a/docs/api/index.html b/docs/api/index.html
new file mode 100644
index 0000000000..d85386bde1
--- /dev/null
+++ b/docs/api/index.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Bytebase API Reference</title>
+ <link rel="icon" href="favicon.png" type="image/x-icon">
+ <meta charset="utf-8" />
+ <meta
+ name="viewport"
+ content="width=device-width, initial-scale=1" />
+ </head>
+ <body>
+ <script
+ id="api-reference"
+ data-url="https://raw.githubusercontent.com/bytebase/bytebase/main/proto/gen/grpc-doc/openapi.yaml"></script>
+ <script>
+ var configuration = {
+ theme: 'moon',
+ metaData: {
+ title: 'Bytebase API Reference',
+ description: 'Bytebase API Reference',
+ ogDescription: 'Bytebase API Reference',
+ ogTitle: 'Bytebase API Reference',
+ ogImage: 'https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/banner.webp',
+ twitterCard: 'summary_large_image',
+ }
+ }
+
+ var apiReference = document.getElementById('api-reference')
+ apiReference.dataset.configuration = JSON.stringify(configuration)
+ </script>
+ <script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
+ </body>
+</html>
\ No newline at end of file