======================================================================= テーマの紹介 ======================================================================= 組み込みスタイル ======================================================================= | Sphinxには、デフォルトで9つのHTMLテーマが用意されています。 | 詳細については `公式ドキュメント `_ を参照して下さい。 conf.py の 下記行を書き換える事により変更できます。 :: html_theme = 'default' basic ----------------------------------------------------------------------- .. image:: img/basic.png * conf.pyの書き換え:: html_theme = 'basic' default ----------------------------------------------------------------------- .. image:: img/default.png * conf.pyの書き換え:: html_theme = 'default' sphinxdoc ----------------------------------------------------------------------- .. image:: img/sphinxdoc.png * conf.pyの書き換え:: html_theme = 'sphinxdoc' scrolls ----------------------------------------------------------------------- .. image:: img/scrolls.png * conf.pyの書き換え:: html_theme = 'scrolls' agogo ----------------------------------------------------------------------- .. image:: img/agogo.png * conf.pyの書き換え:: html_theme = 'agogo' nature ----------------------------------------------------------------------- .. image:: img/nature.png * conf.pyの書き換え:: html_theme = 'nature' pyramid ----------------------------------------------------------------------- .. image:: img/pyramid.png * conf.pyの書き換え:: html_theme = 'pyramid' haiku ----------------------------------------------------------------------- .. image:: img/haiku.png * conf.pyの書き換え:: html_theme = 'haiku' traditional ----------------------------------------------------------------------- .. image:: img/traditional.png * conf.pyの書き換え:: html_theme = 'traditional' epub ----------------------------------------------------------------------- .. image:: img/epub.png * conf.pyの書き換え:: html_theme = 'epub' サードパーティ製のオーソドックススタイル ======================================================================= * Pythonのパッケージ管理ツール **easy_install** や **pip** でSphinxの拡張テーマをインストールし利用する事が可能です。 * 組み込みスタイルと違い、conf.pyの書き換えが複数の場合が多いので注意して下さい。 sphinxjp.themes.bizstyle ----------------------------------------------------------------------- http://pypi.python.org/pypi/sphinxjp.themes.bizstyle/ .. image:: img/bizstyle.png * インストール方法例:: easy_install sphinxjp.themes.bizstyle * conf.pyの書き換え:: html_theme = 'bizstyle' extensions = ['sphinxjp.themecore'] # 下記オプションでバックグラウンドの色を変更する事が可能です。※必須ではありません html_theme_options = {'maincolor' : "#696969"} sphinxjp.themes.dotted ----------------------------------------------------------------------- http://pypi.python.org/pypi/sphinxjp.themes.dotted/ .. image:: img/dotted.png * インストール方法例:: easy_install sphinxjp.themes.dotted * conf.pyの書き換え:: extensions = ['sphinxjp.themecore'] html_theme = 'dotted' sphinxjp.themes.sphinxjp ----------------------------------------------------------------------- http://pypi.python.org/pypi/sphinxjp.themes.sphinxjp/ .. image:: img/sphinxjp.png * インストール方法例:: easy_install sphinxjp.themes.sphinxjp * conf.pyの書き換え:: extensions = ['sphinxjp.themecore'] html_theme = 'sphinxjp' sphinxjp.themes.trstyle ----------------------------------------------------------------------- http://pypi.python.org/pypi/sphinxjp.themes.trstyle/ .. image:: img/trstyle.png * インストール方法例:: easy_install sphinxjp.themes.trstyle * conf.pyの書き換え:: extensions = ['sphinxjp.themecore'] html_theme = 'trstyle' サードパーティ製のスライドスタイル ======================================================================= sphinxjp.themes.s6 ----------------------------------------------------------------------- http://pypi.python.org/pypi/sphinxjp.themes.s6/ ※デモについてはURL先参照 * インストール方法例:: easy_install sphinxjp.themes.s6 * conf.pyの書き換え:: extensions = ['sphinxjp.themecore'] html_theme = 's6' sphinxjp.themes.htmlslide ----------------------------------------------------------------------- http://pypi.python.org/pypi/sphinxjp.themes.htmlslide ※デモについてはURL先参照 * インストール方法例:: easy_install sphinxjp.themes.htmlslide * conf.pyの書き換え:: extensions = ['sphinxjp.themecore'] html_theme = 'htmlslide' pygments_style = 'monokai' sphinxjp.themes.impressjs ----------------------------------------------------------------------- http://pypi.python.org/pypi/sphinxjp.themes.impressjs/ ※デモについてはURL先参照 * インストール方法例:: easy_install sphinxjp.themes.impressjs * conf.pyの書き換え:: extensions = ['sphinxjp.themecore'] html_theme = 'impressjs' html_use_index = False