Setup
Setup
Prerequisites
- Go 1.26+
- make
Install
Homebrew (macOS/Linux)
sh
brew tap hiromaily/tap
brew install docs-ssotGo install
sh
go install github.com/hiromaily/docs-ssot/cmd/docs-ssot@latestBuild from source
sh
git clone https://github.com/hiromaily/docs-ssot.git
cd docs-ssot
make buildThe binary is output to bin/docs-ssot.
Quick Start
- Create source Markdown files under
template/docs/ - Create template files under
template/(e.g.,README.tpl.md) - Define build targets in
docsgen.yaml:
yaml
targets:
- input: template/README.tpl.md
output: README.md- Generate documents:
sh
docs-ssot buildDevelopment Setup
sh
make install-dev # Install lefthook and golangci-lint
make build # Build the binary
make docs # Generate documentation
make test # Run tests