Skip to main content

sphinxcontrib-friendlinks

A Sphinx extension for rendering beautiful friend link cards in your documentation.

Installation

pip install sphinxcontrib-friendlinks

Usage

Add the extension to your conf.py:

extensions = [
    'sphinxcontrib_friendlinks',
]

Then use the friendlink directive in your reStructuredText files:

.. friendlink::
   :name: Example Site
   :link: https://example.com
   :avatar: https://example.com/avatar.png
   :descr: This is an example site description
   :siteshot: https://example.com/screenshot.png
   :rss: https://example.com/rss.xml

Options

Option Required Description
name Yes Site name
link Yes Site URL
avatar Yes Avatar image URL
descr Yes Site description
siteshot No Site screenshot URL
rss No RSS feed URL

Features

  • Clean card-style layout with avatar, name, description
  • Optional site screenshot display
  • RSS link with icon
  • Responsive design for mobile devices
  • Dark mode support (prefers-color-scheme)
  • XSS protection for user input

Example

Friend Link Card Example

License

MIT

Metadata

Release files for sphinxcontrib-friendlinks 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinxcontrib-friendlinks 0.1.2
File Size Uploaded Provenance Actions
sphinxcontrib_friendlinks-0.1.2.tar.gz 4.2 kB Without provenance Details for sphinxcontrib_friendlinks-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinxcontrib-friendlinks 0.1.2
File Interpreter ABI Platform Actions
sphinxcontrib_friendlinks-0.1.2-py3-none-any.whl Python 3 none any Details for sphinxcontrib_friendlinks-0.1.2-py3-none-any.whl

Total release size: 10.5 kB

Security for sphinxcontrib-friendlinks 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page