diff --git a/assets/images/docs.png b/assets/images/docs.png index f0122136..5874d283 100644 Binary files a/assets/images/docs.png and b/assets/images/docs.png differ diff --git a/assets/images/docs@2x.png b/assets/images/docs@2x.png index 73877a2f..5d257215 100644 Binary files a/assets/images/docs@2x.png and b/assets/images/docs@2x.png differ diff --git a/assets/javascripts/collections/types.coffee b/assets/javascripts/collections/types.coffee index 83a68979..8e76eeab 100644 --- a/assets/javascripts/collections/types.coffee +++ b/assets/javascripts/collections/types.coffee @@ -7,7 +7,7 @@ class app.collections.Types extends app.Collection (result[@_groupFor(type)] ||= []).push(type) result.filter (e) -> e.length > 0 - GUIDES_RGX = /(^|\()(guides?|tutorials?|reference|book|getting\ started|manual)($|[\):])/i + GUIDES_RGX = /(^|\()(guides?|tutorials?|reference|book|getting\ started|manual|examples)($|[\):])/i APPENDIX_RGX = /appendix/i _groupFor: (type) -> diff --git a/assets/javascripts/news.json b/assets/javascripts/news.json index 5af9cee1..505e0099 100644 --- a/assets/javascripts/news.json +++ b/assets/javascripts/news.json @@ -1,5 +1,8 @@ [ [ + "2016-10-10", + "New documentation: scikit-learn" + ], [ "2016-09-18", "New documentations: pandas and Twig" ], [ diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index d3699f4d..f13d43b6 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -504,6 +504,11 @@ credits = [ '2011 the scikit-image team', 'BSD', 'http://scikit-image.org/docs/dev/license.html' + ], [ + 'scikit-learn', + '2007-2016 The scikit-learn developers', + 'BSD', + 'https://raw.githubusercontent.com/scikit-learn/scikit-learn/master/COPYING' ], [ 'Sinon', '2010-2016 Christian Johansen', diff --git a/assets/stylesheets/global/_icons.scss b/assets/stylesheets/global/_icons.scss index 7b5d6861..2105fa79 100644 --- a/assets/stylesheets/global/_icons.scss +++ b/assets/stylesheets/global/_icons.scss @@ -120,6 +120,7 @@ ._icon-scikit_image:before { background-position: -6rem -6rem; } ._icon-twig:before { background-position: -7rem -6rem; } ._icon-pandas:before { background-position: -8rem -6rem; } +._icon-scikit_learn:before { background-position: -9rem -6rem; } ._icon-bottle:before { background-position: 0 -7rem; } ._icon-docker:before { background-position: -1rem -7rem; } ._icon-cakephp:before { background-position: -2rem -7rem; } diff --git a/assets/stylesheets/pages/_sphinx.scss b/assets/stylesheets/pages/_sphinx.scss index 4572206c..967fa666 100644 --- a/assets/stylesheets/pages/_sphinx.scss +++ b/assets/stylesheets/pages/_sphinx.scss @@ -6,12 +6,12 @@ dd > dl:not(.docutils) > dt { @extend %block-label; } dt + dt { margin-top: -.5em; } - .note, .admonition, div.versionadded, div.versionchanged, .deprecated-removed, .deprecated { @extend %note; } + .note, .admonition, div.versionadded, div.versionchanged, .deprecated-removed, .deprecated, .topic { @extend %note; } .important { @extend %note-orange; } .warning, .deprecated-removed, .deprecated { @extend %note-red; } - .versionmodified, span.title { + .versionmodified, span.title, .topic-title { display: block; font-weight: bold; } @@ -37,16 +37,6 @@ .admonition-title + dl { padding-top: .5em; } td > div { margin: 0 !important; } - - .row-fluid { - h2 { - background: none; - border: none; - > a { - float: none; - } - } - } } ._sphinx { diff --git a/lib/docs/filters/scikit_learn/clean_html.rb b/lib/docs/filters/scikit_learn/clean_html.rb new file mode 100644 index 00000000..200a31a1 --- /dev/null +++ b/lib/docs/filters/scikit_learn/clean_html.rb @@ -0,0 +1,24 @@ +module Docs + class ScikitLearn + class CleanHtmlFilter < Filter + def call + if root_page? + at_css('h1').content = 'scikit-learn' + + css('.row-fluid').each do |node| + html = '