Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Multiple toctrees with captions #37

Open
tristanlins opened this issue Jul 19, 2018 · 0 comments
Open

Multiple toctrees with captions #37

tristanlins opened this issue Jul 19, 2018 · 0 comments

Comments

@tristanlins
Copy link
Contributor

I write a "big" documentation that covers multiple components.
In the main index.rst multiple toctrees are used like this:

.. toctree::
   :name: toc_index
   :maxdepth: 1

   root/page1
   root/page2
   root/page3

.. toctree::
   :caption: Component A
   :name: toc_component_a
   :maxdepth: 1

   compA/page1
   compA/page2
   compA/page3

.. toctree::
   :caption: Component B
   :name: toc_component_b
   :maxdepth: 1

   compB/page1
   compB/page2
   compB/page3

The captions in navigation are not styled properly.
I've added a custom css for these captions:

div.sphinxsidebar .sidebar-toc .caption {
    margin: 17px 0 0 0;
    padding: 0 22px 6px;
    font-size: 14px;
    font-weight: bold;
    color: #606060;
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant