-
Notifications
You must be signed in to change notification settings - Fork 61
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
ci: generate pdf #132
Comments
How about add the compiling PDF task to CI, so that it can be easily released without worry about the compilation environment. |
According to the message you give, it seems that some files and directory is missing, which is not met from my environment. |
This was my next plan 😉 I am first trying to get it locally in a docker image to fix this kind of issues. (Using Dockerfile in
Good thing! Now I have to understand why it fails… |
What version of Sphinx are you using? Mine is v4.1.2, which works. |
v5.2.0 |
With 4.1.2 I get the Python 3.10 errors |
That might be caused by some dependent library. |
Have you tried to compile the docs directly by sphinx-build -M latexpdf "source" "docs" |
Same result |
I think the log would show you some clue.
…---Original---
From: ***@***.***>
Date: Tue, Oct 25, 2022 00:00 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [SpinalHDL/SpinalDoc-RTD] Error trying to generate pdf (Issue#132)
Same result
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Works on my end.. with sphinx 5.2 and this is the pip freeze:
And it should just need to install pdflatex to make it work, But let me try to make a container with the minimal dependency necessary for the build. |
Ok i can reporduce it with:
and execute the container with: |
Notice that there is also: FROM sphinxdoc/sphinx-latexpdf |
I tried with the |
Found atleast one error: you need to install |
The in the conf.py you can add |
Thanks, I'm adding npm etc to the Dockerfile. Then I'll have to add steps into actions to generate it, and I'm wondering: where do we want the pdf to be so that it can be downloaded? |
as reference: sphinx-contrib/multiversion#70 |
@wifasoi I blame you: https://github.com/SpinalHDL/SpinalDoc-RTD/blame/883f8ad4e6c35d5c75e089f12e5261fcada35978/source/conf.py#L138 "I'm a big company. Is this project serious?" generates pdf doc "Err…* |
LOL, guilty as charged :P |
So I pushed a branch with Docker configuration using npm version of wavedrom, and with a new Dockerfile which makes it possible to build pdf. sphinx-contrib/multiversion#74 brings the feature we want but it is still open (last activity 1y ago). EDIT: I'm testing using the version of multiversion of the PR |
I have pushed to the PR, it works for current branch: (PDF opens PDF file, HTML is a broken link for now because I have not enabled it, it should not be displayed actually, I have reported it to the author of PR) But for "all tags" it fails because it fails for one of the tags (so it just stops and do not even try subsequent tags):
Note: things to add to the workflow, see https://github.com/sphinx-doc/docker/blob/master/latexpdf/Dockerfile + |
@wifasoi any idea about last message? |
good work. about the warning, if other images work then there should be an "e" in the path, the correct one is "asset/image/fixpoint/highBitOperation.png". |
Ahh sure sure ^^ |
Nice ^^
i think we can get ride of them. |
Ok I'll remove these branches later™ |
There is also branch |
For |
PDF generation is done in two phases: rst->tex & tex->pdf. I get an error in the first phase.
Expected: create latex files
Actual:
The text was updated successfully, but these errors were encountered: