拡張機能したい(extensions

 1# -- General configuration ---------------------------------------------------
 2# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
 3
 4extensions = [
 5    "sphinx.ext.autodoc",
 6    "sphinx.ext.doctest",
 7    "sphinx.ext.intersphinx",
 8    "sphinx.ext.todo",
 9    "sphinx.ext.coverage",
10    "sphinx.ext.mathjax",
11    "sphinx.ext.ifconfig",
12    "sphinx.ext.viewcode",
13    "sphinx_rtd_theme",
14    "myst_parser",
15    "sphinxext.opengraph",
16    "sphinx_openbutton",
17]

Sphinxにはさまざまな拡張機能パッケージが存在し、より便利にできます。 pipなどを使ってインストールしたあと、conf.pyextensions = []の部分に追加して有効化します。 詳しい設定は、それぞれの拡張機能のドキュメントを参照してください。

拡張機能パッケージの全体設定はconf.pyに記述しますが、パッケージによっては各ページのフロントマター設定できる場合もあります。