Skip to content

Commit

Permalink
doc: Append example
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Mar 24, 2024
1 parent f4b464d commit 95aeeed
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/_locales/ja/LC_MESSAGES/usage/configuration.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language: ja\n"
Expand Down Expand Up @@ -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\"テーマに使用するコード"

23 changes: 23 additions & 0 deletions doc/usage/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
}

0 comments on commit 95aeeed

Please sign in to comment.