-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
view STL files 2 #16352
Comments
I didn't try this myself, but I'd check the network tab in your browsers developer tools, and see if all requests could be resolved, and what errors are visible in the console. It could also be that the JS just doesn't match how gitea renders the page anymore. |
Console does not contain any errors and there are no failed requests. It looks like the new template is just being completely ignored - thats why I did provide the complete file listings in the issue - in case some file was misplaced or something. |
Ah, I didn't check the paths too thoroughly. - /usr/share/git-core/templates/custom/
- /usr/share/git-core/public/
+ /usr/share/git-core/custom/templates/custom/
+ /usr/share/git-core/custom/public/ If you're using the default dockerfile, the base path is |
I am using default docker image. So I have tried to put it into /data, like so:
but this is not working either. |
I have also tried the other way:
After each moving/copying of the files I did restart the container and deleted browser data. It looks like you were correct with the default dockerfile:
is there some issue with the folder structure? |
If you're using the official docker image, |
Yes on the last comment I have shown that I tried to put it in the /data/gitea/custom:
but no STL viewer is still showing. |
Ah you've been affected by the changes in #15219 I've just pushed up some updated documentation. Files in custom/public are now mounted within |
Thanks for the note. I've adjusted my folder structure, but the the wording is confusing - once you mention "custom/public" and then mention "assets" and "/" without mentioning "custom/public".
The thing is that the javascript library is not even trying to be downloaded by the footer template - so it does not really matter where it is stored at this moment - it seems the root cause is template not working. I don't see any failed http requests in the browser developer console trying to get the Madeleine asset. Or maybe my assumptions are totally wrong - anyways - STL still not showing. Could you, please, doublecheck my folder structure? |
Ooooh I get it.
which should be I've reverted folder structure to:
However STL still not showing as if template was ignored. Also BASE_URL/assets/Madeleine.js/src/css/Madeleine.css results in 404 so it seems something is totally wrong. |
[x]
):Description
Continuing discussion from previous issue: #5979
This would be really nice thing to have out of box, but okay I have followed proposed solution: "I will close this issue as it can be setup by many ways and at least one is in docs."
I looked at the docu:
https://docs.gitea.io/en-us/customizing-gitea/#example-stl-preview
Link there to https://jinjunho.github.io/Madeleine.js/ is no longer working, so google found some other repo of the project: https://github.com/beige90/Madeleine.js However last commit there is 7 years ago, feels abandoned.
So I have mapped required directories from the container to host machine and put required stuff according to the docs:
And the template:
And result is:
Any ideas?
The text was updated successfully, but these errors were encountered: