Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[MINOR] Fix some typos and remove unnecessary scripts (#1087)

Jerry Shao0aeebc074ecf
diff --git a/docs/README.md b/docs/README.md
deleted file mode 100644
index 193a530bc0..0000000000
--- a/docs/README.md
+++ /dev/null
@@ -1,42 +0,0 @@
----
-title: "Gravitino Documentation"
-date: 2023-10-03T09:03:20-08:00
-license: "Copyright 2023 Datastrato Pvt Ltd.
-This software is licensed under the Apache License version 2."
----
-## Gravitino documentation
-
-## Launch Gravitino document website
-
-Execute `./launch-docs-website.sh` scripts. The script will create the Gravitino document website locally following these steps:
-
-1. Create a `build` directory within the `docs` directory.
-2. Automatically download the [Hugo](https://github.com/gohugoio/hugo) binary executable file into the `build` directory.
-3. Use the `hugo new site web` command to create the website project within the `build` directory.
-4. Copy all markdown files into `web/content/docs` to generate the HTML for the document website using Hugo.
-5. Copy the entire assets directory into `web/static` to include the images referenced in the document website HTML.
-6. Automatically replace the Markdown embedded image addresses with Hugo website absolute paths.
- > This is necessary because Markdown embedded images use relative paths, whereas Hugo website images require absolute paths.
- > Replace `![](assets/` with `![](/assets/` in all markdown files.
-7. Execute `hugo server` to launch the website.
-8. Open `http://localhost:1313` in your browser to view the Gravitino document website.
-
-## Add or modify a document
-
-To add a new document to the Gravitino website, follow these steps:
-
-1. Create a new markdown file in the `docs` directory.
-2. For the markdown file, include the following header at the beginning as `Hugo` uses it to create the website links list.
-
- ```text
- ---
- title: "Article Title"
- date: Writing date
- license: "Copyright 2023 Datastrato Pvt Ltd.
- This software is licensed under the Apache License version 2."
- ---
- ```
-
-3. To insert an image into a markdown file, you must save all the referenced images in the `docs/assets` directory.
- Additionally, you must use the following format: `![](assets/...`
-4. Execute `./launch-docs-website.sh update` scripts to update the Gravitino document website.
diff --git a/docs/docker-image-details.md b/docs/docker-image-details.md
index 8f7922e30f..0d90fb3d16 100644
--- a/docs/docker-image-details.md
+++ b/docs/docker-image-details.md
@@ -2,7 +2,8 @@
title: "Docker image details"
slug: /docker-image-details
keyword: docker
-license: Copyright 2023 Datastrato Pvt Ltd. This software is licensed under the Apache License version 2.
+license: "Copyright 2023 Datastrato Pvt Ltd.
+This software is licensed under the Apache License version 2."
---
# User Docker images
diff --git a/docs/launch-docs-website.sh b/docs/launch-docs-website.sh
deleted file mode 100755
index 9437857a7e..0000000000
--- a/docs/launch-docs-website.sh
+++ /dev/null
@@ -1,116 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2023 Datastrato Pvt Ltd.
-# This software is licensed under the Apache License version 2.
-#
-set -ex
-bin="$(dirname "${BASH_SOURCE-$0}")"
-bin="$(cd "${bin}">/dev/null; pwd)"
-
-USAGE="Usage: launch-docs-website.sh [update]"
-
-OS=$(uname -s)
-if [ "$OS" == "Darwin" ]; then
- HUGO_OS_NAME="darwin-universal"
-elif [[ "$OS" == "Linux" ]]; then
- HUGO_OS_NAME="linux-amd64"
-else
- echo "Currently only support macOS or Linux."
- exit 1
-fi
-
-# Download Hugo
-HUGO_VERSION="0.119.0"
-HUGO_PACKAGE_NAME="hugo_${HUGO_VERSION}_${HUGO_OS_NAME}.tar.gz"
-HUGO_DOWNLOAD_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_PACKAGE_NAME}"
-
-# Because Markdown embedded images are relative paths,
-# Hugo website images are absolute paths.
-function hugo_image_path_process() {
- for file in ${1}/*; do
- if [[ -d ${file} ]]; then
- hugo_image_path_process "${file}"
- elif [[ -f ${file} ]]; then
- # Replace `![](assets/` with `![](/assets/`, so that the images can be displayed correctly in the Hugo website.
- # macOS's sed is not GNU standard sed, it's -i option needs to be followed by a string. So
- # using if...else to distinguish between macOS and Linux.
- if [[ "$OS" == "Darwin" ]]; then
- sed -i '' 's/!\[\](assets\//!\[\](\/assets\//g' ${file}
- elif [[ "$OS" == 'Linux' ]]; then
- sed -i 's/!\[\](assets\//!\[\](\/assets\//g' ${file}
- else
- echo "Currently only support macOS or Linux."
- exit 1
- fi
- fi
- done
-}
-
-# Copy all Markdown files to the Hugo website docs directory
-function copy_docs() {
- # Create a new Hugo website docs directory
- if [[ ! -d ${bin}/build/web/content/docs ]]; then
- mkdir -p ${bin}/build/web/content/docs
- fi
-
- # Copy all markdown files to the Hugo website docs directory
- # 1. Copy all root directory markdown files
- rsync -av --exclude='README.md' ${bin}/*.md ${bin}/build/web/content/docs
-
- # 2. Copy all subdirectory markdown files
- subDirs=$(find "${bin}" -type d -mindepth 1 -maxdepth 1)
- for subDir in ${subDirs}; do
- if [[ ${subDir} != ${bin}/build && ${subDir} != ${bin}/assets ]]; then
- cp -r ${subDir} ${bin}/build/web/content/docs
- fi
- done
-
- # 3. Copy all assets to the Hugo website static directory
- cp -r "${bin}/assets" "${bin}/build/web/static"
-
- # Replace the Markdown embedded images with Hugo website absolute paths
- hugo_image_path_process "${bin}/build/web/content/docs"
-}
-
-# Launch the Hugo website
-function launch_website() {
- # Prepare download packages
- if [[ ! -d "${bin}/build" ]]; then
- mkdir -p "${bin}/build"
- fi
-
- if [ ! -f "${bin}/build/hugo" ]; then
- wget -q -P "${bin}/build" ${HUGO_DOWNLOAD_URL}
- tar -xzf "${bin}/build/${HUGO_PACKAGE_NAME}" -C "${bin}/build"
- rm -rf "${bin}/build/${HUGO_PACKAGE_NAME}"
- fi
-
- # Remove the old Hugo website
- cd ${bin}/build
- rm -rf ${bin}/build/web
-
- # Create a new Hugo website
- ${bin}/build/hugo new site web
-
- # Setting the Hugo theme
- cd ${bin}/build/web
- git clone https://github.com/datastratolabs/gohugo-theme-ananke.git themes/ananke
-
- # Set the Hugo website configuration
- echo "languageCode = 'en-us'
- title = 'Gravitino Docs'
- theme = 'ananke'" > hugo.toml
-
- copy_docs
-
- # Start the Hugo server
- ${bin}/build/hugo server --buildDrafts
-}
-
-if [[ "$1" == "update" ]]; then
- copy_docs
-elif [[ "$1" != "" ]]; then
- echo ${USAGE}
-else
- launch_website
-fi
\ No newline at end of file
diff --git a/docs/overview.md b/docs/overview.md
index 520febb109..57d583eb53 100644
--- a/docs/overview.md
+++ b/docs/overview.md
@@ -34,7 +34,7 @@ Gravitino aims to provide several key features:
### Unified metadata management and governance
Gravitino abstracts the unified metadata models and APIs for different kinds of metadata sources.
-For example, relational metadata models for tabular data, like Hive, MySQL, PostgresSQL, etc.
+For example, relational metadata models for tabular data, like Hive, MySQL, PostgreSQL, etc.
File metadata model for all the unstructured data, like HDFS, S3, and others.
Besides the unified metadata models, Gravitino also provides a unified metadata governance layer
@@ -44,8 +44,8 @@ others.
### Direct metadata management
Unlike the traditional metadata management systems, which need to collect the metadata
-actively or passively from underlying systems, Gravitino manages these systems directly
-the metadata directly. It provides a set of connectors to connect to different metadata sources,
+actively or passively from underlying systems, Gravitino manages these systems directly.
+It provides a set of connectors to connect to different metadata sources,
the changes in Gravitino will directly reflect in the underlying systems, and vice versa.
### Geo-distribution support (WIP)
diff --git a/docs/quick_start.md b/docs/quick_start.md
deleted file mode 100644
index 4430a289ad..0000000000
--- a/docs/quick_start.md
+++ /dev/null
@@ -1,22 +0,0 @@
----
-title: "Gravitino Quick Start"
-date: 2023-10-20T17:00:00-11:00
-license: "Copyright 2023 Datastrato Pvt Ltd.
-This software is licensed under the Apache License version 2."
----
-
-## What is Gravitino?
-
-Gravitino is a high-performance, geo-distributed, and federated metadata lake. It manages the metadata directly in different sources, types, and regions. It also provides users unified access to the metadata for both data and AI assets.
-
-## Where to get Gravitino?
-
-You can build from [GitHub](https://github.com/datastrato/gravitino), see [how to build](/docs/how-to-build) for instructions, or use our docker images at [Datastrato](https://hub.docker.com/u/datastrato) DockerHub repository. You can also stop and start a local Gravitino server via ``bin/gravitino.sh start`` and ``bin/gravitino.sh stop`` in a Gravitino distribution, see [how to build](/docs/how-to-build) for more instructions.
-
-## Where is the documentation?
-
-Gravitino has a local documentation website that you can view by following the instructions in ``README.md``.
-
-## How to contribute to Gravitino?
-
-Gravitino is open source software under the Apache License version 2, contributions to the repository in [GitHub](https://github.com/datastrato/gravitino) are welcome.