Skip to content

Commit 1cfc4ef

Browse files
author
Jan Drábek
committed
Fix README to correspond with current state
1 parent 2ece23e commit 1cfc4ef

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

README.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Git Version Panel
2-
======================
1+
# Git Version Panel
32

43
Panel for Tracy debug panel.
54
Shows current branch and current revision hash to be able identify your deployed version on sight.
@@ -8,22 +7,36 @@ Inspired by https://gist.github.com/vvondra/3645108.
87

98
![](http://oi59.tinypic.com/34oviv9.jpg)
109

11-
Installing
12-
----------
10+
## Installing
1311

1412
Install library via composer:
1513

1614
```
1715
composer require jandrabek/tracy-gitversion-panel
1816
```
1917

20-
Register panel
18+
19+
## Registerring...
20+
21+
### In older versions of Nette (< 2.2)
2122

2223
```
2324
nette:
2425
debugger:
25-
bar: [JanDrabek\Tracy\GitVersionPanel]
26-
# Or when you register multiple extensions
27-
# bar:
28-
# - JanDrabek\Tracy\GitVersionPanel
26+
bar:
27+
- JanDrabek\Tracy\GitVersionPanel
28+
```
29+
30+
### In newer versions of Nette (>= 2.2)
31+
32+
```
33+
tracy:
34+
bar:
35+
- JanDrabek\Tracy\GitVersionPanel
36+
```
37+
38+
### In pure Tracy
39+
2940
```
41+
Tracy\Debugger::getBar()->addPanel(new JanDrabek\Tracy\GitVersionPanel());
42+
```

0 commit comments

Comments
 (0)