mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Fix markdown example for OTP-27
This commit is contained in:
parent
e761e3ba7b
commit
9f0f2a89d7
3 changed files with 3 additions and 1583 deletions
|
@ -2,8 +2,9 @@ PROJECT = markdown_middleware
|
|||
PROJECT_DESCRIPTION = Cowboy static file handler example with middleware component
|
||||
PROJECT_VERSION = 1
|
||||
|
||||
DEPS = cowboy
|
||||
DEPS = cowboy markdown
|
||||
dep_cowboy_commit = master
|
||||
dep_markdown = git https://github.com/hypernumbers/erlmarkdown master
|
||||
|
||||
REL_DEPS = relx
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -17,7 +17,7 @@ maybe_generate_markdown(Path) ->
|
|||
ModifiedAt = filelib:last_modified(source_path(Path)),
|
||||
GeneratedAt = filelib:last_modified(Path),
|
||||
case ModifiedAt > GeneratedAt of
|
||||
true -> erlmarkdown:conv_file(source_path(Path), Path);
|
||||
true -> markdown:conv_file(source_path(Path), Path);
|
||||
false -> ok
|
||||
end.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue