mirror of https://github.com/freeCodeCamp/devdocs
parent
9e6420be6a
commit
5de8c37258
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 95 KiB |
@ -0,0 +1,46 @@
|
|||||||
|
module Docs
|
||||||
|
class Phoenix < Elixir
|
||||||
|
self.type = 'elixir'
|
||||||
|
self.version = '1.0.3'
|
||||||
|
self.base_url = 'http://hexdocs.pm/'
|
||||||
|
self.root_path = 'phoenix/Phoenix.html'
|
||||||
|
self.initial_paths = %w(
|
||||||
|
phoenix/extra-api-reference.html
|
||||||
|
ecto/extra-api-reference.html
|
||||||
|
phoenix_html/extra-api-reference.html
|
||||||
|
plug/extra-api-reference.html)
|
||||||
|
self.links = {
|
||||||
|
home: 'http://www.phoenixframework.org',
|
||||||
|
code: 'https://github.com/phoenixframework/phoenix'
|
||||||
|
}
|
||||||
|
|
||||||
|
options[:root_title] = false
|
||||||
|
|
||||||
|
options[:skip_patterns] = [/extra-api-reference/]
|
||||||
|
options[:only_patterns] = [
|
||||||
|
/\Aphoenix\//,
|
||||||
|
/\Aecto\//,
|
||||||
|
/\Aphoenix_html\//,
|
||||||
|
/\Aplug\//
|
||||||
|
]
|
||||||
|
|
||||||
|
options[:attribution] = -> (filter) {
|
||||||
|
if filter.slug.start_with?('ecto')
|
||||||
|
<<-HTML
|
||||||
|
© 2012 Plataformatec<br>
|
||||||
|
Licensed under the Apache License, Version 2.0.
|
||||||
|
HTML
|
||||||
|
elsif filter.slug.start_with?('plug')
|
||||||
|
<<-HTML
|
||||||
|
© 2013 Plataformatec<br>
|
||||||
|
Licensed under the Apache License, Version 2.0.
|
||||||
|
HTML
|
||||||
|
else
|
||||||
|
<<-HTML
|
||||||
|
© 2014 Chris McCord<br>
|
||||||
|
Licensed under the MIT License.
|
||||||
|
HTML
|
||||||
|
end
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end
|
After Width: | Height: | Size: 426 B |
After Width: | Height: | Size: 956 B |
@ -0,0 +1 @@
|
|||||||
|
https://github.com/phoenixframework/phoenix/blob/master/logo.png
|
Loading…
Reference in new issue