Skip to content

Directive to add link to other language page on page document #22

Description

@attakei

Overview

Render links to other language translations on body of document.

Spec

Write directive on document.

..
    This is `about.rst` on root of document.

.. mini18n::
# conf.py

# atsphinx.mini18n
mini18n_default_language = "en"
mini18n_support_languages = ["en", "ja"]
<!-- Output for language=en
<ul>
  <li>English</li>
  <li><a href="/ja/about.html">Japanese</a></li>
</ul>

<!-- Output for language=ja
<ul>
  <li><a href="/en/about.html">英語</a></li>
  <li>日本語</li>
</ul>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions