useblocks / sphinx-simplepdf

A simple PDF builder for Sphinx documentations
https://sphinx-simplepdf.readthedocs.io
MIT License
32 stars 14 forks source link

What is the variable used for TOC caption? #79

Open sachin-suresh-rapyuta opened 1 year ago

sachin-suresh-rapyuta commented 1 year ago

I am trying multiple ways to use different toc captions based on PDF language.

Also, seems that below ifconfig doesnt work inside if-builder.

.. ifconfig:: language == 'en'

   .. toctree::
      :maxdepth: 2
      :caption: User Guide

.. ifconfig:: language == 'ja'

   .. toctree::
      :maxdepth: 2
      :caption: ユーザーガイド