From 96261a4a4446b6054d8921d0143f374f2f1a6907 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 9 Oct 2024 03:55:57 +0000 Subject: [PATCH] docs: PSJekyll.Site.get/set_Domain ( Fixes #61, Fixes #62 ) Adding examples --- PSJekyll.types.ps1xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PSJekyll.types.ps1xml b/PSJekyll.types.ps1xml index 5f77d39..8d8ccfb 100644 --- a/PSJekyll.types.ps1xml +++ b/PSJekyll.types.ps1xml @@ -813,6 +813,8 @@ foreach ($arg in $unrolledArguments) { Gets the domain name of the Jekyll site. This can be provided by a CNAME file in the root of the site. +.EXAMPLE + $PSJekyll.CurrentSite.Domain #> $cNamePath = Join-Path $this.Directory "CNAME" if (Test-Path $cNamePath) { @@ -827,6 +829,10 @@ if (Test-Path $cNamePath) { Sets the domain name of the Jekyll site. This will create a CNAME file in the root of the site. + + This will also attempt to resolve the domain name to ensure it is valid, and will write a warning if it is not. +.EXAMPLE + $PSJekyll.CurrentSite.Domain = 'psjekyll.powershellweb.com' #> param([string]$cname) $cNamePath = Join-Path $this.Directory "CNAME"