Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 103 KiB |
@ -0,0 +1,7 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.TensorflowPage extends app.views.BasePage
|
||||
prepare: ->
|
||||
@highlightCode @findAll('pre[class*="lang-c++"]'), 'cpp'
|
||||
@highlightCode @findAll('pre.lang-python'), 'python'
|
||||
return
|
@ -1,12 +1,6 @@
|
||||
._tensorflow {
|
||||
h2, h3, h4 { @extend %block-heading, %label-blue; }
|
||||
p > code, li > code { @extend %label; }
|
||||
@extend %simple;
|
||||
|
||||
// These are used for lists of arguments and return values in the docs.
|
||||
b > code {
|
||||
@extend %label;
|
||||
background-color: initial;
|
||||
font-weight: 500;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
h4 { @extend %block-label; }
|
||||
> .toc ul ul { margin: .25rem 0; }
|
||||
}
|
||||
|
@ -1,18 +1,31 @@
|
||||
module Docs
|
||||
class Tensorflow < UrlScraper
|
||||
self.name = 'TensorFlow'
|
||||
self.slug = 'tensorflow'
|
||||
self.type = 'tensorflow'
|
||||
self.release = '0.6.0-py'
|
||||
self.base_url = 'https://www.tensorflow.org/versions/0.6.0/api_docs/python/'
|
||||
|
||||
options[:container] = '#content'
|
||||
html_filters.push 'tensorflow/entries', 'tensorflow/clean_html'
|
||||
|
||||
html_filters.push 'tensorflow/entries', 'tensorflow/clean_html', 'clean_html'
|
||||
options[:container] = '#content'
|
||||
|
||||
options[:attribution] = <<-HTML
|
||||
© The TensorFlow Authors. All rights reserved.<br>
|
||||
© 2015 The TensorFlow Authors. All rights reserved.<br>
|
||||
Licensed under the Apache 2.0 License.
|
||||
HTML
|
||||
|
||||
version 'Python' do
|
||||
self.base_url = 'https://www.tensorflow.org/versions/r0.7/api_docs/python/'
|
||||
self.release = '0.7'
|
||||
end
|
||||
|
||||
version 'C++' do
|
||||
self.base_url = 'https://www.tensorflow.org/versions/r0.7/api_docs/cc/'
|
||||
self.release = '0.7'
|
||||
|
||||
options[:fix_urls] = ->(url) {
|
||||
url.sub! '/api_docs/cc/class', '/api_docs/cc/Class'
|
||||
url.sub! '/api_docs/cc/struct', '/api_docs/cc/Struct'
|
||||
url
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Before Width: | Height: | Size: 647 B After Width: | Height: | Size: 701 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 898 B |