【发布时间】:2021-08-31 01:23:31
【问题描述】:
我有这个源目录结构:
.
├── conf.py
├── devel
│ └── python
│ ├── Controles de flujo, condicionales y bucles.md
│ ├── Encapsulamiento.md
| ├── (...)
├── index.rst
├── _static
├── _templates
└── webdevel
这是我的index.rst:
¡Bienvenidos a Echemos un bitstazo!
======================================================
Este es mi espacio de documentación personal dónde almaceno todo tipo de conocimientos relacionados con la administración de sistemas y redes informáticas; desarrollo y otros temas varios de IT.
.. toctree::
:maxdepth: 1
:caption: Administración de sistemas
devel/python/python
Índice y tablas
==================
* :ref:`genindex`
* :ref:`search`
这是我的python.rst:
Python
======================================================
.. toctree::
:maxdepth: 1
:caption: Contenido:
:glob:
*
我的conf.py:
project = 'Echemos un bitstazo ~ Wiki'
copyright = '2021, Álvaro Castillo'
author = 'Álvaro Castillo'
extensions = [ 'myst_parser'
]
templates_path = ['_templates']
language = 'es'
exclude_patterns = []
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
在做sphinx-build -b html source build之后,我得到了index.html、python.html...等
但是,当我访问另一个页面(如 Encapsulamiento)时,菜单会发生变化。
如何修复这个显示所有帖子的滑动菜单栏,就像在 python.html 中一样?
【问题讨论】:
标签: markdown python-sphinx restructuredtext read-the-docs toctree