From 95aeeedb459288eee5921cd9a40ae431e58e49e5 Mon Sep 17 00:00:00 2001 From: Kazuya Takei Date: Mon, 25 Mar 2024 03:38:23 +0900 Subject: [PATCH] doc: Append example --- .../ja/LC_MESSAGES/usage/configuration.po | 6 ++++- doc/usage/configuration.rst | 23 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/doc/_locales/ja/LC_MESSAGES/usage/configuration.po b/doc/_locales/ja/LC_MESSAGES/usage/configuration.po index 6e0ca39..5a80206 100644 --- a/doc/_locales/ja/LC_MESSAGES/usage/configuration.po +++ b/doc/_locales/ja/LC_MESSAGES/usage/configuration.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: atsphinx-mini18n 0.0.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-03-25 03:33+0900\n" +"POT-Creation-Date: 2024-03-25 03:37+0900\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Kazuya Takei \n" "Language: ja\n" @@ -130,3 +130,7 @@ msgstr "言語間の遷移を用意にするために、提供されているス msgid "Example: set into document used \"Furo\" theme" msgstr "例: \"Furo\"テーマに使用するコード" +#: ../../usage/configuration.rst:90 +msgid "Example: for \"PyData Sphinx Theme\"" +msgstr "例: \"PyData Sphinx Theme\"テーマに使用するコード" + diff --git a/doc/usage/configuration.rst b/doc/usage/configuration.rst index b864a48..1c4bf30 100644 --- a/doc/usage/configuration.rst +++ b/doc/usage/configuration.rst @@ -85,3 +85,26 @@ Example: set into document used "Furo" theme "sidebar/scroll-end.html", ] } + +Example: for "PyData Sphinx Theme" +---------------------------------- + +.. code-block:: python + :name: conf.py + + from atsphinx.mini18n import get_template_dir + + # Setup + templates_path = [ + # ... Your templates + get_template_dir(), + ] + + # Insert snippets into header. + html_theme_options = { + # Override it. + "navbar_start": [ + "navbar-logo", + "mini18n/snippets/select-lang", + ], + }