From 2bc0a781a63fd4aed50080ab453bcbd3ec0570bd Mon Sep 17 00:00:00 2001
From: Hyejin Yoon <0327jane@gmail.com>
Date: Sat, 22 Apr 2023 10:36:10 +0900
Subject: [PATCH] fix: refactor toc (#7862)
---
docs-website/sidebars.js | 313 ++++++++----------
docs-website/src/pages/docs/index.js | 8 +-
docs-website/src/styles/global.scss | 15 +
docs/enrich-metadata.md | 14 -
docs/get-started-with-datahub.md | 23 --
docs/quickstart.md | 9 +
docs/saas.md | 2 +
docs/troubleshooting/build.md | 42 +++
.../general.md} | 7 +-
.../quickstart.md} | 110 +++++-
metadata-ingestion/README.md | 6 +
11 files changed, 321 insertions(+), 228 deletions(-)
delete mode 100644 docs/enrich-metadata.md
delete mode 100644 docs/get-started-with-datahub.md
create mode 100644 docs/troubleshooting/build.md
rename docs/{faq-using-datahub.md => troubleshooting/general.md} (68%)
rename docs/{debugging.md => troubleshooting/quickstart.md} (81%)
diff --git a/docs-website/sidebars.js b/docs-website/sidebars.js
index f182585b0c..a78c2db6fb 100644
--- a/docs-website/sidebars.js
+++ b/docs-website/sidebars.js
@@ -9,65 +9,43 @@ module.exports = {
overviewSidebar: [
{
- "What is DataHub?": [
+ label: "Getting Started",
+ type: "category",
+ collapsed: true,
+ items: [
// By the end of this section, readers should understand the core use cases that DataHub addresses,
// target end-users, high-level architecture, & hosting options
-
- "docs/features",
- "docs/what-is-datahub/datahub-concepts",
+ {
+ type: "doc",
+ label: "Introduction",
+ id: "docs/features",
+ },
+ {
+ type: "doc",
+ label: "Quickstart",
+ id: "docs/quickstart",
+ },
{
type: "link",
- label: "See Datahub In Action",
+ label: "Demo",
href: "https://demo.datahubproject.io/",
},
- {
- Architecture: [
- "docs/architecture/architecture",
- "docs/components",
- "docs/architecture/metadata-ingestion",
- "docs/architecture/metadata-serving",
- ],
- },
+ "docs/what-is-datahub/datahub-concepts",
"docs/saas",
],
},
{
- type: "category",
- label: "Get Started",
- collapsed: false,
- // The goal of this section is to provide the bare-minimum steps required to:
- // - Get DataHub Running
- // - Optionally configure SSO
- // - Add/invite Users
- // - Create Polices & assign roles
- // - Ingest at least one source (ie. data warehouse)
- // - Understand high-level options for enriching metadata
- link: { type: "doc", id: "docs/get-started-with-datahub" },
- items: [
+ Integrations: [
+ // The purpose of this section is to provide a deeper understanding of how ingestion works.
+ // Readers should be able to find details for ingesting from all systems, apply transformers, understand sinks,
+ // and understand key concepts of the Ingestion Framework (Sources, Sinks, Transformers, and Recipes)
{
- "Self-Hosted DataHub": [
- "docs/quickstart",
- "docs/authentication/guides/add-users",
- ],
+ type: "doc",
+ label: "Introduction",
+ id: "metadata-ingestion/README",
},
{
- "Managed DataHub": [
- "docs/authentication/guides/add-users",
-
- {
- type: "doc",
- id: "docs/managed-datahub/saas-slack-setup",
- className: "saasOnly",
- },
- {
- type: "doc",
- id: "docs/managed-datahub/approval-workflows",
- className: "saasOnly",
- },
- ],
- },
- {
- "Ingestion Quickstart Guides": [
+ "Quickstart Guides": [
{
BigQuery: [
"docs/quick-ingestion-guides/bigquery/overview",
@@ -105,17 +83,6 @@ module.exports = {
},
],
},
- ],
- },
- {
- "Ingest Metadata": [
- // The purpose of this section is to provide a deeper understanding of how ingestion works.
- // Readers should be able to find details for ingesting from all systems, apply transformers, understand sinks,
- // and understand key concepts of the Ingestion Framework (Sources, Sinks, Transformers, and Recipes)
- {
- Overview: ["metadata-ingestion/README", "docs/ui-ingestion"],
- },
-
{
Sources: [
// collapse these; add push-based at top
@@ -171,73 +138,7 @@ module.exports = {
],
},
{
- type: "category",
- // The purpose of this section is to provide direction on how to enrich metadata when shift-left isn’t an option
- label: "Enrich Metadata",
- link: { type: "doc", id: "docs/enrich-metadata" },
- items: [
- "docs/domains",
- "docs/glossary/business-glossary",
- "docs/tags",
- "docs/lineage/lineage-feature-guide",
- ],
- },
-
- {
- type: "category",
- label: "Act on Metadata",
- link: { type: "doc", id: "docs/act-on-metadata" },
- items: [
- {
- "Actions Framework": [
- "docs/actions/README",
- "docs/actions/quickstart",
- "docs/actions/concepts",
- {
- Sources: [
- {
- type: "autogenerated",
- dirName: "docs/actions/sources",
- },
- ],
- },
- {
- Events: [
- {
- type: "autogenerated",
- dirName: "docs/actions/events",
- },
- ],
- },
- {
- Actions: [
- {
- type: "autogenerated",
- dirName: "docs/actions/actions",
- },
- ],
- },
- {
- Guides: [
- {
- type: "autogenerated",
- dirName: "docs/actions/guides",
- },
- ],
- },
- ],
- },
- {
- type: "doc",
- id: "docs/tests/metadata-tests",
- className: "saasOnly",
- },
- "docs/act-on-metadata/impact-analysis",
- ],
- },
-
- {
- "Deploy DataHub": [
+ Deployment: [
// The purpose of this section is to provide the minimum steps required to deploy DataHub to the vendor of your choosing
"docs/deploy/aws",
"docs/deploy/gcp",
@@ -247,6 +148,7 @@ module.exports = {
Authentication: [
"docs/authentication/README",
"docs/authentication/concepts",
+ "docs/authentication/guides/add-users",
{
"Frontend Authentication": [
"docs/authentication/guides/jaas",
@@ -290,9 +192,8 @@ module.exports = {
"docs/how/updating-datahub",
],
},
-
{
- "DataHub API": [
+ API: [
"docs/api/datahub-apis",
{
"GraphQL API": [
@@ -367,20 +268,16 @@ module.exports = {
],
},
{
- OpenAPI: [
- {
- label: "Usage Guide",
- type: "doc",
- id: "docs/api/openapi/openapi-usage-guide",
- },
- "docs/dev-guides/timeline",
- ],
+ type: "doc",
+ label: "OpenAPI",
+ id: "docs/api/openapi/openapi-usage-guide",
},
+ "docs/dev-guides/timeline",
{
- "Rest.li": [
+ "Rest.li API": [
{
type: "doc",
- label: "Rest.li API",
+ label: "Rest.li API Guide",
id: "docs/api/restli/restli-overview",
},
{
@@ -395,6 +292,20 @@ module.exports = {
},
],
},
+ {
+ "Python SDK": [
+ "metadata-ingestion/as-a-library",
+ {
+ "Python SDK Reference": [
+ {
+ type: "autogenerated",
+ dirName: "python-sdk",
+ },
+ ],
+ },
+ ],
+ },
+ "metadata-integration/java/as-a-library",
{
"Getting Started: APIs & SDKs": [
"docs/api/tutorials/modifying-dataset-tags",
@@ -408,31 +319,81 @@ module.exports = {
"docs/api/tutorials/modifying-dataset-custom-properties",
],
},
- ],
- },
-
- {
- Tools: [
- "docs/cli",
{
- SDKs: [
- "metadata-ingestion/as-a-library",
- "metadata-integration/java/as-a-library",
- ],
+ type: "category",
+ label: "Datahub CLI",
+ items: ["docs/cli", "docs/datahub_lite"],
},
{
- "Python SDK Reference": [
+ type: "category",
+ label: "Datahub Actions",
+ link: { type: "doc", id: "docs/act-on-metadata" },
+ items: [
+ "docs/actions/README",
+ "docs/actions/quickstart",
+ "docs/actions/concepts",
{
- type: "autogenerated",
- dirName: "python-sdk",
+ Sources: [
+ {
+ type: "autogenerated",
+ dirName: "docs/actions/sources",
+ },
+ ],
+ },
+ {
+ Events: [
+ {
+ type: "autogenerated",
+ dirName: "docs/actions/events",
+ },
+ ],
+ },
+ {
+ Actions: [
+ {
+ type: "autogenerated",
+ dirName: "docs/actions/actions",
+ },
+ ],
+ },
+ {
+ Guides: [
+ {
+ type: "autogenerated",
+ dirName: "docs/actions/guides",
+ },
+ ],
},
],
},
- "docs/datahub_lite",
],
},
{
- "Developer Guides": [
+ Features: [
+ "docs/ui-ingestion",
+ "docs/how/search",
+ "docs/schema-history",
+ // "docs/how/ui-tabs-guide",
+ "docs/domains",
+ "docs/glossary/business-glossary",
+ "docs/tags",
+ "docs/browse",
+ "docs/authorization/access-policies-guide",
+ "docs/features/dataset-usage-and-query-history",
+ "docs/posts",
+ "docs/sync-status",
+ "docs/architecture/stemming_and_synonyms",
+ "docs/lineage/lineage-feature-guide",
+ {
+ type: "doc",
+ id: "docs/tests/metadata-tests",
+ className: "saasOnly",
+ },
+ "docs/act-on-metadata/impact-analysis",
+ ],
+ },
+ {
+ Develop: [
// The purpose of this section is to provide developers & technical users with
// concrete tutorials for how to work with the DataHub CLI & APIs
{
@@ -450,6 +411,14 @@ module.exports = {
},
],
},
+ {
+ Architecture: [
+ "docs/architecture/architecture",
+ "docs/components",
+ "docs/architecture/metadata-ingestion",
+ "docs/architecture/metadata-serving",
+ ],
+ },
{
"Developing on DataHub": [
"docs/developers",
@@ -467,10 +436,14 @@ module.exports = {
},
],
},
- "docs/debugging",
- "docs/faq-using-datahub",
"docs/plugins",
-
+ {
+ Troubleshooting: [
+ "docs/troubleshooting/quickstart",
+ "docs/troubleshooting/build",
+ "docs/troubleshooting/general",
+ ],
+ },
{
Advanced: [
"metadata-ingestion/docs/dev_guides/reporting_telemetry",
@@ -488,27 +461,8 @@ module.exports = {
},
],
},
-
{
- "Feature Guides": [
- "docs/how/search",
- "docs/schema-history",
- // "docs/how/ui-tabs-guide",
- "docs/domains",
- "docs/glossary/business-glossary",
- "docs/tags",
- "docs/browse",
- "docs/authorization/access-policies-guide",
- "docs/features/dataset-usage-and-query-history",
- "docs/posts",
- "docs/sync-status",
- "docs/architecture/stemming_and_synonyms",
- "docs/lineage/lineage-feature-guide",
- ],
- },
-
- {
- "Join the Community": [
+ Community: [
"docs/slack",
"docs/townhalls",
"docs/townhall-history",
@@ -522,6 +476,16 @@ module.exports = {
"Managed DataHub": [
"docs/managed-datahub/managed-datahub-overview",
"docs/managed-datahub/welcome-acryl",
+ {
+ type: "doc",
+ id: "docs/managed-datahub/saas-slack-setup",
+ className: "saasOnly",
+ },
+ {
+ type: "doc",
+ id: "docs/managed-datahub/approval-workflows",
+ className: "saasOnly",
+ },
{
"Metadata Ingestion With Acryl": [
"docs/managed-datahub/metadata-ingestion-with-acryl/ingestion",
@@ -579,7 +543,6 @@ module.exports = {
id: "docs/managed-datahub/chrome-extension",
className: "saasOnly",
},
-
{
"Managed DataHub Release History": [
"docs/managed-datahub/release-notes/v_0_2_5",
diff --git a/docs-website/src/pages/docs/index.js b/docs-website/src/pages/docs/index.js
index 072d505ffc..53f6bcba5d 100644
--- a/docs-website/src/pages/docs/index.js
+++ b/docs-website/src/pages/docs/index.js
@@ -154,7 +154,7 @@ const quickLinkContent = [
title: "Get Started",
icon:
- -
diff --git a/docs/get-started-with-datahub.md b/docs/get-started-with-datahub.md deleted file mode 100644 index 9a7b79df97..0000000000 --- a/docs/get-started-with-datahub.md +++ /dev/null @@ -1,23 +0,0 @@ -# Get Started With DataHub - -These guides are focused on helping you get up and running with DataHub as quickly as possible. - -## Self-Hosted DataHub - -If you're looking to build and deploy DataHub youself, start here. - - -Get Started with Self-Hosted DataHub - - -## Managed DataHub - -[Acryl Data](https://www.acryldata.io/product) provides a fully managed, premium version of DataHub. - - -Get Started with Managed DataHub - diff --git a/docs/quickstart.md b/docs/quickstart.md index 39b1be77ac..076020036c 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -1,5 +1,14 @@ # DataHub Quickstart Guide +This guide provides instructions on deploying the open source DataHub locally. +If you're interested in a managed version, [Acryl Data](https://www.acryldata.io/product) provides a fully managed, premium version of DataHub. + + +Get Started with Managed DataHub + + ## Deploying DataHub To deploy a new instance of DataHub, perform the following steps. diff --git a/docs/saas.md b/docs/saas.md index 00c45af528..35dde5b1ca 100644 --- a/docs/saas.md +++ b/docs/saas.md @@ -10,3 +10,5 @@ Sign up for fully managed, hassle-free and secure SaaS service for DataHub, prov Sign up + +Refer to [Managed Datahub Exclusives](/docs/managed-datahub/managed-datahub-overview.md) for more information. \ No newline at end of file diff --git a/docs/troubleshooting/build.md b/docs/troubleshooting/build.md new file mode 100644 index 0000000000..112bcdc47e --- /dev/null +++ b/docs/troubleshooting/build.md @@ -0,0 +1,42 @@ +# Build Debugging Guide + +For when [Local Development](/docs/developers.md) did not work out smoothly. + +## Getting `Unsupported class file major version 57` + +You're probably using a Java version that's too new for gradle. Run the following command to check your Java version + +``` +java --version +``` + +While it may be possible to build and run DataHub using newer versions of Java, we currently only support [Java 11](https://openjdk.org/projects/jdk/11/) (aka Java 11). + +## Getting `cannot find symbol` error for `javax.annotation.Generated` + +Similar to the previous issue, please use Java 1.8 to build the project. +You can install multiple version of Java on a single machine and switch between them using the `JAVA_HOME` environment variable. See [this document](https://docs.oracle.com/cd/E21454_01/html/821-2531/inst_jdk_javahome_t.html) for more details. + +## `:metadata-models:generateDataTemplate` task fails with `java.nio.file.InvalidPathException: Illegal char <:> at index XX` or `Caused by: java.lang.IllegalArgumentException: 'other' has different root` error + +This is a [known issue](https://github.com/linkedin/rest.li/issues/287) when building the project on Windows due a bug in the Pegasus plugin. Please refer to [Windows Compatibility](/docs/developers.md#windows-compatibility). + +## Various errors related to `generateDataTemplate` or other `generate` tasks + +As we generate quite a few files from the models, it is possible that old generated files may conflict with new model changes. When this happens, a simple `./gradlew clean` should reosolve the issue. + +## `Execution failed for task ':metadata-service:restli-servlet-impl:checkRestModel'` + +This generally means that an [incompatible change](https://linkedin.github.io/rest.li/modeling/compatibility_check) was introduced to the rest.li API in GMS. You'll need to rebuild the snapshots/IDL by running the following command once + +``` +./gradlew :metadata-service:restli-servlet-impl:build -Prest.model.compatibility=ignore +``` + +## `java.io.IOException: No space left on device` + +This means you're running out of space on your disk to build. Please free up some space or try a different disk. + +## `Build failed` for task `./gradlew :datahub-frontend:dist -x yarnTest -x yarnLint` + +This could mean that you need to update your [Yarn](https://yarnpkg.com/getting-started/install) version diff --git a/docs/faq-using-datahub.md b/docs/troubleshooting/general.md similarity index 68% rename from docs/faq-using-datahub.md rename to docs/troubleshooting/general.md index 229e5795b4..32b4ba44cf 100644 --- a/docs/faq-using-datahub.md +++ b/docs/troubleshooting/general.md @@ -1,10 +1,11 @@ -# FAQ Using DataHub +# General Debugging Guide ## Logo for my platform is not appearing on the Home Page or search results Please see if either of these guides help you -- [Adding a custom Dataset Data Platform](./how/add-custom-data-platform.md) -- [DataHub CLI put platform command](./cli.md#put-platform) + +- [Adding a custom Dataset Data Platform](../how/add-custom-data-platform.md) +- [DataHub CLI put platform command](../cli.md#put-platform) ## How do I add dataset freshness indicator for datasets? diff --git a/docs/debugging.md b/docs/troubleshooting/quickstart.md similarity index 81% rename from docs/debugging.md rename to docs/troubleshooting/quickstart.md index 16e29c3b6b..64684c5ffa 100644 --- a/docs/debugging.md +++ b/docs/troubleshooting/quickstart.md @@ -1,10 +1,85 @@ # Quickstart Debugging Guide -For when [Quickstart](./quickstart.md) did not work out smoothly. +For when [Quickstart](/docs/quickstart.md) did not work out smoothly. + +## Common Problems + +