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.4.1.tar.gz (84.8 kB view details)

Uploaded Source

Built Distribution

atsphinx_mini18n-0.4.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for atsphinx_mini18n-0.4.1.tar.gz
Algorithm Hash digest
SHA256 1157844de39ee91a1ed9b5aa35eef5749759c8e68a3fe7ef8ba3d8cfbe57d368
MD5 7e468d1698538c1e4d4987941f1d79e9
BLAKE2b-256 cce36d45581648704e1447ce2ce9e61ef2eaba7e8add3da8c3761a931dcd4fdc

See more details on using hashes here.

Provenance

The following attestation bundles were made for atsphinx_mini18n-0.4.1.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.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for atsphinx_mini18n-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43f7e5982346a8d4f6d525c046fb054d89a21978704bdbefc43ac6e6ae70e651
MD5 31cb10d83c1f88b7b910662d772e0db3
BLAKE2b-256 4f0230aab102322ab68846db4145be35606e66e36af791507010d468ce542c58

See more details on using hashes here.

Provenance

The following attestation bundles were made for atsphinx_mini18n-0.4.1-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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page