-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
yelp-tool yelp-build script don't work #23107
Comments
Thank you for reporting the issue. I can reproduce it in my system with current gimp 3 rc version. I have tried to replace the
|
@Biswa96 yes seem the path passed to xsl it's not well formatted the same with the .page file path |
@Biswa96 I have made progress replacing this on yelp-buid file line 402 page += ' cache:href="file://' + urllib.parse.quote(os.path.realpath(infile.absfile)) + '"' with page += ' cache:href="file:///' + urllib.parse.quote(os.path.realpath(infile.absfile)) + '"' Now I have this error file:///C%3A/msys64/home/lillolollo/gimp_master/share/docs/Gimp.Procedure.add_menu_path.page:61: parser error : Opening and ending tag mismatch: p line 39 and page |
looks a bit like the same error that plagued docbook for some time in mingw the xslt processor cannot handle the format on windows. passing an absolute path without file:: seems to do the trick for docbook but if it can be used here i dont know. the mingw docbook format looks like this for rewriteprefix -> rewritePrefix="../../share/xml/docbook/xml-dtd-4.4" maybe able to spur some ideas on what is needed ?. |
So i made it work changing yelp-build file changing the shebang like this
changing the path here from
to
replacing all the |
Do the created documentation files contain full path of msys2 installation directory? If true that would cause issue when msys2 install directory changes. |
yeah that would suck... maybe change it to this format would help ? XSL_DB2HTML = '../share/yelp-xsl/xslt/docbook/html/db2html.xsl' |
just tested changing all the /mingw*/ paths to ../ so that it points to the local data and it works here. |
So gimp removed the g-ir-doc build so yelp-tool is no needed anymore , but the issue on yelp-tool is still here |
Description / Steps to reproduce the issue
I'm trying to generate docs for gimp with building it -Dg-ir-doc=true but it don't work
I'm trying to debug it and use these command to generate an html page on a clang environment (not tested on other environments)
yelp-build cache *.page
yelp-build html -o html .
the first problem is the python shebang on bin/yelp-build must be #!/usr/bin/env python or the file it is not found
the second problem seem to be the path
XSL_MAL2HTML = '/clang64/share/yelp-xsl/xslt/mallard/html/mal2html.xsl'
the third the file to be converted is not found but it is on the same folder
I don't know if @JPeterMugaas is still around to take a look
Expected behavior
the file is converted
Actual behavior
the file it is not converted
Verification
Windows Version
MINGW64_NT-10.0-22631
MINGW environments affected
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: