Prechádzať zdrojové kódy

Simplify 'simple' CSS

Thibaut Courouble 7 rokov pred
rodič
commit
ad7e1bdc4b

+ 1 - 31
assets/stylesheets/pages/_simple.scss

@@ -17,34 +17,4 @@
   blockquote > h4, blockquote > h5 { margin-top: .25rem; }
 }
 
-._apache_pig,
-._bower,
-._chai,
-._codeceptjs,
-._docker,
-._electron,
-._fish,
-._flow,
-._gnu,
-._grunt,
-._haxe,
-._immutable,
-._influxdata,
-._jasmine,
-._jest,
-._less,
-._lodash,
-._marionette,
-._markdown,
-._mocha,
-._mongoose,
-._nim,
-._redux,
-._requirejs,
-._simple,
-._typescript,
-._vagrant,
-._vulkan,
-._yarn {
-  @extend %simple;
-}
+._simple { @extend %simple; }

+ 1 - 1
lib/docs/scrapers/apache_pig.rb

@@ -2,7 +2,7 @@ module Docs
   class ApachePig < UrlScraper
     self.name = 'Apache Pig'
     self.slug = 'apache_pig'
-    self.type = 'apache_pig'
+    self.type = 'simple'
     self.links = {
       home: 'https://pig.apache.org/'
     }

+ 1 - 1
lib/docs/scrapers/bower.rb

@@ -1,7 +1,7 @@
 module Docs
   class Bower < UrlScraper
     self.name = 'Bower'
-    self.type = 'bower'
+    self.type = 'simple'
     self.release = '1.8.4'
     self.base_url = 'https://bower.io/docs/'
     self.root_path = 'api'

+ 1 - 1
lib/docs/scrapers/chai.rb

@@ -1,7 +1,7 @@
 module Docs
   class Chai < UrlScraper
     self.name = 'Chai'
-    self.type = 'chai'
+    self.type = 'simple'
     self.release = '4.1.0'
     self.base_url = 'http://chaijs.com'
     self.root_path = '/api/'

+ 1 - 1
lib/docs/scrapers/codeceptjs.rb

@@ -1,7 +1,7 @@
 module Docs
   class Codeceptjs < UrlScraper
     self.name = 'CodeceptJS'
-    self.type = 'codeceptjs'
+    self.type = 'simple'
     self.root_path = 'index.html'
     self.release = '1.3.1'
     self.base_url = 'https://codecept.io/'

+ 1 - 1
lib/docs/scrapers/docker.rb

@@ -1,6 +1,6 @@
 module Docs
   class Docker < UrlScraper
