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
James Brundage committed Oct 9, 2024
1 parent 291f625 commit 9645417
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Types/PSJekyll.Site/get_Domain.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
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 Down
4 changes: 4 additions & 0 deletions Types/PSJekyll.Site/set_Domain.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
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 9645417

Please sign in to comment.