How davidgf/design-patterns-in-ruby works
Project type and purpose
• This is not a typical full-stack codebase but a documentation site for “Design Patterns in Ruby.”
• Its purpose is to host a series of markdown files (the patterns) and their Portuguese translations.
File structure
• Top-level:
• README.md – site overview and navigation.
• adapter.md, builder.md, … template_method.md – one file per pattern.
• translations/pt-BR/<pattern>.md – Portuguese versions.
• No src/, no frontend/ or backend/—this is pure content.
• No build scripts in the tree, but typical flows use a static-site generator (Jekyll, Hugo, etc.) to convert Markdown → HTML.
README for additional insights
• Describes 14 GoF patterns + 3 Ruby-specific patterns.
• Mentions code examples are fixed and educational.
• No explicit build instructions implies a simple static site build.
Detail is key
• Build steps (e.g., “jekyll build” or “hugo --minify”).
• Every file source and output directory.
[Content Repository (Markdown + Translations)]
→ [CI/CD Pipeline (lints + builds)]
→ [Static-Site Generator (Jekyll/Hugo)]
→ [Hosting (GitHub Pages/Netlify)]
→ [End Users in Browser]