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

make Weasyprint css urls to be automatic ingested #2365

Open
zcrt opened this issue Jan 22, 2024 · 3 comments
Open

make Weasyprint css urls to be automatic ingested #2365

zcrt opened this issue Jan 22, 2024 · 3 comments
Assignees

Comments

@zcrt
Copy link
Contributor

zcrt commented Jan 22, 2024

Is your feature request related to a problem? Please describe.
Generating a pdf-report in the new flow looks untendend.

Describe the solution you'd like
As I understood there should be CSS available for styling the pdf-report. I would like to have some documentation for enabling this.

Kat-version
1.14

@underdarknl
Copy link
Contributor

The env var is:
WEASYPRINT_BASEURL It needs to be a http url accesible by Weasyprint's service to access the static files.
We are trying to work out a way of not needing this variable.

The default is http://127.0.0.1:80/ which might, or might not work based on whatever hosting or containerization solution is used for hosting Rocky.

@dekkers dekkers assigned dekkers and unassigned underdarknl Jan 23, 2024
@dekkers dekkers added this to KAT Jan 23, 2024
@github-project-automation github-project-automation bot moved this to Incoming features / Need assessment in KAT Jan 23, 2024
@dekkers dekkers moved this from Incoming features / Need assessment to In Progress in KAT Jan 23, 2024
@dekkers
Copy link
Contributor

dekkers commented Jan 23, 2024

The default should be http://127.0.0.1:8000/, I have fixed this in #2373

I'm also working on a change to get rid of the need of WEASYPRINT_BASEURL.

@underdarknl underdarknl changed the title Add documentation for pdf-report css make Weazyprit css url's to be automatic ingested Feb 5, 2024
@dekkers dekkers changed the title make Weazyprit css url's to be automatic ingested make Weasyprint css urls to be automatic ingested Feb 12, 2024
@dekkers
Copy link
Contributor

dekkers commented Feb 15, 2024

Submitted PR to django-weasyprint yesterday, this is currently blocked waiting for it to be reviewed, merged and a new version released

@dekkers dekkers moved this from In Progress to Blocked in KAT Feb 15, 2024
@madelondohmen madelondohmen moved this from Blocked to Sprint backlog / To do in KAT May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog / To do
Development

No branches or pull requests

3 participants