Skip to content

Commit fbe6d0c

Browse files
committed
chore: Simplify guide screen capture
1 parent e910fae commit fbe6d0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/screenshots/screenshot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
for name, href in zip(example_names, example_hrefs):
2828
if name.endswith('_noop'):
2929
continue
30-
print(f'Capturing {name}...')
31-
chromeless_url = url + href.replace('docs.help_', 'docs.') + '?mode=chromeless'
30+
chromeless_url = url + href.replace('docs.help_', 'docs.')
31+
print(f'Capturing {chromeless_url}')
3232
page.goto(chromeless_url)
3333
page.wait_for_timeout(delay_between_screenshots)
3434
page.locator('.main>.flex>.flex:first-child').screenshot(path=str(output_dir / f'{name}.png'))

0 commit comments

Comments
 (0)