26 lines · 874 B · Ruby
RawDownload
module Docs  class Html < Mdn    prepend FixInternalUrlsBehavior     # release = '2025-06-01'    self.name = 'HTML'    self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/HTML'    self.links = {      home: 'https://developer.mozilla.org/en-US/docs/Web/HTML',      code: 'https://github.com/mdn/content/tree/main/files/en-us/web/html'    }     html_filters.push 'html/clean_html', 'html/entries'     options[:root_title] = 'HTML'     options[:replace_paths] = {      '/Element/h1' => '/Element/Heading_Elements',      '/Element/h2' => '/Element/Heading_Elements',      '/Element/h3' => '/Element/Heading_Elements',      '/Element/h4' => '/Element/Heading_Elements',      '/Element/h5' => '/Element/Heading_Elements',      '/Element/h6' => '/Element/Heading_Elements',      '/Global_attributes/data-%2A' => '/Global_attributes/data-*' }  endend