1
0

html.rb 874 B

1234567891011121314151617181920212223242526
  1. module Docs
  2. class Html < Mdn
  3. prepend FixInternalUrlsBehavior
  4. # release = '2025-06-01'
  5. self.name = 'HTML'
  6. self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/HTML'
  7. self.links = {
  8. home: 'https://developer.mozilla.org/en-US/docs/Web/HTML',
  9. code: 'https://github.com/mdn/content/tree/main/files/en-us/web/html'
  10. }
  11. html_filters.push 'html/clean_html', 'html/entries'
  12. options[:root_title] = 'HTML'
  13. options[:replace_paths] = {
  14. '/Element/h1' => '/Element/Heading_Elements',
  15. '/Element/h2' => '/Element/Heading_Elements',
  16. '/Element/h3' => '/Element/Heading_Elements',
  17. '/Element/h4' => '/Element/Heading_Elements',
  18. '/Element/h5' => '/Element/Heading_Elements',
  19. '/Element/h6' => '/Element/Heading_Elements',
  20. '/Global_attributes/data-%2A' => '/Global_attributes/data-*' }
  21. end
  22. end