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

Link in goat diagram #27

Open
skycluster opened this issue Jan 24, 2024 · 8 comments
Open

Link in goat diagram #27

skycluster opened this issue Jan 24, 2024 · 8 comments

Comments

@skycluster
Copy link

Is there an easy way to include a link in a goat diagram?
what I found so far: all major browsers support [XLinks in SVG]. So it seems doable for goat as it builds an svg.
Though not much documentation is available for goat. If there is no native solution could you advise on how to approach the development of such a feature in goat or is it a “dead-end” and such a feature is not approachable by design.
Goat defines runes in the source code, should there be one for links?

@dmullis
Copy link
Contributor

dmullis commented Feb 3, 2024

I had such a feature working locally at one point, but set it aside while working on bug fixes.

Can you tell us about your use case?

@skycluster
Copy link
Author

I'm building a graph of university courses which are interdependent. Meaning some are basic, others could be taken only after the prerequisite. Relations for one could include several "parent" and "child" nodes. I was thinking on using links in it for navigation between courses on a website.

@dmullis
Copy link
Contributor

dmullis commented Feb 4, 2024

Does this mean that each of several links out from the Goat graph would point to some document containing details about a particular course?

@skycluster
Copy link
Author

Yes, indeed. The links should lead to pages which provide information for each course represented on the diagram with their short names. Like: E101 should point to a basic course and E102 should point to the other (but it could be taken only after the 101), but their relation is meant to be visible by a connection with an arrowed line. E201 may be independent without any prerequisite and start a new tree of connected courses and so on. E202 might be dependent on E101 and E201 at the same time.

@dmullis
Copy link
Contributor

dmullis commented Feb 7, 2024

Okay, I have a first cut limping along in my local tree, so after some cleanup I'll push it to my fork. As @blampe seems to have moved on from Goat maintenance, you'll need to get it from there: https://github.com/dmullis/goat

@skycluster
Copy link
Author

Great news, thank you!

@dmullis
Copy link
Contributor

dmullis commented Feb 17, 2024

I've pushed a (partial) solution to https://github.com/dmullis/goat .

"Partial" because it appears that on sites like github.com, which "sanitizes" uploaded SVG, no outbound links from the diagrams are possible. So, you'll need a more permissive server.

@skycluster
Copy link
Author

Very nice! Thank you! I'll try it - the project does not depend on a well-known and popular server.

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

No branches or pull requests

2 participants