Skip to main content

A Sphinx extension to embed webpage screenshots.

Project description

sphinxcontrib-screenshot

A Sphinx extension to embed website screenshots and screencasts.

.. screenshot:: http://www.example.com
  :browser: chromium
  :viewport-width: 1280
  :viewport-height: 960
  :color-scheme: dark
  :status-code: 200,302
.. screencast:: http://www.example.com
  :viewport-width: 1280
  :viewport-height: 960
  :controls:
  :muted:

  document.querySelector('button').click();
  await new Promise(r => setTimeout(r, 1000));

Read more in the documentation.

Notes

This extension uses Playwright to capture a screenshot of the specified website only. No data is sent to any other external server; the request is limited to the specified website. Be cautious: avoid including sensitive information (such as authentication data) in the directive content.

Contributing

See CONTRIBUTING.md for details.

License

Apache 2.0; see LICENSE for details.

Disclaimer

This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxcontrib_screenshot-2.0.0.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinxcontrib_screenshot-2.0.0-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file sphinxcontrib_screenshot-2.0.0.tar.gz.

File metadata

  • Download URL: sphinxcontrib_screenshot-2.0.0.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for sphinxcontrib_screenshot-2.0.0.tar.gz
Algorithm Hash digest
SHA256 c10e41fd800f285001f4621161e002f631f0ee2f151826fc6ed1b70beb713a62
MD5 09f354b2e325219a5845680eafab86e0
BLAKE2b-256 7238a66609c9fc0c70d017927c9d7d2c08db58f86016c309e7882191979b3b56

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinxcontrib_screenshot-2.0.0.tar.gz:

Publisher: publish.yml on tushuhei/sphinxcontrib-screenshot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinxcontrib_screenshot-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_screenshot-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51ccd9432af830b66e6b3ac345b9d0e49f208526ed6aaaaa3b458b2c82eac53f
MD5 0b77e55c08d5d9a72ac50dde51747b3e
BLAKE2b-256 bdfda0a16c1bc469de490cc3170ef04d1823fb3476d895b7f92ef52d212ea71d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinxcontrib_screenshot-2.0.0-py3-none-any.whl:

Publisher: publish.yml on tushuhei/sphinxcontrib-screenshot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page