django_rest_framework.rb 836 B

1234567891011121314151617181920212223242526272829
  1. module Docs
  2. class DjangoRestFramework < Mkdocs
  3. self.name = 'Django REST Framework'
  4. self.release = '3.9.3'
  5. self.slug = 'django_rest_framework'
  6. self.base_url = 'https://www.django-rest-framework.org/'
  7. self.root_path = 'index.html'
  8. self.links = {
  9. home: 'https://www.django-rest-framework.org/',
  10. code: 'https://github.com/encode/django-rest-framework'
  11. }
  12. html_filters.push 'django_rest_framework/clean_html', 'django_rest_framework/entries'
  13. options[:skip_patterns] = [
  14. /\Atopics\//,
  15. /\Acommunity\//,
  16. ]
  17. options[:attribution] = <<-HTML
  18. Copyright &copy; 2011&ndash;present Encode OSS Ltd.<br>
  19. Licensed under the BSD License.
  20. HTML
  21. def get_latest_version(opts)
  22. get_latest_github_release('encode', 'django-rest-framework', opts)
  23. end
  24. end
  25. end