|
|
@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
module Docs
|
|
|
|
|
|
|
|
class NoopFilter < Filter
|
|
|
|
|
|
|
|
def call
|
|
|
|
|
|
|
|
return html
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
module Docs
|
|
|
|
module Docs
|
|
|
|
class Tailwindcss < UrlScraper
|
|
|
|
class Tailwindcss < UrlScraper
|
|
|
|
self.name = 'Tailwind CSS'
|
|
|
|
self.name = 'Tailwind CSS'
|
|
|
@ -9,7 +17,8 @@ module Docs
|
|
|
|
|
|
|
|
|
|
|
|
html_filters.push 'tailwindcss/entries', 'tailwindcss/clean_html'
|
|
|
|
html_filters.push 'tailwindcss/entries', 'tailwindcss/clean_html'
|
|
|
|
|
|
|
|
|
|
|
|
# options[:container] = 'body';
|
|
|
|
# Disable the clean text filter which removes empty nodes - we'll do it ourselves more selectively
|
|
|
|
|
|
|
|
text_filters.replace("clean_text", "noop")
|
|
|
|
|
|
|
|
|
|
|
|
# Fix redirects from older tailwind 2 docs
|
|
|
|
# Fix redirects from older tailwind 2 docs
|
|
|
|
options[:fix_urls] = lambda do |url|
|
|
|
|
options[:fix_urls] = lambda do |url|
|
|
|
|