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.1.tar.gz (31.4 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.1-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinxcontrib_screenshot-1.2.1.tar.gz
  • Upload date:
  • Size: 31.4 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.1.tar.gz
Algorithm Hash digest
SHA256 266d964d2376e9e6f6a9154276b31f3c1dbf5ddf5c4782c01f377a338f494dfa
MD5 cbb0380fbe4f35ef50b36918b0685e6b
BLAKE2b-256 d838cc1019724af408ecf809a70e86568b1a43e3468b3b3b1763d292c52b77ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sphinxcontrib_screenshot-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69b466cbe03308537b7677c14af9ab5f7a53dba497e8aa72c4e6a25cdb19cd0b
MD5 3f69c1dabaa9665c1193268abb3ab905
BLAKE2b-256 8c34926d5e64d2d190ae07b188d2957950cfc2521312581f61bde17b2cf5571f

See more details on using hashes here.

Provenance

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