mirror of https://github.com/freeCodeCamp/devdocs
Merge pull request #170 from TrangPham/master
Adding Official Url for url scrapped documentationspull/185/head
commit
4b9256a731
@ -0,0 +1,16 @@
|
||||
module Docs
|
||||
class HomeUrlFilter < Filter
|
||||
def call
|
||||
html.prepend(home_url_html) if home_url
|
||||
html
|
||||
end
|
||||
|
||||
def home_url_html
|
||||
<<-HTML.strip_heredoc
|
||||
<div class="_official">
|
||||
Official Documentation: <a href="#{home_url}" class="_official-link">#{home_url}</a>
|
||||
</div>
|
||||
HTML
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in new issue