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

Make element links in embedded SVGs relative #86

Merged
merged 4 commits into from
Nov 15, 2022

Conversation

jp7677
Copy link
Contributor

@jp7677 jp7677 commented Nov 14, 2022

This fixes broken links when the generate site is not hosted as root web site as reported in #85.

As a consequence we no longer generate embedded SVG's up-front, but generate them as we need them with links relative to the link of the current page.

Those are meant for downloading, having links in them in kind-of useless.
@jp7677 jp7677 force-pushed the relative-links-in-diagrams branch 2 times, most recently from f587a42 to b3fe5bf Compare November 14, 2022 13:02
This fixes broken links when the generate site is not hosted as root
web site.
As a consequence we no longer generate embedded SVG's up-front,
but generate them as we need them with links relative to the link of
the current page.
To preserve generation speed for serve, we try to cache as much as we
can.
@jp7677 jp7677 force-pushed the relative-links-in-diagrams branch from b3fe5bf to aefd63b Compare November 14, 2022 14:04
This can greatly improve site generation for bigger sites with
lots of views.
Also some renames and argument ordering for consistency.
@dirkgroot dirkgroot merged commit ccb8da0 into avisi-cloud:main Nov 15, 2022
@jp7677 jp7677 deleted the relative-links-in-diagrams branch November 28, 2022 12:48
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