diff --git a/requirements.txt b/requirements.txt index 3f7b2ce568..268b5eb3d1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -sphinx==5.3.0 -sphinx-rtd-theme==1.2.1 +sphinx==9.1.0 +sphinx-rtd-theme==3.1.0 sphinxcontrib-wavedrom==3.0.4 -sphinx-multiversion @ git+https://github.com/samuel-emrys/sphinx-multiversion.git@cd723351f687c98d32834226ae7b3ec9e63bcba5 +sphinx-multiversion==0.2.4 sphinx-copybutton==0.5.2 -sphinx-intl==2.1.0 +sphinx-intl==2.3.2 diff --git a/source/conf.py b/source/conf.py index 9de7350c7a..6d4b900f18 100644 --- a/source/conf.py +++ b/source/conf.py @@ -191,7 +191,8 @@ 'canonical_url': os.getenv('sphinx_canonical_url', ''), 'analytics_id': '', 'logo_only': False, - 'display_version': True, + 'version_selector': True, + 'language_selector': True, 'prev_next_buttons_location': 'bottom', 'style_external_links': False, # Toc options diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/AFix.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/AFix.po index 96ac7d0284..d993a0cac4 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/AFix.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/AFix.po @@ -126,7 +126,7 @@ msgstr "``AFix(8, 16, 2 exp)`` 可以表示:``32, 36, 40, 44, 48, 52, 56, 60, msgid "" "Note: ``AFix`` will use 5 bits to save this type as that can store " "``16``, its ``maxValue``." -msgstr "注意:``AFix`` 将使用 5 位来保存此类型,因此它可以存储 ``16``,即它的 ``maxValue``。" +msgstr "注意:``AFix`` 将使用 5 位来保存此类型,因此它可以存储 ``16``,即它的 ``maxValue`` 。" #: ../../SpinalHDL/Data types/AFix.rst:83 msgid "Mathematical Operations" diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Developers area/spinalhdl_datamodel.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Developers area/spinalhdl_datamodel.po index 79ce4c0054..e12680eb34 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Developers area/spinalhdl_datamodel.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Developers area/spinalhdl_datamodel.po @@ -59,7 +59,7 @@ msgstr "带有白色菱形的链接意味着“源中有一个对目标的引用 #: ../../SpinalHDL/Developers area/spinalhdl_datamodel.rst:22 msgid "The * symbol mean \"multiple\"" -msgstr "``* `` 符号表示“多个”" +msgstr "``*`` 符号表示“多个”" #: ../../SpinalHDL/Developers area/spinalhdl_datamodel.rst:24 msgid "" diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Formal verification/index.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Formal verification/index.po index f71c28e60b..6e0c4cea1f 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Formal verification/index.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Formal verification/index.po @@ -242,7 +242,7 @@ msgstr "T" #: ../../SpinalHDL/Formal verification/index.rst:296 msgid "Return ``that`` delayed by ``delay`` cycles. (default 1 cycle)" -msgstr "返回 ``delay`` 周期以前的 ``that``值 。 (默认1个周期)" +msgstr "返回 ``delay`` 周期以前的 ``that`` 值 。 (默认1个周期)" #: ../../SpinalHDL/Formal verification/index.rst:297 msgid "``rose(that : Bool)``" diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Getting Started/Install and setup.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Getting Started/Install and setup.po index 1e9e9891fa..ba5f7ebb68 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Getting Started/Install and setup.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Getting Started/Install and setup.po @@ -628,7 +628,7 @@ msgid "" "contains the configuration of ``Spinal``." msgstr "" "在 ``hw/spinal/yourprojectname/`` 中,是你的IP描述,仿真测试,形式化验证测试;还有 " -"``Config.scala``,其中包含 ``Spinal``的配置。" +"``Config.scala``,其中包含 ``Spinal`` 的配置。" #: ../../SpinalHDL/Getting Started/Install and setup.rst:308 msgid "" diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Getting Started/Scala Guide/basics.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Getting Started/Scala Guide/basics.po index 066d318190..9b013a661b 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Getting Started/Scala Guide/basics.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Getting Started/Scala Guide/basics.po @@ -205,7 +205,7 @@ msgstr "名为 ``apply`` 的函数很特殊,因为您无需输入名称即可 #: ../../SpinalHDL/Getting Guide/basics.rst:157 Started/Scala msgid "This concept is also applicable for Scala ``object`` (static)" -msgstr "这个概念也适用于 Scala ``object``(静态)" +msgstr "这个概念也适用于 Scala ``object`` (静态)" #: ../../SpinalHDL/Getting Guide/basics.rst:168 Started/Scala msgid "Object" diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Other language features/utils.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Other language features/utils.po index d61b339ee0..d8040d87f1 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Other language features/utils.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Other language features/utils.po @@ -92,7 +92,7 @@ msgstr "BigInt" #: ../../SpinalHDL/Other features/utils.rst:29 language msgid "Return the first ``by`` multiply from ``that`` (included)" -msgstr "返回第一个 ``by`` 乘以 ``that``(包含) 的值" +msgstr "返回第一个 ``by`` 乘以 ``that`` (包含) 的值" #: ../../SpinalHDL/Other features/utils.rst:30 language msgid "``Cat(x: Data*)``" diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Semantic/rules.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Semantic/rules.po index 968ae78169..cfdbec361a 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Semantic/rules.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Semantic/rules.po @@ -201,7 +201,7 @@ msgstr "" msgid "" "You can implement exactly the same functionality by mixing the previous " "example with a function that assigns to ``counter``:" -msgstr "您可以通过将前面的示例与赋值给 ``counter``的函数混合来实现完全相同的功能:" +msgstr "您可以通过将前面的示例与赋值给 ``counter`` 的函数混合来实现完全相同的功能:" #: ../../SpinalHDL/Semantic/rules.rst:142 msgid "You can also integrate the conditional check inside the function:" diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Simulation/install/VCS.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Simulation/install/VCS.po index 6d91a20a8a..c24c589732 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Simulation/install/VCS.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Simulation/install/VCS.po @@ -96,7 +96,7 @@ msgstr "VCS 后台遵循三步编译流程:" #: ../../SpinalHDL/Simulation/install/VCS.rst:55 msgid "Analysis step: analysis the HDL model using ``vlogan`` and ``vhdlan``." -msgstr "分析步骤:使用 ``vlogan`` 和 ``vhdlan``分析HDL模型。" +msgstr "分析步骤:使用 ``vlogan`` 和 ``vhdlan`` 分析HDL模型。" #: ../../SpinalHDL/Simulation/install/VCS.rst:57 msgid "" @@ -175,7 +175,7 @@ msgstr "波形生成" msgid "" "VCS backend can generate three waveform format: ``VCD``, ``VPD`` and " "``FSDB`` (Verdi required)." -msgstr "VCS 后端可以生成三种波形格式:``VCD``、``VPD`` 和 ``FSDB``(需要 Verdi)。" +msgstr "VCS 后端可以生成三种波形格式:``VCD``、``VPD`` 和 ``FSDB`` (需要 Verdi)。" #: ../../SpinalHDL/Simulation/install/VCS.rst:105 msgid "You can enable them by the following methods of ``SpinalSimConfig``," diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Simulation/signal.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Simulation/signal.po index 97d1b04644..27537fc644 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Simulation/signal.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Simulation/signal.po @@ -177,7 +177,7 @@ msgstr "没有 API 可以将地址和/或单个数据位转换为自然的字位 msgid "" "There is no API to mark any memory location with simulation `X` (undefined) " "state." -msgstr "没有 API 可以用仿真中的 `X`(未定义)状态来标记任何内存位置。" +msgstr "没有 API 可以用仿真中的 `X` (未定义)状态来标记任何内存位置。" #: ../../SpinalHDL/Simulation/signal.rst:126 msgid "``Mem.getBigInt(address: Long): BigInt``"