2021-03-08 15:39:49 -08:00
|
|
|
const fs = require("fs");
|
|
|
|
|
|
|
|
function list_ids_in_directory(directory) {
|
2021-05-11 11:17:53 -07:00
|
|
|
const files = fs.readdirSync(`../${directory}`).sort();
|
2021-03-08 15:39:49 -08:00
|
|
|
let ids = [];
|
|
|
|
for (const name of files) {
|
|
|
|
if (fs.lstatSync(`../${directory}/${name}`).isDirectory()) {
|
|
|
|
// Recurse into the directory.
|
|
|
|
const inner_ids = list_ids_in_directory(`${directory}/${name}`);
|
|
|
|
ids = ids.concat(inner_ids);
|
|
|
|
} else {
|
|
|
|
if (name.endsWith(".md")) {
|
2021-05-11 11:17:53 -07:00
|
|
|
const slug = name.replace(/\.md$/, "");
|
|
|
|
let id = `${directory}/${slug}`;
|
|
|
|
if (id.match(/\/\d+-.+/)) {
|
|
|
|
id = id.replace(/\/\d+-/, "/");
|
|
|
|
}
|
2021-03-08 15:39:49 -08:00
|
|
|
ids.push(id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ids;
|
|
|
|
}
|
|
|
|
|
2021-07-28 14:38:13 -07:00
|
|
|
// note: to handle errors where you don't want a markdown file in the sidebar, add it as a comment.
|
|
|
|
// this will fix errors like `Error: File not accounted for in sidebar: ...`
|
2021-03-05 00:12:12 -08:00
|
|
|
module.exports = {
|
|
|
|
// users
|
|
|
|
// architects
|
|
|
|
// modelers
|
|
|
|
// developers
|
|
|
|
// operators
|
|
|
|
|
|
|
|
overviewSidebar: {
|
|
|
|
DataHub: [
|
|
|
|
"README",
|
2021-06-30 16:50:03 -07:00
|
|
|
// "docs/faq", // hide from sidebar: out of date
|
2021-03-05 00:12:12 -08:00
|
|
|
"docs/features",
|
|
|
|
"docs/roadmap",
|
|
|
|
"docs/CONTRIBUTING",
|
|
|
|
"docs/demo",
|
2021-05-25 18:51:24 -07:00
|
|
|
"docs/saas",
|
2021-06-29 10:41:44 -07:00
|
|
|
"releases",
|
2021-03-05 00:12:12 -08:00
|
|
|
],
|
|
|
|
"Getting Started": [
|
|
|
|
// Serves as user guides.
|
|
|
|
"docs/quickstart",
|
|
|
|
"docs/debugging",
|
2021-04-05 19:11:28 -07:00
|
|
|
"metadata-ingestion/README",
|
2021-03-05 00:12:12 -08:00
|
|
|
],
|
|
|
|
Architecture: [
|
|
|
|
"docs/architecture/architecture",
|
|
|
|
"docs/architecture/metadata-ingestion",
|
2021-03-15 22:29:11 -07:00
|
|
|
//"docs/what/gma",
|
2021-03-05 00:12:12 -08:00
|
|
|
"docs/architecture/metadata-serving",
|
2021-03-15 22:29:11 -07:00
|
|
|
//"docs/what/gms",
|
2021-03-05 00:12:12 -08:00
|
|
|
],
|
|
|
|
"Metadata Modeling": [
|
2021-06-03 13:24:33 -07:00
|
|
|
"docs/modeling/metadata-model",
|
|
|
|
"docs/modeling/extending-the-metadata-model",
|
2021-03-05 00:12:12 -08:00
|
|
|
// TODO: change the titles of these, removing the "What is..." portion from the sidebar"
|
2021-06-03 13:24:33 -07:00
|
|
|
// "docs/what/entity",
|
|
|
|
// "docs/what/aspect",
|
|
|
|
// "docs/what/urn",
|
|
|
|
// "docs/what/relationship",
|
|
|
|
// "docs/what/search-document",
|
|
|
|
// "docs/what/snapshot",
|
|
|
|
// "docs/what/delta",
|
|
|
|
// "docs/what/mxe",
|
2021-03-05 00:12:12 -08:00
|
|
|
],
|
|
|
|
"Developer Guides": [
|
|
|
|
// TODO: the titles of these should not be in question form in the sidebar
|
|
|
|
"docs/developers",
|
|
|
|
"docs/docker/development",
|
2021-05-24 12:23:03 -07:00
|
|
|
"metadata-ingestion/adding-source",
|
2021-06-14 17:08:50 -07:00
|
|
|
"metadata-ingestion/s3-ingestion",
|
2021-07-28 14:38:13 -07:00
|
|
|
//"metadata-ingestion/examples/transforms/README"
|
|
|
|
"metadata-ingestion/transformers",
|
2021-06-03 13:24:33 -07:00
|
|
|
//"docs/what/graph",
|
|
|
|
//"docs/what/search-index",
|
|
|
|
//"docs/how/add-new-aspect",
|
|
|
|
//"docs/how/build-metadata-service",
|
|
|
|
//"docs/how/graph-onboarding",
|
|
|
|
//"docs/demo/graph-onboarding",
|
2021-07-02 06:31:01 -07:00
|
|
|
"docs/how/auth/jaas",
|
|
|
|
"docs/how/auth/sso/configure-oidc-react",
|
|
|
|
"docs/how/auth/sso/configure-oidc-react-google",
|
|
|
|
"docs/how/auth/sso/configure-oidc-react-okta",
|
2021-06-30 16:49:02 -07:00
|
|
|
"docs/how/restore-indices",
|
2021-07-29 15:12:30 -07:00
|
|
|
"docs/how/extract-container-logs",
|
2021-07-29 20:04:40 -07:00
|
|
|
"docs/how/delete-metadata",
|
2021-06-18 16:26:39 -07:00
|
|
|
"datahub-web-react/src/app/analytics/README",
|
2021-07-30 17:41:03 -07:00
|
|
|
"metadata-ingestion/developing",
|
2021-03-05 00:12:12 -08:00
|
|
|
],
|
|
|
|
Components: [
|
|
|
|
"datahub-web-react/README",
|
|
|
|
"datahub-frontend/README",
|
|
|
|
"datahub-graphql-core/README",
|
|
|
|
"gms/README",
|
|
|
|
"datahub-gms-graphql-service/README",
|
|
|
|
// "metadata-jobs/README",
|
|
|
|
"metadata-jobs/mae-consumer-job/README",
|
|
|
|
"metadata-jobs/mce-consumer-job/README",
|
|
|
|
],
|
|
|
|
"Advanced Guides": [
|
2021-06-03 13:24:33 -07:00
|
|
|
"docs/advanced/no-code-modeling",
|
2021-03-05 00:12:12 -08:00
|
|
|
"docs/advanced/aspect-versioning",
|
2021-03-18 19:16:44 -07:00
|
|
|
"docs/advanced/es-7-upgrade",
|
2021-03-05 00:12:12 -08:00
|
|
|
"docs/advanced/high-cardinality",
|
|
|
|
"docs/how/scsi-onboarding-guide",
|
2021-06-03 13:24:33 -07:00
|
|
|
"docs/advanced/no-code-upgrade",
|
2021-07-02 20:19:33 -07:00
|
|
|
"docs/how/migrating-graph-service-implementation",
|
2021-07-30 17:41:03 -07:00
|
|
|
"docs/advanced/mcp-mcl",
|
2021-03-05 00:12:12 -08:00
|
|
|
// WIP "docs/advanced/backfilling",
|
|
|
|
// WIP "docs/advanced/derived-aspects",
|
|
|
|
// WIP "docs/advanced/entity-hierarchy",
|
|
|
|
// WIP "docs/advanced/partial-update",
|
|
|
|
// WIP "docs/advanced/pdl-best-practices",
|
|
|
|
],
|
|
|
|
Deployment: [
|
|
|
|
"docs/how/kafka-config",
|
|
|
|
"docker/README",
|
2021-07-08 19:27:19 -07:00
|
|
|
"docs/deploy/kubernetes",
|
2021-06-03 13:24:33 -07:00
|
|
|
"docker/datahub-upgrade/README",
|
2021-05-26 21:37:37 -07:00
|
|
|
"docs/deploy/aws",
|
2021-06-25 06:39:46 -07:00
|
|
|
"docs/deploy/gcp",
|
2021-03-05 00:12:12 -08:00
|
|
|
],
|
|
|
|
Community: [
|
|
|
|
"docs/slack",
|
|
|
|
"docs/links",
|
|
|
|
"docs/townhalls",
|
|
|
|
"docs/townhall-history",
|
|
|
|
"docs/CODE_OF_CONDUCT",
|
|
|
|
"docs/rfc",
|
|
|
|
{
|
2021-03-08 15:39:49 -08:00
|
|
|
RFCs: list_ids_in_directory("docs/rfc/active"),
|
2021-03-05 00:12:12 -08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|