Skip to content

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan authored Dec 4, 2024
1 parent 1151905 commit 605e6c5
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@
* Add `banner` option that allow to control JSDoc on top of generated file. [#324](https://github.com/bogdan/repo/issues/324).

``` ruby
JsRoutes.configure do |c|
c.banner = -> {
commit_hash = `git rev-parse --short HEAD`.strip

<<~DOC
@file Javascript Route helpers of my magic pony app.
@author Bogdan Gusiev
@license MIT
@version #{commit_hash}
DOC
}
JsRoutes.setup do |c|
c.banner = -> {
commit_hash = `git rev-parse --short HEAD`.strip
<<~DOC
@file Javascript Route helpers of my magic pony app.
@author Bogdan Gusiev
@license MIT
@version #{commit_hash}
DOC
}
end
```

Expand Down

0 comments on commit 605e6c5

Please sign in to comment.