class DocMachine::Write::Run

Defined in:

write/run.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : DocMachine::Write::Config) #

Instance Method Detail

def ask_confirmation #

def from_chapter_build_sections #

Level 1 - each chapter : build TOC (section list)

  1. build chat
    • (system) quality & style guidance
    • (user) context
    • (user) audience
    • (user) objectives
    • (user) main toc (chapters)

def from_section_build_exercises #

Level 2 - each section : build EXERCISES

  1. build chat
    • (system) quality & style guidance
    • (user) context
    • (user) audience
    • (user) objectives
    • (user) main toc (chapters)
    • (user) chapter toc (sections)
  2. make openai request
  3. validate result structure
  4. create exercises objects in memory

def from_section_build_subsections #

Level 2 - each section : build TOC (subsection list)

  1. build chat
    • (system) quality & style guidance
    • (user) context
    • (user) audience
    • (user) objectives
    • (user) main toc (chapters)
    • (user) chapter toc (sections)
  2. make openai request
  3. validate result structure
  4. create section objects in memory

def from_subsection_build_content #

def from_subsection_build_exercises #

def from_subsection_fix_content #

def from_topic_build_chapters #

Level 0 - each topic : build TOC (chapter list)


def load_templates #

def prepare #

Verify parameters




def start #

def validate_build_dir #

def wait #