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

monolith is not embedding SVG files correctly #289 #306

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

kamtschatka
Copy link
Contributor

passing in the URL of the page to have the proper URL for resolving relative paths

passing in the URL of the page to have the proper URL for resolving relative paths
@kamtschatka
Copy link
Contributor Author

Did some testing

Running this:

cat asdf.html | monolith - -Ij -t 5 -b https://musictheory.pugetsound.edu/ -o svg.html
cat asdf.html | monolith - -Ij -t 5 -b https://musictheory.pugetsound.edu/mt21c -o svg.html

Results in this:

https://musictheory.pugetsound.edu/images/unit2/Roman-numerals-dia-chords-all-minor.svg (404 Not Found)
https://musictheory.pugetsound.edu/images/unit2/DiatonicTriadsNatMinorAudio.mp3 (404 Not Found)
https://musictheory.pugetsound.edu/images/unit2/DiatonicTriadsHarmMinorAudio.mp3 (404 Not Found)
https://musictheory.pugetsound.edu/images/unit2/DiatonicTriadsMelMinorAudio.mp3 (404 Not Found)
https://musictheory.pugetsound.edu/images/unit2/Roman-numerals-most-common-in-minor.svg (404 Not Found)

Running:


cat asdf.html | monolith - -Ij -t 5 -b https://musictheory.pugetsound.edu/mt21c/ -o svg.html
cat asdf.html | monolith - -Ij -t 5 -b https://musictheory.pugetsound.edu/mt21c/DiatonicChordsInMinor.html -o svg.html 

Results in this:

https://musictheory.pugetsound.edu/mt21c/images/unit2/Roman-numerals-dia-chords-all-minor.svg
https://musictheory.pugetsound.edu/mt21c/images/unit2/DiatonicTriadsNatMinorAudio.mp3
https://musictheory.pugetsound.edu/mt21c/images/unit2/DiatonicTriadsHarmMinorAudio.mp3
https://musictheory.pugetsound.edu/mt21c/images/unit2/DiatonicTriadsMelMinorAudio.mp3
https://musictheory.pugetsound.edu/mt21c/images/unit2/Roman-numerals-most-common-in-minor.svg

So monolith seems to be running some automatic base path detection anyways, if you put in the URL of the page.

@MohamedBassem MohamedBassem merged commit aa3dce0 into hoarder-app:main Jul 14, 2024
3 checks passed
@MohamedBassem
Copy link
Collaborator

Good catch!

@kamtschatka kamtschatka deleted the monolith branch July 20, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants