From 12c654c18d05586f9672a81a690a30cefcdf3084 Mon Sep 17 00:00:00 2001 From: Himanshu Sardana Date: Fri, 27 Mar 2026 00:27:12 +0000 Subject: docs: update readme docs: update readme docs: update makefile --- README.md | 99 ++++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 60 insertions(+), 39 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index edc3a5b..9d3d397 100644 --- a/README.md +++ b/README.md @@ -1,66 +1,87 @@ # Kite -Kite is a lightweight (2.7MB) static site generator written in Go. +A fast, minimal static site generator written in Go. Transform Markdown files into beautiful, themed websites with zero dependencies at runtime. -## Features +

+ Version + Go Version +

-- Markdown to HTML conversion -- Multiple built-in CSS themes -- Simple layout templating -- Fast builds with Go -- Clean output structure +## Installation + +```bash +go install github.com/HimanshuSardana/kite@latest +``` ## Usage -1. Clone the repository +### Initialize a New Blog + ```bash -git clone https://github.com/HimanshuSardana/kite -cd kite +kite init ``` -2. Install dependencies +This interactive command walks you through: +- Blog name and site title +- Author information +- Theme selection +- Creates `content/`, `output/`, `themes/` directories +- Generates config and a sample post + +### Build Your Site + ```bash -go mod tidy +kite build ``` -3. Run the generator +Or specify a theme: + ```bash -make build +kite build gruvbox ``` -(The `themeName` is optional and defaults to `modern-light`) +### Preview Locally -Or use the compiled binary: ```bash -make build-release -./kite-release +kite serve ``` -Modify the `config.yaml` file with your info, it'll be used to generate the home page -```yaml -siteTitle: -authorName: -authorRole: -authorBio: -``` +Visit `http://localhost:8000` to see your site. +## Commands -To write new posts -- Add Markdown files inside the `content/` directory. -- Each file will be converted into its own page. -- Folder structure is preserved in output. +| Command | Description | +|---------|-------------| +| `kite init` | Initialize a new blog project | +| `kite build` | Build the static site | +| `kite build ` | Build with a specific theme | +| `kite serve` | Start local development server | +| `kite serve --port 8080` | Serve on custom port | +| `kite list-themes` | Show available themes | -Example: -``` -content/test.md → output/test/index.html -``` +## Configuration -## Inbuilt Themes +Edit `config.yaml` to customize your site: + +```yaml +siteTitle: "Your Blog Name" +authorName: "Your Name" +authorRole: "Writer & Developer" +authorBio: "A short bio about yourself" +defaultTheme: "modern-light" +siteUrl: "https://your-domain.com" +``` -Themes are located in the `themes/` directory. +## Themes -Available themes include: +Kite comes with 9 built-in themes: +- modern-light +- modern-dark +- modern-dark-2 +- modern-dark-catppuccin +- everforest +- gruvbox +- rose-pine +- terminal-gruvbox +- tufte -- Modern Light -- Modern Dark -- Gruvbox -- cgit v1.3.1