rst2pdf/rst2pdf

PDF not updated when index.rst has multiple toc's

sachin-suresh-rapyuta opened this issue · 1 comments

I have an index.rst with multiple table of content (toc).

Problem:
pdf generated does not show the actual content. This means it is still showing content with older toc.

My index.rst looks like:


My Documentation
===============

.. panels::
   :container: container-lg pb-3
   :column: col-lg-4 col-md-4 col-sm-6 col-xs-12 p-2

   User Documentation
   ^^^^^^^^^^^^^^^^^^
   Learn more about xx & its features, how to operate it, and know more about its business 
   functionality.
   ---

   Specification Documentation
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Read about the xx hardware specification and the different APIs involved.
   ---

   Operator Manual
   ^^^^^^^^^^^^^^^
   Know about the forklift safety operating procedures before operating the forklift.
   ---

.. toctree::
   :maxdepth: 2
   :caption: User Documentation
   

   /user/preface
   /user/getting_started
   /user/about
   /user/components
   /user/pallet_handling
   /user/business_functionality


.. toctree::
   :maxdepth: 2
   :caption: Specification Documentation
   
   
   /spec/architecture
   /spec/hardware_specification
   /spec/behavior
   /spec/order_management


.. toctree::
   :hidden:
   :maxdepth: 2
   :caption: Forklift Operator Manual
   

   /operator/safety
   /operator/operation 

Expected Output
New PDF for as many tocs I have in index file.

Versions

python -V
Python 3.8.10

pip freeze | grep rst2pdf
rst2pdf @ file:///home/sachin/Workspace/Sootballs/pa-amr/docs/rst2pdf

pip freeze | grep reportlab
reportlab==3.5.34

pip freeze | grep Sphinx
Sphinx==4.5.0

Operating System:
Linux Ubuntu 20.04