How ddad431/s3 works
S3 is a command-line static-site generator. Users can initialize a site directory, inspect its required layout, or build Markdown pages into a static site. The build flow checks and cleans the site, copies theme assets, then renders the index and topic posts. Page rendering converts Markdown and metadata into page data before applying templates. Shared path and file helpers support the commands. The README is empty, so capabilities and relationships here are based on the sampled source; unsampled command details are not inferred.
Main entry points: build.go Build site · main.go Command dispatch · init.go Initialize site · page.go Page assembly
Components 12
CLI commands
- Command dispatch
cmd/ssg/main.go - Build site
cmd/ssg/build.go - Theme assets
cmd/ssg/build.go - Generated site
cmd/ssg/build.go
Site setup
- Initialize site
cmd/ssg/init.go - Check layout
cmd/ssg/doctor.go - Template creation
cmd/ssg/template.go
Page rendering
- Default templates
cmd/ssg/templates - Page assembly
cmd/ssg/page.go - Markdown conversion
cmd/ssg/convert.go
Shared utilities
- Layout checks
cmd/ssg/share.go
Other components
- Site author
Connections 14
- Site author → Command dispatch: runs command
cmd/ssg/main.go - Command dispatch → Initialize site: dispatches
cmd/ssg/main.go - Command dispatch → Check layout: dispatches
cmd/ssg/main.go - Command dispatch → Build site: dispatches
cmd/ssg/main.go - Initialize site → Layout checks: checks paths
cmd/ssg/init.go - Check layout → Layout checks: checks paths
cmd/ssg/doctor.go - Initialize site → Template creation: creates templates
cmd/ssg/init.go - Template creation → Default templates: reads embedded files
cmd/ssg/template.go - Build site → Layout checks: checks layout
cmd/ssg/build.go - Build site → Theme assets: copies assets
cmd/ssg/build.go - Build site → Page assembly: builds pages
cmd/ssg/build.go - Page assembly → Markdown conversion: converts Markdown
cmd/ssg/page.go - Page assembly → Generated site: writes rendered pages
cmd/ssg/page.go - Build site → Generated site: creates build directory
cmd/ssg/build.go