Skip to main content

mkdocs-build-webhook

A webhook that builds your mkdocs projects.

Run it with

Installation

mkdir -p /var/share/mkdocs-build-webhook/ /var/www/ /etc/mkdocs-build-webhook/ /var/www/.ssh/
ssh-keyscan github.com >> /var/www/.ssh/known_hosts
ssh-keygen -t ed25519 -f /var/www/.ssh/deploy_key -C "mkdocs-build-webhook" -N ''
chown -R www-data:www-data /var/share/mkdocs-build-webhook/ /var/www/

Add this config to /etc/mkdocs-build-webhook/mkdocs-build-webhook.conf:

[paths]
git = "/var/share/mkdocs-build-webhook/"
www = "/var/www/"

[auth]
secret = "<secret>"

[gunicorn]
bind = "0.0.0.0:5000"
workers = 4

/var/www/.ssh/config:

Host github.com
 HostName github.com
 Port 22
 User git
 CheckHostIP no
 IdentityFile "~/.ssh/deploy_key"

Install pipx:

apt install pipx
su www-data -s /bin/bash
pipx install mkdocs-build-webhook

/etc/systemd/system/mkdocs-build-webhook.service:

[Unit]
Description=mkdocs-build-webhook Service
After=network.target

[Service]
Type=simple
ExecStart=/var/www/.local/pipx/venvs/mkdocs-build-webhook/bin/mkdocs-build-webhook
User=www-data
Group=www-data
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target

Activate with:

sudo systemctl daemon-reload
sudo systemctl enable mkdocs-build-webhook.service
sudo systemctl start mkdocs-build-webhook.service

Does it work?

sudo journalctl -u mkdocs-build-webhook.service -f

Docker

podman build -t mkdocs-build-webhook .    
podman run  --userns keep-id --rm --name mkdocs-build-webhook -v ./dist/www/:/var/www/:z -e WEBHOOK_SECRET=secret -p 5000:5000 localhost/mkdocs-build-webhook

Metadata

Release files for mkdocs-build-webhook 0.1.14

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-build-webhook 0.1.14
File Size Uploaded Provenance Actions
mkdocs_build_webhook-0.1.14.tar.gz 3.2 kB Without provenance Details for mkdocs_build_webhook-0.1.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-build-webhook 0.1.14
File Interpreter ABI Platform Actions
mkdocs_build_webhook-0.1.14-py3-none-any.whl Python 3 none any Details for mkdocs_build_webhook-0.1.14-py3-none-any.whl

Total release size: 7.4 kB

Release files / mkdocs_build_webhook-0.1.14.tar.gz

Download URL mkdocs_build_webhook-0.1.14.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
03cbf02f699aafaa4c7ef2036002a5108a68cf60c5fe621b0b63ee13547936e9
BLAKE2b-256 checksum
How to use checksums
e829389c2a04e8a2e2416cf01ee7fc7c9b04698cec8433942292aa26e3098708
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Linux/6.6.14-200.fc39.x86_64

Release files / mkdocs_build_webhook-0.1.14-py3-none-any.whl

Download URL mkdocs_build_webhook-0.1.14-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a85d4906a2b4608149f71f3ada0c27800cd50cbbc037d0d0ad0c1e500237ef6
BLAKE2b-256 checksum
How to use checksums
63e217fdc29a0ecbd4f9b096234e4a96cf684515c6c9684755276a9650d716b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Linux/6.6.14-200.fc39.x86_64

Security for mkdocs-build-webhook 0.1.14

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