-    self.type = 'docker'
+    self.type = 'simple'
     self.links = {
       home: 'https://docker.com/',
       code: 'https://github.com/docker/docker'

+ 1 - 1
lib/docs/scrapers/electron.rb

@@ -1,6 +1,6 @@
 module Docs
   class Electron < UrlScraper
-    self.type = 'electron'
+    self.type = 'simple'
     self.base_url = 'https://electronjs.org/docs'
     self.release = '2.0.2'
     self.links = {

+ 1 - 1
lib/docs/scrapers/fish.rb

@@ -1,7 +1,7 @@
 module Docs
   class Fish < UrlScraper
     self.name = 'Fish'
-    self.type = 'fish'
+    self.type = 'simple'
     self.root_path = 'index.html'
     self.links = {
       home: 'https://fishshell.com/',

+ 1 - 1
lib/docs/scrapers/flow.rb

@@ -1,6 +1,6 @@
 module Docs
   class Flow < UrlScraper
-    self.type = 'flow'
+    self.type = 'simple'
     self.release = '0.79.1'
     self.base_url = 'https://flow.org/en/docs/'
     self.links = {

+ 1 - 1
lib/docs/scrapers/gnu.rb

@@ -1,6 +1,6 @@
 module Docs
   class Gnu < FileScraper
-    self.type = 'gnu'
+    self.type = 'simple'
     self.root_path = 'index.html'
     self.abstract = 'true'
 

+ 1 - 1
lib/docs/scrapers/grunt.rb

@@ -1,7 +1,7 @@
 module Docs
   class Grunt < UrlScraper
     self.name = 'Grunt'
-    self.type = 'grunt'
+    self.type = 'simple'
     self.release = '1.0.1'
     self.base_url = 'https://gruntjs.com/'
     self.root_path = 'getting-started'

+ 1 - 1
lib/docs/scrapers/haxe.rb

@@ -1,7 +1,7 @@
 module Docs
   class Haxe < UrlScraper
     self.name = 'Haxe'
-    self.type = 'haxe'
+    self.type = 'simple'
     self.release = '3.4.7'
     self.base_url = 'https://api.haxe.org/'
 

+ 1 - 1
lib/docs/scrapers/immutable.rb

@@ -2,7 +2,7 @@ module Docs
   class Immutable < UrlScraper
     self.name = 'Immutable.js'
     self.slug = 'immutable'
-    self.type = 'immutable'
+    self.type = 'simple'
     self.release = '3.8.1'
     self.base_url = 'https://facebook.github.io/immutable-js/docs/'
     self.links = {

+ 1 - 1
lib/docs/scrapers/influxdata.rb

@@ -1,7 +1,7 @@
 module Docs
   class Influxdata < UrlScraper
     self.name = 'InfluxData'
-    self.type = 'influxdata'
+    self.type = 'simple'
     self.release = '1.3'
     self.base_url = 'https://docs.influxdata.com/'
     self.links = {

+ 1 - 1
lib/docs/scrapers/jasmine.rb

@@ -1,6 +1,6 @@
 module Docs
   class Jasmine < UrlScraper
-    self.type = 'jasmine'
+    self.type = 'simple'
     self.release = '3.2.1'
     self.base_url = 'https://jasmine.github.io/api/3.2/'
     self.root_path = 'index.html'

+ 1 - 1
lib/docs/scrapers/jest.rb

@@ -1,6 +1,6 @@
 module Docs
   class Jest < UrlScraper
-    self.type = 'jest'
+    self.type = 'simple'
     self.release = '23.5.0'
     self.base_url = 'https://jestjs.io/docs/en/'
     self.root_path = 'getting-started'

+ 1 - 1
lib/docs/scrapers/less.rb

@@ -1,6 +1,6 @@
 module Docs
   class Less < UrlScraper
-    self.type = 'less'
+    self.type = 'simple'
     self.release = '2.7.2'
     self.base_url = 'http://lesscss.org'
     self.root_path = '/features'

+ 1 - 1
lib/docs/scrapers/lodash.rb

@@ -2,7 +2,7 @@ module Docs
   class Lodash < UrlScraper
     self.name = 'lodash'
     self.slug = 'lodash'
-    self.type = 'lodash'
+    self.type = 'simple'
     self.links = {
       home: 'https://lodash.com/',
       code: 'https://github.com/lodash/lodash/'

+ 1 - 1
lib/docs/scrapers/marionette.rb

@@ -2,7 +2,7 @@ module Docs
   class Marionette < UrlScraper
     self.name = 'Marionette.js'
     self.slug = 'marionette'
-    self.type = 'marionette'
+    self.type = 'simple'
     self.root_path = 'index'
     self.links = {
       home: 'https://marionettejs.com/',

+ 1 - 1
lib/docs/scrapers/markdown.rb

@@ -1,7 +1,7 @@
 module Docs
   class Markdown < UrlScraper
     self.name = 'Markdown'
-    self.type = 'markdown'
+    self.type = 'simple'
     self.base_url = 'http://daringfireball.net/projects/markdown/syntax'
 
     html_filters.push 'markdown/clean_html', 'markdown/entries'

+ 1 - 1
lib/docs/scrapers/mocha.rb

@@ -1,6 +1,6 @@
 module Docs
   class Mocha < UrlScraper
-    self.type = 'mocha'
+    self.type = 'simple'
     self.release = '5.0.1'
     self.base_url = 'https://mochajs.org/'
     self.links = {

+ 1 - 1
lib/docs/scrapers/mongoose.rb

@@ -1,7 +1,7 @@
 module Docs
   class Mongoose < UrlScraper
     self.name = 'Mongoose'
-    self.type = 'mongoose'
+    self.type = 'simple'
     self.release = '4.13.1'
     self.base_url = 'http://mongoosejs.com/docs/'
     self.root_path = 'index.html'

+ 1 - 1
lib/docs/scrapers/nim.rb

@@ -1,6 +1,6 @@
 module Docs
   class Nim < UrlScraper
-    self.type = 'nim'
+    self.type = 'simple'
     self.release = '0.18.0'
     self.base_url = 'https://nim-lang.org/docs/'
     self.root_path = 'overview.html'

+ 1 - 1
lib/docs/scrapers/redux.rb

@@ -1,6 +1,6 @@
 module Docs
   class Redux < UrlScraper
-    self.type = 'redux'
+    self.type = 'simple'
     self.release = '3.7.2'
     self.base_url = 'http://redux.js.org/docs/'
     self.links = {

+ 1 - 1
lib/docs/scrapers/requirejs.rb

@@ -1,7 +1,7 @@
 module Docs
   class Requirejs < UrlScraper
     self.name = 'RequireJS'
-    self.type = 'requirejs'
+    self.type = 'simple'
     self.release = '2.3.5'
     self.base_url = 'http://requirejs.org/docs/'
     self.links = {

+ 1 - 1
lib/docs/scrapers/typescript.rb

@@ -1,7 +1,7 @@
 module Docs
   class Typescript < UrlScraper
     self.name = 'TypeScript'
-    self.type = 'typescript'
+    self.type = 'simple'
     self.release = '3.0.1'
     self.base_url = 'https://www.typescriptlang.org/docs/'
     self.root_path = 'tutorial.html'

+ 1 - 1
lib/docs/scrapers/vagrant.rb

@@ -1,7 +1,7 @@
 module Docs
   class Vagrant < UrlScraper
     self.name = 'Vagrant'
-    self.type = 'vagrant'
+    self.type = 'simple'
     self.release = '2.1.1'
     self.base_url = 'https://www.vagrantup.com/docs/'
     self.root_path = 'index.html'

+ 1 - 1
lib/docs/scrapers/vulkan.rb

@@ -1,7 +1,7 @@
 module Docs
   class Vulkan < UrlScraper
     self.name = 'Vulkan'
-    self.type = 'vulkan'
+    self.type = 'simple'
     self.release = '1.0.59'
     self.base_url = 'https://www.khronos.org/registry/vulkan/specs/1.0/'
     self.root_path = 'apispec.html'

+ 1 - 1
lib/docs/scrapers/yarn.rb

@@ -1,6 +1,6 @@
 module Docs
   class Yarn < UrlScraper
-    self.type = 'yarn'
+    self.type = 'simple'
     self.release = '1.9.4'
     self.base_url = 'https://yarnpkg.com/en/docs/'
     self.links = {