From 3c32136100dda3b357f8dd1db25204e498ee6b23 Mon Sep 17 00:00:00 2001 From: Niraj Tolia Date: Wed, 23 Nov 2022 13:07:32 -0800 Subject: [PATCH] Prep for docs versioning (#1598) ## Description - Format config for consistency - Use relative paths in MD - Use absolute paths for imports ## Type of change - [x] :sunflower: Feature - [x] :world_map: Documentation --- ...rso-announcement-free-backup-for-microsoft-365.md | 2 +- docs/docs/setup/m365_access.md | 12 ++++++------ docs/docusaurus.config.js | 6 +++++- docs/src/pages/index.js | 2 +- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/blog/2022-11-16-corso-announcement-free-backup-for-microsoft-365.md b/docs/blog/2022-11-16-corso-announcement-free-backup-for-microsoft-365.md index 630d76f6c..73bcca8b5 100644 --- a/docs/blog/2022-11-16-corso-announcement-free-backup-for-microsoft-365.md +++ b/docs/blog/2022-11-16-corso-announcement-free-backup-for-microsoft-365.md @@ -5,7 +5,7 @@ authors: nica tags: [corso, microsoft 365] --- -![Office desk](/img/blog/office_desk.jpg) +![Office desk](../static/img/blog/office_desk.jpg) Have you had it with Google sheets? So have I. Excel is my home. It’s where I write all my best formulae. And what about PowerPoint? The way it just finds stock photos for you? The automatic ‘alternative designs for this slide’ diff --git a/docs/docs/setup/m365_access.md b/docs/docs/setup/m365_access.md index ea2e8b9ac..4ca8f656e 100644 --- a/docs/docs/setup/m365_access.md +++ b/docs/docs/setup/m365_access.md @@ -25,7 +25,7 @@ AD application. From the list of [Azure services](https://portal.azure.com/#allservices), select **Azure Active Directory → App Registrations → New Registration** -![Registering a new application](/img/m365app_create_new.png) +![Registering a new application](../../static/img/m365app_create_new.png) ### Configure basic settings @@ -36,14 +36,14 @@ Next, configure the following: * Skip the **Redirect URI** option * Click **Register** at the bottom of the screen -![Configuring the application](/img/m365app_configure.png) +![Configuring the application](../../static/img/m365app_configure.png) ### Configure required permissions Within the new application (`CorsoApp` in the below diagram), select **API Permissions → Add a permission** from the management panel. -![Adding application permissions](/img/m365app_permissions.png) +![Adding application permissions](../../static/img/m365app_permissions.png) Select the following permissions from **Microsoft API → Microsoft Graph → Application Permissions** and then click **Add permissions**. @@ -63,7 +63,7 @@ then click **Add permissions**. Finally, grant admin consent to this application. This step is required even if the user that created the application is an Microsoft 365 admin. -![Granting administrator consent](/img/m365app_consent.png) +![Granting administrator consent](../../static/img/m365app_consent.png) ## Export application credentials @@ -74,7 +74,7 @@ as environment variables. To view the tenant and client ID, select Overview from the app management panel. -![Obtaining Tenant and Client IDs](/img/m365app_ids.png) +![Obtaining Tenant and Client IDs](../../static/img/m365app_ids.png) Copy the client and tenant IDs and export them into the following environment variables. @@ -112,7 +112,7 @@ management panel. Click **New Client Secret** under **Client secrets** and follow the instructions to create a secret. -![Obtaining the Azure client secrete](/img/m365app_secret.png) +![Obtaining the Azure client secrete](../../static/img/m365app_secret.png) After creating the secret, immediately copy the secret **Value** because it won't be available later. Export it as an environment variable. diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 3cb93f2a4..463e17f14 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -84,7 +84,11 @@ const config = { position: 'left', label: 'Docs', }, - {to: '/blog', label: 'Blog', position: 'left'}, + { + to: '/blog', + label: 'Blog', + position: 'left' + }, { href: 'https://github.com/alcionai/corso', label: 'GitHub', diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index 8618336e1..9777020dd 100644 --- a/docs/src/pages/index.js +++ b/docs/src/pages/index.js @@ -1,6 +1,6 @@ import React from "react"; import Layout from "@theme/Layout"; -import { MainComp } from "../components/parts/MainComp"; +import { MainComp } from "@site/src/components/parts/MainComp"; export default function Home() { return (