Skip to content

Conversation

@Mathieu-COSYNS-Student
Copy link
Contributor

@Mathieu-COSYNS-Student Mathieu-COSYNS-Student commented Feb 11, 2022

This PR add captions to the sidebar to better distinguish different parts of the book.

image

Drawback: In order to maintain the current style of headings in index.html and the structure of the sections in the pdf titles are duplicated.

##################
Part 1: Principles                      <---------------- HERE
##################

.. toctree::
   :maxdepth: 4
   :caption: Part 1: Principles         <---------------- HERE

Why adding a few lines of css ?
The duplication add the title twice in index.html as shown below.
image
The css fix the issue for html, singlehtml and epub. Captions are not visible in pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant