Unified · Split
| @@ -4,11 +4,12 @@ module Docs · 3 unmodified lines | ||
| 4 | 4 | def get_name |
| 5 | 5 | canary_copy = '- This feature is available in the latest Canary' |
| 6 | 6 | name = at_css('article h1').content |
| 7 | − return name.sub(canary_copy, ' (experimental)') | |
| 7 | + return name.sub(canary_copy, ' (Experimental)') | |
| 8 | 8 | end |
| 9 | 9 | |
| 10 | 10 | def get_type |
| 11 | − return 'TODO add types' | |
| 11 | + breadcrumb_nodes = css('a.tracking-wide') | |
| 12 | + return breadcrumb_nodes.last.content || 'Miscellaneous' | |
| 12 | 13 | end |
| 13 | 14 | end |
| 14 | 15 | end |