Skip to main content

MkDocs plugin and build pipeline for Markdown text projects with EPUB generation

Project description

text-forge

MkDocs plugin + GitHub Action for building text-based websites with EPUB, live editor, and GitHub integration.

Quick Start

GitHub Action (Publish Site)

# .github/workflows/publish.yml
- uses: shared-goals/text-forge@main
  with:
    mkdocs_config: mkdocs.yml
    docs_dir: text/ru
    site_dir: public/ru

Local Development

./install.sh  # Install dependencies
make serve    # Start dev server with editor

Features

✅ Live Editor Widget

  • Browser-based markdown editor with real-time preview
  • Pyodide + pymdown-extensions (client-side rendering)
  • Works on localhost (local saves in make serve) and production (GitHub commits)
  • Auto-detects environment (local vs production)
  • Russian translations

✅ GitHub Integration

  • Save to GitHub via Personal Access Token (PAT)
  • Commits directly to repository
  • Auto-triggers GitHub Actions workflow
  • Localhost auto-saves to disk

✅ EPUB Generation

  • Combines markdown chapters via mkdocs.yml nav
  • Converts PyMdown blocks to Pandoc format
  • Generates EPUB with custom CSS
  • CLI: text-forge epub --config=mkdocs.yml

✅ GitHub Actions

  • Composite action in action.yml
  • Builds site + EPUB in one workflow
  • Publishes to GitHub Pages
  • Example: whattodo/publish.yml

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

sg_text_forge-0.1.2.tar.gz (80.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sg_text_forge-0.1.2-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file sg_text_forge-0.1.2.tar.gz.

File metadata

  • Download URL: sg_text_forge-0.1.2.tar.gz
  • Upload date:
  • Size: 80.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sg_text_forge-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b090a777f669734af280fc3359fcb8d94b4b3079c18ea30e503ba39f8566348e
MD5 4faca3c2303c04f6b33cdedc8eecca06
BLAKE2b-256 d0774cb1d8760b3bdd5b141f88079fdc32c8487db00f48469bc178060400d388

See more details on using hashes here.

Provenance

The following attestation bundles were made for sg_text_forge-0.1.2.tar.gz:

Publisher: publish-pypi.yml on shared-goals/text-forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sg_text_forge-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sg_text_forge-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 44.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sg_text_forge-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9638a8ecfcfed9d9fcebbdabef3f302c6bb069b31b39f529d25159954b835a4b
MD5 007adc49025ccd367efc24f11925155b
BLAKE2b-256 1db501ebfcfd42086529d5baa141fba5a725238570d10f446b14e71d5f21bb56

See more details on using hashes here.

Provenance

The following attestation bundles were made for sg_text_forge-0.1.2-py3-none-any.whl:

Publisher: publish-pypi.yml on shared-goals/text-forge

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