mirror of
https://github.com/lxmfy/docs.git
synced 2025-11-23 00:59:08 +00:00
No description
| .github/workflows | ||
| locales/ru/LC_MESSAGES | ||
| source | ||
| .dockerignore | ||
| .gitignore | ||
| docker-compose.prod.yml | ||
| Dockerfile | ||
| Dockerfile.prod | ||
| make.bat | ||
| Makefile | ||
| nginx.conf | ||
| poetry.lock | ||
| pyproject.toml | ||
| README.md | ||
LXMFy Docs
Docs for the LXMFy bot framework. Built using Sphinx and Furo theme.
Building
poetry install --with dev
# Build English documentation (HTML, EPUB, PDF, Text)
make html
make epub
make latexpdf
make text
# Build Russian documentation
make html-ru
make epub-ru
make latexpdf-ru
make text-ru
# Build documentation for any language (replace XX with language code)
make html-XX epub-XX latexpdf-XX text-XX
# Build all formats for all languages (English + all in locales/)
# The GitHub Actions CI does this automatically
Running
make serve
Docker
Local/Development (BusyBox)
docker build -t lxmfy-docs .
docker run -p 8080:8080 lxmfy-docs
Production (Nginx)
docker build -f Dockerfile.prod -t lxmfy-docs:prod .
docker run -p 8080:8080 lxmfy-docs:prod
If using Podman, replace docker with podman.
Translations
How to Add or Update Translations
-
Generate translation templates:
make pot -
For a new language (e.g.,
frfor French):# Create directory structure mkdir -p locales/fr/LC_MESSAGES # Copy and rename template files cp build/gettext/*.pot locales/fr/LC_MESSAGES/ rename 's/\.pot$/.po/' locales/fr/LC_MESSAGES/*.pot # Translate the msgstr fields in the .po files -
For existing languages (update translations):
# Edit locales/*/LC_MESSAGES/*.po files to update translations -
Build the translated documentation:
# Build all formats for your language (replace XX with language code) make html-XX epub-XX latexpdf-XX text-XX # GitHub Actions automatically builds all languages and formats
Note: The system automatically detects all languages in locales/ and builds all formats for them. Adding a new language requires only creating the translation files - no workflow changes needed!