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.
- Project Scaffolding: Quickly create a new site project using predefined templates.
- Static Site Building: Build static assets from source files, including HTML and Markdown.
- Local Development Server: Serve your site locally for testing and development.
- Customizable Templates: Use or create templates to standardize your site structure.
- Hot Reload: Quickly make changes to your project and see them happen in realtime without rebuilding.
- .NET 8.0 or later
- Basic knowledge of command-line tools
- Clone the repository or download the source code.
- Build the project using the .NET CLI:
- Install the tool globally:
git clone https://github.com/CodingBoson/SiteKit.git
cd ./SiteKit/SiteKit
./install.ps1 # For Windows
./install.sh # For Linux/MacOS
Create a new site project.
siteName
: The name of the new site project.-t, --template
: (Optional) The template to use. Defaults todefault
.
Build the static site from source files.
Serve the site locally for testing.
-u, --url
: (Optional) The URL to serve the site. Defaults tohttp://localhost:9443/
.-u, --url
: (Optional) The URL to serve the site. Defaults tohttp://localhost:9443/
.--no-build
: (Optional) Skip the build step before serving.
A typical SiteKit project has the following structure:
myBlog/
├─ Layout/ # Contains layout html files.
├─ Pages/ # Your Markdown or HTML pages
├─ wwwroot/ # CSS, images, JS, etc.
├─ sitekit.json # Site configuration (title, properties, etc.)
└─ publish/ # Auto-generated static output
The sitekit.json
file contains the configuration for your site. Example:
{
"Name": "SiteKit",
"Properties": {}
}
To build the project, run:
sitekit build
To run the tests, use:
sitekit serve
https://sitekit.secure-pages.uk Is built using SiteKit.
SiteKit renders projects under 1 second.
See the Templates README file for more information.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes and push them to your fork.
- Submit a pull request.
This project is licensed under the GPL-3.0 License. See the LICENSE
file for details.