|
|
@ -1,8 +1,8 @@
|
|
|
|
module Docs
|
|
|
|
module Docs
|
|
|
|
class RestFramework < Mkdocs
|
|
|
|
class DjangoRestFramework < Mkdocs
|
|
|
|
self.name = 'Django REST Framework'
|
|
|
|
self.name = 'Django REST Framework'
|
|
|
|
self.release = '3.9.2'
|
|
|
|
self.release = '3.9.3'
|
|
|
|
self.slug = 'rest_framework'
|
|
|
|
self.slug = 'django_rest_framework'
|
|
|
|
self.base_url = 'https://www.django-rest-framework.org/'
|
|
|
|
self.base_url = 'https://www.django-rest-framework.org/'
|
|
|
|
self.root_path = 'index.html'
|
|
|
|
self.root_path = 'index.html'
|
|
|
|
self.links = {
|
|
|
|
self.links = {
|
|
|
@ -10,7 +10,7 @@ module Docs
|
|
|
|
code: 'https://github.com/encode/django-rest-framework'
|
|
|
|
code: 'https://github.com/encode/django-rest-framework'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
html_filters.push 'rest_framework/clean_html', 'rest_framework/entries'
|
|
|
|
html_filters.push 'django_rest_framework/clean_html', 'django_rest_framework/entries'
|
|
|
|
|
|
|
|
|
|
|
|
options[:skip_patterns] = [
|
|
|
|
options[:skip_patterns] = [
|
|
|
|
/\Atopics\//,
|
|
|
|
/\Atopics\//,
|
|
|
@ -18,8 +18,12 @@ module Docs
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
Copyright 2011–present Encode OSS Ltd<br>
|
|
|
|
Copyright 2011–present Encode OSS Ltd.<br>
|
|
|
|
Licensed under the BSD License.
|
|
|
|
Licensed under the BSD License.
|
|
|
|
HTML
|
|
|
|
HTML
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_latest_version(opts)
|
|
|
|
|
|
|
|
get_latest_github_release('encode', 'django-rest-framework', opts)
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|