Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

33
tldr/pageres Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pageres
> Capture screenshots of websites in various resolutions.
> More information: <https://github.com/sindresorhus/pageres-cli>.
- Take multiple screenshots of multiple URLs at different resolutions:
`pageres {{https://example.com/}} {{https://example2.com/}} {{1366x768}} {{1600x900}}`
- Provide specific options for a URL, overriding global options:
`pageres [{{https://example.com/}} {{1366x768}} --no-crop] [{{https://example2.com/}} {{1024x768}}] --crop`
- Provide a custom filename template:
`pageres {{https://example.com/}} {{1024x768}} --filename={{'<%= date %> - <%= url %>'}}`
- Capture a specific element on a page:
`pageres {{https://example.com/}} {{1366x768}} --selector='{{.page-header}}'`
- Hide a specific element:
`pageres {{https://example.com/}} {{1366x768}} --hide='{{.page-header}}'`
- Capture a screenshot of a local file:
`pageres {{local_file_path.html}} {{1366x768}}`