From 53bbc1f1e82f4d1e21da165f659aec0fc1bce14c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20B=C3=B6hnke?= Date: Tue, 7 Jun 2016 15:32:34 +0200 Subject: [PATCH] Create inoic.rb --- lib/docs/scrapers/inoic.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/docs/scrapers/inoic.rb diff --git a/lib/docs/scrapers/inoic.rb b/lib/docs/scrapers/inoic.rb new file mode 100644 index 00000000..d346db3b --- /dev/null +++ b/lib/docs/scrapers/inoic.rb @@ -0,0 +1,22 @@ +module Docs + class Ionic < UrlScraper + self.name = 'Ionic' + self.slug = 'ionic' + self.type = 'ionic' + self.base_url = 'http://ionicframework.com/docs/v2' + self.links = { + home: 'https://ionic.io/', + code: 'https://github.com/driftyco/ionic' + } + + html_filters.push 'ionic/clean_html', 'ionic/entries', 'title' + + options[:root_title] = 'Ionic' + options[:only_patterns] = [/reference\//, /api\//] + options[:skip_patterns] = [/api\/index/] + + options[:attribution] = <<-HTML + Ionic is licensed under the MIT Open Source license. For more information, see the LICENSE file in this repository. + HTML + end +end