Links from sample-book to github source

5 views
Skip to first unread message

Bradley Miller

unread,
Dec 12, 2025, 5:25:07 PM (3 days ago) Dec 12
to PreTeXt development
The PreTeXt sample book (PTXSB on runestone.academy) Now has links to the source for each exercise on github.  I wrote a python script that finds the #exercise tags and then inserts a #url below the exercise.  After building the book, I git restore rune.xml, so these are not permanently added.  They would get out of sync very quickly!

These are live on runestone academy now.

In a couple of the browsers I use it opens the github link in a nice little popover window.  But in safari it just navigates to github in the same tab.  That seems less that ideal.  I did a quick search of the guide and didn’t see how to specify the equivalent of target=blank like you can do with an a tag.

Are there other tags where it would be useful to link to the PreTeXt source on github?

Check it out and let me know what you think.

Brad Miller
Professor Emeritus, Luther College
Founder, Runestone Academy LTD
Blog: http://reputablejournal.com

Set up a time to meet with me.


Reply all
Reply to author
Forward
0 new messages