rst2pdf
rst2pdf copied to clipboard
linkColor does not work for ref attribute
The linkColor
defined in my custom style sheet YAML does not work for the ref
element.
Here is my conf.py
file:
..
# A comma-separated list of custom stylesheets. Example:
pdf_stylesheets = ['sphinx','a4', "custom_pdf_styles"]
In custom_pdf_styles.yaml
linkColor: blue
pageSetup:
size: Legal
In file1.rst
The goal of this phase is to verify that the site meets the :ref:`Warehouse Requirements`.
When I run the sphinx-build -b pdf . build/pdf
, the page in PDF with the above ref attribute looks like:
Expected behavior:
When I run the sphinx-build -b pdf . build/pdf
, I should be able to see blue color for the link- 'Warehouse Requirements'.
🖥 Versions
python -V
Python 3.8.10
pip list | grep rst2pdf
rst2pdf 0.100.dev11+gcbd0f2b8
pip freeze | grep reportlab
reportlab==3.5.34
pip freeze | grep Sphinx
Sphinx==4.5.0
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
I'd want to note that "linkColor" isn't even mentioned in official manual (https://rst2pdf.org/static/manual.html)
Thanks for the bug report and the point about the docs, they are both helpful and we will look at this when we can!