Unified · Split
| @@ -15,11 +15,7 @@ module Docs · 14 unmodified lines | ||
| 15 | 15 | end |
| 16 | 16 | |
| 17 | 17 | def get_type |
| 18 | − if base_url.path.start_with?('/guide') | |
| 19 | − 'Guides' | |
| 20 | − elsif base_url.path.start_with?('/tutorials') | |
| 21 | − 'Tutorials' | |
| 22 | − elsif slug.start_with?('tf/audio') | |
| 18 | + if slug.start_with?('tf/audio') | |
| 23 | 19 | 'tf.audio' |
| 24 | 20 | elsif slug.start_with?('tf/autograph') |
| 25 | 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 | |