0
Fork 0
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:
Loïc Hoguin 2024-11-07 13:28:26 +01:00
parent e761e3ba7b
commit 9f0f2a89d7
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
3 changed files with 3 additions and 1583 deletions

View file

@ -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

View file

@ -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.