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-1.2.0.tar.gz (30.0 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-1.2.0-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sphinxcontrib_screenshot-1.2.0.tar.gz
Algorithm Hash digest
SHA256 3e634f0b8f4383a08392a08afa6459648ee13fbf4bcfb9a4d57767caebef164b
MD5 1771ea8eaef37ba674f19853400b1638
BLAKE2b-256 ba756a84ce99e91b538241554b3e9a4a78a46855f338060e040121d5099f77cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinxcontrib_screenshot-1.2.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-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_screenshot-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d2b99d8aba24a288357d0bad77680d8faa663424a3d6d023954f4035e7a1f35
MD5 32785524fc0168b3e4e318a98a25e678
BLAKE2b-256 e9fcb18f6c719578592c60130402b76920118071cd46732fbee5a60d5315b50f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinxcontrib_screenshot-1.2.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