Skip to content

Commit

Permalink
docs: PSJekyll.Site.get/set_Domain ( Fixes #61, Fixes #62 )
Browse files Browse the repository at this point in the history
Adding examples
  • Loading branch information
StartAutomating authored and StartAutomating committed Oct 9, 2024
1 parent 9645417 commit 96261a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions PSJekyll.types.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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"
Expand Down

0 comments on commit 96261a4

Please sign in to comment.