From 962017f922679573180aa2b24341a0ada87f2e98 Mon Sep 17 00:00:00 2001 From: syui Date: Thu, 12 Jun 2025 20:04:57 +0900 Subject: [PATCH] update readme --- README.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/README.md b/README.md index 274bc68..348caaf 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,70 @@ AI-powered static blog generator with ATProto integration, part of the ai.ai eco ## 🚀 Quick Start +### Basic Blog Setup + +```bash +# 1. Initialize a new blog +ailog init my-blog + +# 2. Configure your blog (edit my-blog/config.toml) +[site] +title = "My Blog" +description = "A blog powered by ailog" +base_url = "https://yourdomain.com" +language = "ja" + +[build] +highlight_code = true +minify = false + +[ai] +enabled = false +auto_translate = false +comment_moderation = false + +# 3. Build your blog +ailog build + +# 4. Serve locally +ailog serve +``` + +### ATProto Comment System + +```bash +# 1. Add OAuth configuration to my-blog/config.toml +[oauth] +json = "client-metadata.json" +redirect = "oauth/callback" +admin = "your-did-here" +collection_comment = "ai.syui.log" +collection_user = "ai.syui.log.user" + +# 2. Build OAuth app +ailog oauth build my-blog + +# 3. Authenticate with ATProto +ailog auth init + +# 4. Start stream monitoring +ailog stream start my-blog +``` + +### Development with run.zsh + ```bash # Development ./run.zsh serve # Production (with Cloudflare Tunnel) ./run.zsh tunnel + +# OAuth app development +./run.zsh o + +# Comment system monitoring +./run.zsh co ``` ## 📋 Commands