Skip to content

Commit

Permalink
fix: make next as default version & create redirection (#10309)
Browse files Browse the repository at this point in the history
Co-authored-by: Harshal Sheth <hsheth2@gmail.com>
  • Loading branch information
yoonhyejin and hsheth2 authored Apr 19, 2024
1 parent 95c4515 commit f9dbe98
Show file tree
Hide file tree
Showing 8 changed files with 2,434 additions and 2,229 deletions.
20 changes: 20 additions & 0 deletions docs-website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,13 @@ module.exports = {
"@docusaurus/preset-classic",
{
docs: {
lastVersion: "current",
versions: {
current: {
label: "Next",
banner: 'none',
},
},
path: "genDocs",
sidebarPath: require.resolve("./sidebars.js"),
...(!isSaas && {
Expand Down Expand Up @@ -303,6 +310,19 @@ module.exports = {
],
],
plugins: [
[
'@docusaurus/plugin-client-redirects',
{
createRedirects(existingPath) {
if (existingPath.includes('/docs')) {
return [
existingPath.replace('/docs', '/docs/next'),
];
}
return undefined; // Return a falsy value: no redirect created
},
},
],
["@docusaurus/plugin-ideal-image", { quality: 100, sizes: [320, 640, 1280, 1440, 1600] }],
"docusaurus-plugin-sass",
[
Expand Down
4 changes: 2 additions & 2 deletions docs-website/filterTagIndexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,9 @@
}
},
{
"Path": "docs/generated/ingestion/sources/presto-on-hive",
"Path": "docs/generated/ingestion/sources/hive-metastore",
"imgPath": "img/logos/platforms/presto.svg",
"Title": "Presto on Hive",
"Title": "Hive Metastore",
"Description": "Presto on Hive is a data tool that allows users to query and analyze large datasets stored in Hive using SQL-like syntax.",
"tags": {
"Platform Type": "Datastore",
Expand Down
1 change: 1 addition & 0 deletions docs-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@docusaurus/core": "^2.4.1",
"@docusaurus/plugin-client-redirects": "2.4.3",
"@docusaurus/plugin-content-docs": "2.4.1",
"@docusaurus/plugin-ideal-image": "^2.4.1",
"@docusaurus/preset-classic": "^2.4.1",
Expand Down
2 changes: 1 addition & 1 deletion docs-website/src/pages/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Redirect } from '@docusaurus/router';

const Home = () => {
return <Redirect to="/docs/next" />;
return <Redirect to="/docs/features" />;
};

export default Home;
4,630 changes: 2,407 additions & 2,223 deletions docs-website/yarn.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/features.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
hide_title: true
slug: /
slug: /features
---


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import FeatureAvailability from '@site/src/components/FeatureAvailability';
# Configuring User/Group/Roles provisioning from MS Entra to DataHub

1. **Generate Personal Access Token**:
Generate a personal access token from [DataHub](https://datahubproject.io/docs/next/authentication/personal-access-tokens/#creating-personal-access-tokens).
Generate a personal access token from [DataHub](../../docs/authentication/personal-access-tokens.md#creating-personal-access-tokens).

2. **Integrate DataHub With MS Entra**: Follow steps [Integrate your SCIM endpoint with the Microsoft Entra provisioning service](https://learn.microsoft.com/en-gb/entra/identity/app-provisioning/use-scim-to-provision-users-and-groups#integrate-your-scim-endpoint-with-the-microsoft-entra-provisioning-service) to integrate DataHub SCIM endpoint into MS Entra.

Expand Down
2 changes: 1 addition & 1 deletion metadata-ingestion-modules/airflow-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ See [the DataHub Airflow docs](https://datahubproject.io/docs/lineage/airflow) f

## Developing

See the [developing docs](https://datahubproject.io/docs/next/metadata-ingestion/developing/).
See the [developing docs](../../metadata-ingestion/developing.md).

0 comments on commit f9dbe98

Please sign in to comment.