rst2pdf icon indicating copy to clipboard operation
rst2pdf copied to clipboard

linkColor does not work for ref attribute

Open sachin-suresh-rapyuta opened this issue 2 years ago • 2 comments

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:

image

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

sachin-suresh-rapyuta avatar Sep 15 '22 04:09 sachin-suresh-rapyuta

I'd want to note that "linkColor" isn't even mentioned in official manual (https://rst2pdf.org/static/manual.html)

q2dg avatar Sep 15 '22 09:09 q2dg

Thanks for the bug report and the point about the docs, they are both helpful and we will look at this when we can!

lornajane avatar Oct 16 '22 20:10 lornajane