1
0

rest_framework.rb 711 B

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