Unified · Split
| @@ -15,11 +15,7 @@ module Docs · 14 unmodified lines | |||
| 15 | end | 15 | end |
| 16 | 16 | ||
| 17 | def get_type | 17 | def get_type |
| 18 | if base_url.path.start_with?('/guide') | 18 | if slug.start_with?('tf/audio') |
| 19 | 'Guides' | ||
| 20 | elsif base_url.path.start_with?('/tutorials') | ||
| 21 | 'Tutorials' | ||
| 22 | elsif slug.start_with?('tf/audio') | ||
| 23 | 'tf.audio' | 19 | 'tf.audio' |
| 24 | elsif slug.start_with?('tf/autograph') | 20 | elsif slug.start_with?('tf/autograph') |
| 25 | 'tf.autograph' | 21 | 'tf.autograph' |
| @@ -1,9 +0,0 @@ | |||
| 1 | module Docs | ||
| 2 | class TensorflowGuide < Tensorflow | ||
| 3 | include MultipleBaseUrls | ||
| 4 | |||
| 5 | self.name = 'TensorFlow Guides' | ||
| 6 | self.slug = 'tensorflow_guide' | ||
| 7 | self.base_urls = ['https://www.tensorflow.org/guide/', 'https://www.tensorflow.org/tutorials/'] | ||
| 8 | end | ||
| 9 | end | ||
Binary file not shown.
Binary file not shown.
| @@ -1 +0,0 @@ | |||
| 1 | https://www.tensorflow.org/images/favicon.png | ||