mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
829 B
30 lines
829 B
6 years ago
|
module Docs
|
||
6 years ago
|
class DjangoRestFramework < Mkdocs
|
||
6 years ago
|
self.name = 'Django REST Framework'
|
||
6 years ago
|
self.release = '3.9.3'
|
||
|
self.slug = 'django_rest_framework'
|
||
6 years ago
|
self.base_url = 'https://www.django-rest-framework.org/'
|
||
|
self.root_path = 'index.html'
|
||
|
self.links = {
|
||
|
home: 'https://www.django-rest-framework.org/',
|
||
|
code: 'https://github.com/encode/django-rest-framework'
|
||
|
}
|
||
|
|
||
6 years ago
|
html_filters.push 'django_rest_framework/clean_html', 'django_rest_framework/entries'
|
||
6 years ago
|
|
||
|
options[:skip_patterns] = [
|
||
|
/\Atopics\//,
|
||
|
/\Acommunity\//,
|
||
|
]
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
6 years ago
|
Copyright 2011–present Encode OSS Ltd.<br>
|
||
6 years ago
|
Licensed under the BSD License.
|
||
|
HTML
|
||
6 years ago
|
|
||
|
def get_latest_version(opts)
|
||
|
get_latest_github_release('encode', 'django-rest-framework', opts)
|
||
|
end
|
||
6 years ago
|
end
|
||
|
end
|