Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix screenshot docs from mobile #90

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions docs/using-screenshot/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,36 +23,30 @@ Every website screenshot image files will be cached on the CDN for 1 month.

## Parameters

### device=mobile

Get a mobile version.

`/screenshot/device=mobile/:url`

### full=true

Get a full page version.

`/screenshot/full=true/:url`

### pdf (path)
### mobile (path)

Getting PDF version.
Get a mobile version.

`/screenshot/pdf/:url`
`/screenshot/mobile/:url`

### Combine params
### pdf (path)

Params can be combined using commas and after /screenshot/ path.
Getting PDF version.

`/screenshot/device=mobile,full=true/:url`
`/screenshot/pdf/:url`

## Live Demo

`/screenshot/dev.to`

![Screenshot](https://cdn.statically.io/screenshot/dev.to)

`/screenshot/device=mobile/dev.to`
`/screenshot/mobile/dev.to`

![Screenshot (mobile)](https://cdn.statically.io/screenshot/device=mobile/dev.to)
![Screenshot (mobile)](https://cdn.statically.io/screenshot/mobile/dev.to)