-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix broken links in documentation #12
Fix broken links in documentation #12
Conversation
Signed-off-by: Samuel Dudík <samuel.dudik@pantheon.tech>
I am not sure we need to commit the .pdf format of the STONEWORK-CONFIG. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As Ondrej stated, it is probably not a good idea to put binary file into repository. Its hard to track changes between versions. People use it only for binaries that are vital for the project. This PDF document can be easily regenerated. Well at least by using the instruction mentioned above.
I would suggest to not commit the pdf file and instead make the above instructions how to get pdf version of the information in MD file as easy as possible for users. When i look into the makefile in root of the project, I see target generate-config-docs
that does the MD and PDF generation. I would prefer extracting PDF to another makefile target and commiting only MD. If somebody needs a pdf, he can just run one make command to get it (without all the docker containers and all, it is only MD to PDF conversion).
PS: the existing pdf generation(https://github.com/PANTHEONtech/StoneWork/blob/main/scripts/gen-docs.sh#L75) and the one mentioned in PR are not the same, right? So if pdf generation needs to be updated to PR instructions then change the scripts/makefile/... .
The .pdf file was added because of README.md referencing it: Line 107 in 589dcd6
I removed it and I will update the reference, but I'm not sure where to put basic information about how to generate PDFs. Maybe in I updated the Makefile with a universal pdf generation target.
Everything is generated with the original pandoc snippet with minor fixes. Line 75 in 589dcd6
weasyprint package. The stonework-proto-rootgen Docker image is based on Ubuntu 18.04 which doesn't contain the weasyprint package and also uses an outdated pandoc version which is incompatible with weasyprint . The question is wheter to update the Dockerfile to a newer Ubuntu version (20.04) or download latest binaries for these packages directly and remain on the same Ubuntu version.
|
@samuel-dudik My idea was to extract the pdf creating from gen-docs.sh script so that calling this script (from Stonework or any other CNF) doesn't create pdf files. This should break the tendency to commit pdf files to repository (pdf not generated=pdf not commited to git repo). However, someone could have the need for pdf. For example release process could need this. So some way how to create the pdf is needed (for example makefile target).In documentation only thing needed is the replacement of reference to config pdf with info how to generate it ( Your |
Signed-off-by: Samuel Dudík <samuel.dudik@pantheon.tech>
65a50c4
to
cab4204
Compare
Signed-off-by: Samuel Dudík <samuel.dudik@pantheon.tech>
I reverted all changes to PDF generation and added rule to .gitignore to ignore all .pdf files. I also added the problem regarding broken links discussed above to a separate issue #14. |
Update regarding STONEWORK-CONFIG.pdf:
pdflatex (default pdf engine) doesn't seem to work with anchor links.
Generated using:
style.css:
Signed-off-by: Samuel Dudík samuel.dudik@pantheon.tech