From 37737827495bf37f73ab084f0fcf812eaf2375bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3jcik?= Date: Wed, 17 Jul 2024 02:09:46 +0200 Subject: [PATCH] fixup --- scripts/createSnippetDefenition.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/createSnippetDefenition.ps1 b/scripts/createSnippetDefenition.ps1 index 86bc392..4b7f2f2 100644 --- a/scripts/createSnippetDefenition.ps1 +++ b/scripts/createSnippetDefenition.ps1 @@ -48,13 +48,13 @@ foreach ($command in $allCommands) { $commandSnippets.Add($commandTitle, $commandClass) - $commandUrl = $command.FullName.Split("cli-microsoft365")[1] + $commandUrl = $command.FullName.Split("cli-microsoft365\docs")[1] $commandUrl = $commandUrl.Replace('\', '/') - $commandDocsUrl = $commandUrl.Replace('docs/docs/', '') + $commandDocsUrl = $commandUrl.Replace('docs/', '') $commandDocsUrl = $commandDocsUrl.Replace('.mdx', '') $commands += [pscustomobject]@{ name = "$commandTitle"; - url = "https://raw.githubusercontent.com/pnp/cli-microsoft365/main$commandUrl"; + url = "https://raw.githubusercontent.com/pnp/cli-microsoft365/main/docs$commandUrl"; docs = "https://pnp.github.io/cli-microsoft365$commandDocsUrl" } }