File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,18 @@ def call
13
13
14
14
remove_selectors = [
15
15
'div.grid > a' , # prev-next links
16
- 'button' , # "show more" etc. buttons
17
- 'div.order-last' , # code iframe containers
18
- 'a[title="Open in CodeSandbox"]' , # codesandbox links
16
+ 'button' , # "show more" etc. buttons
17
+ 'div.order-last' , # code iframe containers
18
+ 'div.dark-image' , # dark images
19
+ 'a[title="Open in CodeSandbox"]' , # codesandbox links
19
20
]
20
21
css ( *remove_selectors ) . each do |node |
21
22
node . remove
22
23
end
23
24
25
+ # Fix images not loading
26
+ css ( 'img' ) . remove_attr ( 'srcset' )
27
+
24
28
# Remove recipe blocks - TODO transform to outgoing link to docs
25
29
css ( 'h4[id^="examples-"]' ) . each do |node |
26
30
node . parent . parent . parent . remove
You can’t perform that action at this time.
0 commit comments