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

linkColor does not work for ref attribute #1079

Open
sachin-suresh-rapyuta opened this issue Sep 15, 2022 · 2 comments
Open

linkColor does not work for ref attribute #1079

sachin-suresh-rapyuta opened this issue Sep 15, 2022 · 2 comments

Comments

@sachin-suresh-rapyuta
Copy link

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

@q2dg
Copy link

q2dg commented Sep 15, 2022

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

@lornajane
Copy link
Contributor

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

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

No branches or pull requests

3 participants