Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Design Patterns

A markdown-first catalog of Gang-of-Four and Architectural design patterns, published as a static site on GitHub Pages.

Live site: https://cre47e.github.io/design-patterns/

Built with MkDocs Material. Every pattern is a markdown file; images live alongside the content under docs/assets/images/<pattern-slug>/.

How to contribute

All content changes go through a GitHub Pull Request and require Code Owner approval before they merge to main and publish.

  1. Fork or branch from main.

  2. Add or edit a markdown file under docs/<category>/<pattern>.md.

  3. Place any images under docs/assets/images/<pattern-slug>/ and link them with a relative path:

    ![Singleton UML](../assets/images/singleton/uml.png)
  4. Update nav: in mkdocs.yml if you added a new page.

  5. Run mkdocs build --strict locally to catch broken links.

  6. Open a PR. The pr-check workflow will build the site; a Code Owner reviews; on merge, deploy publishes to GitHub Pages.

See docs/contributing.md for the full guide and pattern page template.

Local development

Requires Python 3.10+.

python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
mkdocs serve            # http://127.0.0.1:8000/design-patterns/
mkdocs build --strict   # what CI runs

On macOS / Linux:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
mkdocs serve

Repository layout

design-patterns/
  mkdocs.yml                 # site config and nav
  requirements.txt           # Python build dependencies
  docs/
    index.md                 # landing page
    contributing.md          # author + review workflow
    about.md
    creational/              # GoF creational patterns (.md)
    structural/              # GoF structural patterns (.md)
    behavioral/              # GoF behavioral patterns (.md)
    architectural/           # higher-level architectural patterns (.md)
    assets/
      images/<pattern>/      # one folder per pattern, kept apart from .md
      stylesheets/extra.css
  .github/
    CODEOWNERS               # all docs changes require @cre47e review
    pull_request_template.md
    workflows/
      pr-check.yml           # mkdocs build --strict on every PR
      deploy.yml             # publishes to GitHub Pages on push to main

License

Content: CC BY 4.0. Code samples: MIT.

About

Design Patterns

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors