New-JekyllBlogServer.ps1


Description

Purpose

Starts a Jekyll blog server using Docker Compose.

Detailed Description

The New-JekyllBlogServer function starts a Jekyll blog server using Docker Compose. It provides two parameter sets: ‘Select’ and ‘Blog’.

  • ‘Select’ parameter set prompts the user to select a folder location and then starts the blog server in that location.

  • ‘Blog’ parameter set starts the blog server in the specified path.

  • If no parameter set is specified, it prompts the user to select a folder location and starts the blog server in that location.

Back to Top

Usage

Example 1

New-JekyllBlogServer -BlogPath 'Select'

Starts the Jekyll blog server by prompting the user to select a folder location.

Example 2

New-JekyllBlogServer -BlogPath 'Blog' -Path 'C:\MyBlog'

Starts the Jekyll blog server in the ‘C:\MyBlog’ path.

Back to Top

Notes

No additional notes.

Back to Top


Script

# Define the New-JekyllBlogServer function for demonstration purposes
function New-JekyllBlogServer {
	Write-Host "Starting Jekyll blog server..."
	# Add your Jekyll blog server start commands here
}

Back to Top

Download

Please feel free to copy parts of the script or if you would like to download the entire script, simply click the download button. You can download the complete repository in a zip file by clicking the Download link in the menu bar on the left hand side of the page.


Report Issues

You can report an issue or contribute to this site on GitHub. Simply click the button below and add any relevant notes. I will attempt to respond to all issues as soon as possible.

Issue


Back to Top