2016-04-28 6 views

答えて

2

toctreeのこの動作はされては、ドキュメントのテーマ読むの特徴である(https://github.com/snide/sphinx_rtd_theme

テーマは自動折りたたみにするかどうかを制御するオプションcollapse_navigationがありpip install sphinx-rtd-theme

でそれをインストールします。ドキュメントの別の部分に移動するときのツリー。

# -- Options for HTML output ---------------------------------------------- 

# The theme to use for HTML and HTML Help pages. See the documentation for 
# a list of builtin themes. 
html_theme = 'sphinx_rtd_theme' 

# Theme options are theme-specific and customize the look and feel of a theme 
# further. For a list of options available for each theme, see the 
# documentation. 
html_theme_options = { 
    "collapse_navigation" : False 
} 

indexr.rst:index.rst

################# 
    Title 
################# 

Animals 
======= 

.. toctree:: 
    :maxdepth: 2 

    animals/index 

Flowers 
======= 

.. toctree:: 
    :maxdepth: 2 

    flowers/index 

動物/:答えを

#################### 
    Animals 
#################### 

.. toctree:: 
    :maxdepth: 2 

    cat 
    dog 
    moose 
+0

おかげで、私はあなたが誤識別しかし私の問題、私はどのように疑問に思って考えますこの例のように実際にドロップダウンを行うようにtoctreeのルールを書いてください。 ':dropdown Animals'コマンドが間違っています。私は実際のドキュメントページにドロップダウンする任意のグループセクションを設定したい – ApathyBear

+0

@ApathyBear私は同じことをしたい。あなたはそれをすることができましたか? – Montecarlo

関連する問題