Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add captions to sidebar #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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