Unified · Split
Binary file not shown.
Binary file not shown.
| @@ -1,7 +1,7 @@ | |||
| 1 | [ | 1 | [ |
| 2 | [ | 2 | [ |
| 3 | "2017-06-04", | 3 | "2017-06-04", |
| 4 | "New documentations: <a href=\"/electron/\">Electron</a>, <a href=\"/pug/\">Pug</a>" | 4 | "New documentations: <a href=\"/electron/\">Electron</a>, <a href=\"/pug/\">Pug</a>, and <a href=\"/falcon/\">Falcon</a>" |
| 5 | ], [ | 5 | ], [ |
| 6 | "2017-05-14", | 6 | "2017-05-14", |
| 7 | "New documentations: <a href=\"/jest/\">Jest</a>, <a href=\"/jasmine/\">Jasmine</a> and <a href=\"/liquid/\">Liquid</a>" | 7 | "New documentations: <a href=\"/jest/\">Jest</a>, <a href=\"/jasmine/\">Jasmine</a> and <a href=\"/liquid/\">Liquid</a>" |
| @@ -243,6 +243,11 @@ credits = [ · 242 unmodified lines | |||
| 243 | '2016 StrongLoop, IBM, and other expressjs.com contributors.', | 243 | '2016 StrongLoop, IBM, and other expressjs.com contributors.', |
| 244 | 'CC BY-SA', | 244 | 'CC BY-SA', |
| 245 | 'https://raw.githubusercontent.com/expressjs/expressjs.com/gh-pages/LICENSE.md' | 245 | 'https://raw.githubusercontent.com/expressjs/expressjs.com/gh-pages/LICENSE.md' |
| 246 | ], [ | ||
| 247 | 'Falcon', | ||
| 248 | '2012-2016 by Rackspace Hosting, Inc. and other contributors', | ||
| 249 | 'Apache', | ||
| 250 | 'https://raw.githubusercontent.com/falconry/falcon/master/LICENSE' | ||
| 246 | ], [ | 251 | ], [ |
| 247 | 'Fish', | 252 | 'Fish', |
| 248 | '2005-2009 Axel Liljencrantz', | 253 | '2005-2009 Axel Liljencrantz', |
| @@ -174,3 +174,4 @@ · 173 unmodified lines | |||
| 174 | ._icon-jasmine:before { background-position: 0 -2rem; @extend %doc-icon-2; } | 174 | ._icon-jasmine:before { background-position: 0 -2rem; @extend %doc-icon-2; } |
| 175 | ._icon-pug:before { background-position: -1rem -2rem; @extend %doc-icon-2; } | 175 | ._icon-pug:before { background-position: -1rem -2rem; @extend %doc-icon-2; } |
| 176 | ._icon-electron:before { background-position: -2rem -2rem; @extend %doc-icon-2; } | 176 | ._icon-electron:before { background-position: -2rem -2rem; @extend %doc-icon-2; } |
| 177 | ._icon-falcon:before { background-position: -3rem -2rem; @extend %doc-icon-2; } | ||
| @@ -9,14 +9,10 @@ module Docs · 8 unmodified lines | |||
| 9 | 9 | ||
| 10 | def get_type | 10 | def get_type |
| 11 | case slug.split('/').first | 11 | case slug.split('/').first |
| 12 | when 'community' | ||
| 13 | 'Community Guide' | ||
| 14 | when 'user' | 12 | when 'user' |
| 15 | 'User Guide' | 13 | 'Guide' |
| 16 | when 'api' | 14 | when 'api' |
| 17 | 'Classes and Functions' | 15 | 'API' |
| 18 | else | ||
| 19 | 'Other' | ||
| 20 | end | 16 | end |
| 21 | end | 17 | end |
| 22 | 18 | ||
| @@ -24,23 +20,33 @@ module Docs · 1 unmodified line | |||
| 24 | entries = [] | 20 | entries = [] |
| 25 | 21 | ||
| 26 | css('.class').each do |node| | 22 | css('.class').each do |node| |
| 23 | namespace = node.at_css('.descclassname').content.strip.remove(/\.\z/) | ||
| 27 | class_name = node.at_css('dt > .descname').content | 24 | class_name = node.at_css('dt > .descname').content |
| 28 | class_id = node.at_css('dt[id]')['id'] | 25 | class_id = node.at_css('dt[id]')['id'] |
| 29 | entries << [class_name, class_id] | 26 | entries << ["#{namespace}.#{class_name}", class_id, namespace] |
| 27 | |||
| 28 | node.css('.attribute').each do |n| | ||
| 29 | next unless n.at_css('dt[id]') | ||
| 30 | name = n.at_css('.descname').content | ||
| 31 | name = "#{namespace}.#{class_name}.#{name}" | ||
| 32 | id = n.at_css('dt[id]')['id'] | ||
| 33 | entries << [name, id, namespace] | ||
| 34 | end | ||
| 30 | 35 | ||
| 31 | node.css('.method').each do |n| | 36 | node.css('.method').each do |n| |
| 32 | next unless n.at_css('dt[id]') | 37 | next unless n.at_css('dt[id]') |
| 33 | name = n.at_css('.descname').content | 38 | name = n.at_css('.descname').content |
| 34 | name = "#{class_name}.#{name}()" | 39 | name = "#{namespace}.#{class_name}.#{name}()" |
| 35 | id = n.at_css('dt[id]')['id'] | 40 | id = n.at_css('dt[id]')['id'] |
| 36 | entries << [name, id] | 41 | entries << [name, id, namespace] |
| 37 | end | 42 | end |
| 38 | end | 43 | end |
| 39 | 44 | ||
| 40 | css('.function').each do |node| | 45 | css('.function').each do |node| |
| 41 | name = "#{node.at_css('.descname').content}()" | 46 | namespace = node.at_css('.descclassname').content.strip.remove(/\.\z/) |
| 47 | name = "#{namespace}.#{node.at_css('.descname').content}()" | ||
| 42 | id = node.at_css('dt[id]')['id'] | 48 | id = node.at_css('dt[id]')['id'] |
| 43 | entries << [name, id] | 49 | entries << [name, id, namespace] |
| 44 | end | 50 | end |
| 45 | 51 | ||
| 46 | entries | 52 | entries |
| @@ -11,17 +11,17 @@ module Docs · 10 unmodified lines | |||
| 11 | 11 | ||
| 12 | options[:container] = '.body' | 12 | options[:container] = '.body' |
| 13 | 13 | ||
| 14 | options[:skip_patterns] = [/\Achanges/, /\A_modules/] | 14 | options[:skip] = %w(user/index.html api/index.html) |
| 15 | options[:skip_patterns] = [/\Achanges/, /\A_modules/, /\Acommunity/] | ||
| 15 | 16 | ||
| 16 | options[:attribution] = <<-HTML | 17 | options[:attribution] = <<-HTML |
| 17 | © 2016 Falcon Contributors<br> | 18 | © 2012–2016 by Rackspace Hosting, Inc. and other contributors<br> |
| 18 | Licensed under the Apache 2 License. | 19 | Licensed under the Apache License, Version 2.0. |
| 19 | HTML | 20 | HTML |
| 20 | 21 | ||
| 21 | version '1.2.0' do | 22 | version '1.2' do |
| 22 | self.release = '1.2.0' | 23 | self.release = '1.2.0' |
| 23 | self.base_url = "https://falcon.readthedocs.io/en/#{self.version}/" | 24 | self.base_url = "https://falcon.readthedocs.io/en/#{self.release}/" |
| 24 | end | 25 | end |
| 25 | |||
| 26 | end | 26 | end |
| 27 | end | 27 | end |
Binary file not shown.
Binary file not shown.
| @@ -1 +1 @@ | |||
| 1 | https://github.com/falconry/falcon/blob/master/docs/_static/img/logo.jpg | 1 | https://github.com/falconry/falconry.github.io |