diff --git a/website/docs/quickstarts/bigquery-qs.md b/website/docs/guides/bigquery-qs.md similarity index 100% rename from website/docs/quickstarts/bigquery-qs.md rename to website/docs/guides/bigquery-qs.md diff --git a/website/docs/quickstarts/codespace-qs.md b/website/docs/guides/codespace-qs.md similarity index 100% rename from website/docs/quickstarts/codespace-qs.md rename to website/docs/guides/codespace-qs.md diff --git a/website/docs/quickstarts/databricks-qs.md b/website/docs/guides/databricks-qs.md similarity index 100% rename from website/docs/quickstarts/databricks-qs.md rename to website/docs/guides/databricks-qs.md diff --git a/website/docs/quickstarts/manual-install-qs.md b/website/docs/guides/manual-install-qs.md similarity index 100% rename from website/docs/quickstarts/manual-install-qs.md rename to website/docs/guides/manual-install-qs.md diff --git a/website/docs/quickstarts/redshift-qs.md b/website/docs/guides/redshift-qs.md similarity index 100% rename from website/docs/quickstarts/redshift-qs.md rename to website/docs/guides/redshift-qs.md diff --git a/website/docs/quickstarts/snowflake-qs.md b/website/docs/guides/snowflake-qs.md similarity index 100% rename from website/docs/quickstarts/snowflake-qs.md rename to website/docs/guides/snowflake-qs.md diff --git a/website/docs/quickstarts/starburst-galaxy-qs.md b/website/docs/guides/starburst-galaxy-qs.md similarity index 100% rename from website/docs/quickstarts/starburst-galaxy-qs.md rename to website/docs/guides/starburst-galaxy-qs.md diff --git a/website/plugins/buildQuickstartIndexPage/index.js b/website/plugins/buildQuickstartIndexPage/index.js index 4724478883a..da50e230dca 100644 --- a/website/plugins/buildQuickstartIndexPage/index.js +++ b/website/plugins/buildQuickstartIndexPage/index.js @@ -6,10 +6,13 @@ module.exports = function buildQuickstartIndexPage() { name: 'docusaurus-build-quickstart-index-page-plugin', async loadContent() { // Quickstart files directory - const quickstartDirectory = 'docs/quickstarts' + const quickstartDirectory = 'docs/guides' // Get all Quickstart files and content - const quickstartFiles = fs.readdirSync(quickstartDirectory) + const quickstartFiles = fs.readdirSync(quickstartDirectory, { withFileTypes: true }) + .filter(dirent => dirent.isFile()) + .map(dirent => dirent.name) + const quickstartData = quickstartFiles.reduce((arr, quickstartFile) => { const fileData = fs.readFileSync( @@ -53,7 +56,7 @@ module.exports = function buildQuickstartIndexPage() { // Build the quickstart index page addRoute({ - path: `/quickstarts`, + path: `/guides`, component: '@site/src/components/quickstartGuideList/index.js', modules: { // propName -> JSON file path