Skip to main content

mkdocs_fedi_comment

[!NOTE] This plugin requires a comments-server to work.

This plugin is meant to enable commenting from the Fediverse on sites build with mkdocs. This plugin uses the overrides provided by mkdocs-material. This means that a simplest configuration would look like

theme:
  name: material

plugins:
  - fedi-comments:
      base_path: https://comments.bovine.social/
      actor:
        name: mkdocs-fedi-comments
        handle: mkdocs_fedi_comments
  - search

The fedi-comments plugin provided by this package requires some configuration. base_path is where your comments server is located. This is used to determine the location of the ActivityPub objects via {base_path}/pages/{encoded_url} and for the API endpoint to retrieve comments from, i.e. {base_path}/comments/{encoded_url}.

Second the values under actor are used to create the used ActivityPub actor. In addition to name and handle, which are required, one currently can also specify summary and icon.

The sample site

The sample site is deployed to https://bovine.codeberg.page/mkdocs_fedi_comments/ and the corresponding installation of comments is configured with

[[pages]]
url = "https://bovine.codeberg.page/mkdocs_fedi_comments"
name = "mkdocs_fedi_comments"

Development

There are some python tests that can be run via

uv run pytest

Similarly one can check that the sample_site builds via

cd sample_site
uv run mkdocs build

This executes the plugin, which is included in the sample site as an editable dependency.

JavaScript component

The replies are displayed through a JavaScript component. It is automatically build with the python package. One can manually run this step via

uv run hatch build --hooks-only --target wheel

Development

First enter the js directory.

To visually develop the component run, you have to first generate the MSW service worker and the MSW Docs.

npx msw init public/ --save

then you can run storybook via

npm run storybook

Metadata

Release files for mkdocs-fedi-comments 0.1.7

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

Source distribution (sdist)

Source distribution for mkdocs-fedi-comments 0.1.7
File Size Uploaded Provenance
mkdocs_fedi_comments-0.1.7.tar.gz 23.3 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-fedi-comments 0.1.7
File Interpreter ABI Platform
mkdocs_fedi_comments-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 23.3 MB

Release files / mkdocs_fedi_comments-0.1.7.tar.gz

Download URL mkdocs_fedi_comments-0.1.7.tar.gz
Size 23.3 MB
Tags Source
SHA-256 checksum
How to use checksums
9987cc59c9878516a67774f78f63bf792fee44a705301220f97d3ab225456cd3
BLAKE2b-256 checksum
How to use checksums
b1da6073bc2c017c3de231c6eeb1eec0bcb95e250b7f7541473b251c062d86ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.5

Release files / mkdocs_fedi_comments-0.1.7-py3-none-any.whl

Download URL mkdocs_fedi_comments-0.1.7-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b43f2fbff212d68c1ddafc089d6c1f84288cedae8d898f3dc6d736856ddd8010
BLAKE2b-256 checksum
How to use checksums
8d43b5b88ea82da663c07427e6ead2f69e10bd0f9cf9765eafad5fa6685c8242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.5

Security for mkdocs-fedi-comments 0.1.7

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.

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