SiteKit

SiteKit

SiteKit is a command-line tool designed to simplify the creation, building, and serving of static websites. It provides a streamlined workflow for developers to quickly scaffold new projects, build static assets, and serve them locally for testing.

Features

Requirements

Installation

  1. Clone the repository or download the source code.
  2. Build the project using the .NET CLI:
  3. Install the tool globally:
git clone https://github.com/CodingBoson/SiteKit.git
cd ./SiteKit

./install.ps1 # For Windows
./install.sh # For Linux/MacOS

Usage

Commands

new

Create a new site project.

build

Build the static site from source files.

serve

Serve the site locally for testing.

Project Structure

A typical SiteKit project has the following structure:

myBlog/
├─ Pages/          # Your Markdown or HTML pages
├─ wwwroot/        # CSS, images, JS, etc.
├─ sitekit.json    # Site configuration (title, properties, etc.)
└─ publish/        # Auto-generated static output

Configuration

The sitekit.json file contains the configuration for your site. Example:

{
  "Name": "SiteKit",
  "Properties": {}
}

Development

Building the Project

To build the project, run:

sitekit build

Running Tests

To run the tests, use:

sitekit serve