@@ -42,6 +42,13 @@ When verifying code changes, always follow this sequence (also automated via pre
4242- ` mix test test/statifier/logging/ ` - Run comprehensive logging infrastructure tests (30 tests)
4343- ` mix test test/statifier/actions/ ` - Run action execution tests with integrated StateChart logging
4444
45+ ** Documentation:**
46+
47+ - ` mix docs.validate ` - Validate code examples in documentation files (README.md, docs/* .md)
48+ - ` mix docs.validate --file README.md ` - Validate specific file only
49+ - ` mix docs.validate --verbose ` - Show detailed validation output
50+ - ` mix docs.validate --path docs/ ` - Validate specific directory
51+
4552** Development:**
4653
4754- ` mix deps.get ` - Install dependencies
@@ -214,7 +221,7 @@ The implementation follows a clean **Parse → Validate → Optimize** architect
214221{:ok , optimized_document, warnings} = Statifier .Validator .validate (document)
215222
216223# 3. Interpret Phase: Use optimized document for runtime
217- {:ok , state_chart} = Statifier .Interpreter . initialize (optimized_document)
224+ {:ok , state_chart} = Statifier .initialize (optimized_document)
218225```
219226
220227** Benefits:**
@@ -376,7 +383,7 @@ invoke_handlers = %{
376383 " email_service" => & MyApp .EmailService .handle_invoke / 3
377384}
378385
379- {:ok , state_chart} = Interpreter .initialize (document, [
386+ {:ok , state_chart} = Statifier .initialize (document, [
380387 invoke_handlers: invoke_handlers,
381388 log_level: :debug
382389])
@@ -629,13 +636,13 @@ When debugging state chart execution, configure enhanced logging for detailed vi
629636
630637``` elixir
631638# Enable detailed tracing for debugging
632- {:ok , state_chart} = Interpreter .initialize (document, [
639+ {:ok , state_chart} = Statifier .initialize (document, [
633640 log_adapter: :elixir ,
634641 log_level: :trace
635642])
636643
637644# Alternative: use internal adapter for testing/development
638- {:ok , state_chart} = Interpreter .initialize (document, [
645+ {:ok , state_chart} = Statifier .initialize (document, [
639646 log_adapter: :internal ,
640647 log_level: :trace
641648])
@@ -697,10 +704,10 @@ config :statifier,
697704``` elixir
698705# In dev environment, no additional configuration needed
699706{:ok , document, _warnings } = Statifier .parse (xml)
700- {:ok , state_chart} = Interpreter .initialize (document) # Auto-configured for dev
707+ {:ok , state_chart} = Statifier .initialize (document) # Auto-configured for dev
701708
702709# Manual configuration for other environments
703- {:ok , state_chart} = Interpreter .initialize (document, [
710+ {:ok , state_chart} = Statifier .initialize (document, [
704711 log_adapter: :elixir ,
705712 log_level: :trace
706713])
0 commit comments