Skip to main content

Sphinx builder for i18n site on single deployment

Project description

https://github.com/atsphinx/mini18n/actions/workflows/main.yml/badge.svg?branch=main

Sphinx builder for i18n site on single deployment.

Overview

This provides custom builders that generate html document per translated languages on to outdir.

$ cd /path/to/doc
$ cat conf.py
...
mini18n_support_languages = ["en", "ja"]
...

$ make mini18n-html
$ ls _build/mini18n-html
en index.html ja

Getting started

You should ready for i18n configurations and manage translated files.

Install

pip install atsphinx-mini18n

Configuration

extensions = [
    "atsphinx.mini18n",
]

mini18n_default_language = "en"
mini18n_support_languages = ["en", "ja"]

Run build

$ make mini18n-html

OR

$ make mini18n-dirhtml

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

atsphinx_mini18n-0.5.0.tar.gz (83.0 kB view details)

Uploaded Source

Built Distribution

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

atsphinx_mini18n-0.5.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file atsphinx_mini18n-0.5.0.tar.gz.

File metadata

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

File hashes

Hashes for atsphinx_mini18n-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d4cb79991dd4c34e233a4800f20f1c274f508fdec0fe93fb2c89dfb40cfb8b0b
MD5 01548338eb471505b03384a592c6ab07
BLAKE2b-256 72ab9f245e417440397d064474d5d8ae55622070765f95162fe180144809f991

See more details on using hashes here.

Provenance

The following attestation bundles were made for atsphinx_mini18n-0.5.0.tar.gz:

Publisher: release.yml on atsphinx/mini18n

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

File details

Details for the file atsphinx_mini18n-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for atsphinx_mini18n-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e81771a4e4fc991296525275ba076025a63997de153a2d4d857693bee944d641
MD5 3be9bf6f08b0aa8f0a0c233edeef6787
BLAKE2b-256 3cf6491c97ef02780bd66f8c382052ad118c56165807c6deb67d04d32cd83dfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for atsphinx_mini18n-0.5.0-py3-none-any.whl:

Publisher: release.yml on atsphinx/mini18n

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