diff --git a/lib/docs/filters/axios/clean_html.rb b/lib/docs/filters/axios/clean_html.rb index e09c7ef4..ab71d1ad 100644 --- a/lib/docs/filters/axios/clean_html.rb +++ b/lib/docs/filters/axios/clean_html.rb @@ -2,6 +2,10 @@ module Docs class Axios class CleanHtmlFilter < Filter def call + if root_page? + return '
Promise based HTTP client for the browser and node.js
Axios is a simple promise based HTTP client for the browser and node.js. Axios provides a simple to use library in a small package with a very extensible interface.
' + end + @doc = at_css('main > .body') css('.links').remove css('pre').each do |node| node.content = node.content diff --git a/lib/docs/scrapers/axios.rb b/lib/docs/scrapers/axios.rb index cd2ddde1..ed1d63f2 100755 --- a/lib/docs/scrapers/axios.rb +++ b/lib/docs/scrapers/axios.rb @@ -7,12 +7,10 @@ module Docs } self.release = '1.1.3' self.base_url = "https://axios-http.com/docs/" - self.initial_paths = %w(intro) + self.initial_paths = %w(index intro) html_filters.push 'axios/entries', 'axios/clean_html' - options[:container] = 'main > .body' - # https://github.com/axios/axios-docs/blob/master/LICENSE options[:attribution] = <<-HTML © 2020-present John Jakob "Jake" Sarjeant