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
836 B
30 lines
836 B
module Docs
|
|
class DjangoRestFramework < Mkdocs
|
|
self.name = 'Django REST Framework'
|
|
self.release = '3.9.3'
|
|
self.slug = 'django_rest_framework'
|
|
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'
|
|
}
|
|
|
|
html_filters.push 'django_rest_framework/clean_html', 'django_rest_framework/entries'
|
|
|
|
options[:skip_patterns] = [
|
|
/\Atopics\//,
|
|
/\Acommunity\//,
|
|
]
|
|
|
|
options[:attribution] = <<-HTML
|
|
Copyright © 2011–present Encode OSS Ltd.<br>
|
|
Licensed under the BSD License.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
get_latest_github_release('encode', 'django-rest-framework', opts)
|
|
end
|
|
end
|
|
end
|