Skip to content

Commit 8f7636c

Browse files
Binlogoochococo
authored andcommittedMar 17, 2020
Add a table of contents for convenience.
* just add for generating readme * not mess up the playground
1 parent d5dab21 commit 8f7636c

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
 

β€ŽREADME.md

+16
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,22 @@ print("Welcome!")
1818
```
1919

2020

21+
## Table of Contents
22+
23+
| [Behavioral](#behavioral) | [Creational](#creational) | [Structural](#structural) |
24+
| ------------------------------------------------------ | ---------------------------------------- | ---------------------------------------- |
25+
| [🐝 Chain Of Responsibility](#-chain-of-responsibility) | [🌰 Abstract Factory](#-abstract-factory) | [πŸ”Œ Adapter](#-adapter) |
26+
| [πŸ‘« Command](#-command) | [πŸ‘· Builder](#-builder) | [πŸŒ‰ Bridge](#-bridge) |
27+
| [🎢 Interpreter](#-interpreter) | [🏭 Factory Method](#-factory-method) | [🌿 Composite](#-composite) |
28+
| [🍫 Iterator](#-iterator) | [πŸƒ Prototype](#-prototype) | [🍧 Decorator](#-decorator) |
29+
| [πŸ’ Mediator](#-mediator) | [πŸ’ Singleton](#-singleton) | [🎁 FaΓ§ade](#-fa-ade) |
30+
| [πŸ’Ύ Memento](#-memento) | | [πŸƒ Flyweight](#-flyweight) |
31+
| [πŸ‘“ Observer](#-observer) | | [β˜” Protection Proxy](#-protection-proxy) |
32+
| [πŸ‰ State](#-state) | | [🍬 Virtual Proxy](#-virtual-proxy) |
33+
| [πŸ’‘ Strategy](#-strategy) | | |
34+
| [πŸƒ Visitor](#-visitor) | | |
35+
36+
2137
Behavioral
2238
==========
2339

β€Žgenerate-playground.sh

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ zip -r -X Design-Patterns.playground.zip ./Design-Patterns.playground
5757
echo "" > README.md
5858

5959
readme Index
60+
cat source/contentsReadme.md >> README.md
6061
readme Behavioral
6162
readme Creational
6263
readme Structural

β€Žsource/contentsReadme.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
## Table of Contents
3+
4+
| [Behavioral](#behavioral) | [Creational](#creational) | [Structural](#structural) |
5+
| ------------------------------------------------------ | ---------------------------------------- | ---------------------------------------- |
6+
| [🐝 Chain Of Responsibility](#-chain-of-responsibility) | [🌰 Abstract Factory](#-abstract-factory) | [πŸ”Œ Adapter](#-adapter) |
7+
| [πŸ‘« Command](#-command) | [πŸ‘· Builder](#-builder) | [πŸŒ‰ Bridge](#-bridge) |
8+
| [🎢 Interpreter](#-interpreter) | [🏭 Factory Method](#-factory-method) | [🌿 Composite](#-composite) |
9+
| [🍫 Iterator](#-iterator) | [πŸƒ Prototype](#-prototype) | [🍧 Decorator](#-decorator) |
10+
| [πŸ’ Mediator](#-mediator) | [πŸ’ Singleton](#-singleton) | [🎁 FaΓ§ade](#-fa-ade) |
11+
| [πŸ’Ύ Memento](#-memento) | | [πŸƒ Flyweight](#-flyweight) |
12+
| [πŸ‘“ Observer](#-observer) | | [β˜” Protection Proxy](#-protection-proxy) |
13+
| [πŸ‰ State](#-state) | | [🍬 Virtual Proxy](#-virtual-proxy) |
14+
| [πŸ’‘ Strategy](#-strategy) | | |
15+
| [πŸƒ Visitor](#-visitor) | | |
16+

0 commit comments

Comments
 (0)